summaryrefslogtreecommitdiff
path: root/utils/h2ph.PL
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-09 23:45:57 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-09 23:45:57 +0000
commit99ed927b9cb7383662696a50cb0d8e2aa25d47d7 (patch)
treec0cdf578145fe6094ecf21acf011843cb0fd85ec /utils/h2ph.PL
parentaed526b9b8fe19b0a180adeac543ddec2025c76b (diff)
downloadperl-99ed927b9cb7383662696a50cb0d8e2aa25d47d7.tar.gz
h2ph updates from OpenBSD 3.0.
p4raw-id: //depot/perl@13573
Diffstat (limited to 'utils/h2ph.PL')
-rw-r--r--utils/h2ph.PL4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/h2ph.PL b/utils/h2ph.PL
index 901f0bb8f8..7903996876 100644
--- a/utils/h2ph.PL
+++ b/utils/h2ph.PL
@@ -338,7 +338,7 @@ sub expr {
# Eliminate typedefs
/\(([\w\s]+)[\*\s]*\)\s*[\w\(]/ && do {
foreach (split /\s+/, $1) { # Make sure all the words are types,
- last unless ($isatype{$_} or $_ eq 'struct');
+ last unless ($isatype{$_} or $_ eq 'struct' or $_ eq 'union');
}
s/\([\w\s]+[\*\s]*\)// && next; # then eliminate them.
};
@@ -361,7 +361,7 @@ sub expr {
};
s/^([_a-zA-Z]\w*)// && do {
my $id = $1;
- if ($id eq 'struct') {
+ if ($id eq 'struct' || $id eq 'union') {
s/^\s+(\w+)//;
$id .= ' ' . $1;
$isatype{$id} = 1;