summaryrefslogtreecommitdiff
path: root/source4/build/pidl/header.pm
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-20 00:57:00 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-20 00:57:00 +0000
commitfd15fc58e7b4dbe0d4eda81f979c8de97e9ac7ee (patch)
tree7dac35a824edf404097bb088d10425ed8cf73bfc /source4/build/pidl/header.pm
parent940ce958a6914fb9b70de3cf95a0c062063e2253 (diff)
downloadsamba-fd15fc58e7b4dbe0d4eda81f979c8de97e9ac7ee.tar.gz
samba-fd15fc58e7b4dbe0d4eda81f979c8de97e9ac7ee.tar.bz2
samba-fd15fc58e7b4dbe0d4eda81f979c8de97e9ac7ee.zip
* added support for empty case elements (including default cases)
* changed to midl syntax using [case(x)] instead of case(x) (This used to be commit 6ecdb25e137c25e6bf9a7037a4eb602ae1afc514)
Diffstat (limited to 'source4/build/pidl/header.pm')
-rw-r--r--source4/build/pidl/header.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm
index 60605fb619..0822ca0e06 100644
--- a/source4/build/pidl/header.pm
+++ b/source4/build/pidl/header.pm
@@ -90,7 +90,9 @@ sub HeaderUnionElement($)
{
my($element) = shift;
$res .= "/* [case($element->{CASE})] */ ";
- HeaderElement($element->{DATA});
+ if ($element->{TYPE} eq "UNION_ELEMENT") {
+ HeaderElement($element->{DATA});
+ }
}
#####################################################################