summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-01-25 10:07:43 +0100
committerStefan Metzmacher <metze@samba.org>2008-01-25 10:07:43 +0100
commit5d55aa99e6488244208d7d84b188f92306c083f6 (patch)
treeef7861d5244d410fb5453cb5a64283aa652a0d40 /source4/pidl/lib/Parse/Pidl
parent876fdde645de89123eac812ca694750e0022f1a9 (diff)
downloadsamba-5d55aa99e6488244208d7d84b188f92306c083f6.tar.gz
samba-5d55aa99e6488244208d7d84b188f92306c083f6.tar.bz2
samba-5d55aa99e6488244208d7d84b188f92306c083f6.zip
pidl/Samba4::Header: fix typedefs of unions and structs without elements
metze (This used to be commit 3131847cb67dadd8ee6fcbca5055927b8ba8a219)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/Header.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm b/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm
index 14f472340c..2e77ff01b8 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba4/Header.pm
@@ -86,6 +86,7 @@ sub HeaderStruct($$;$)
{
my($struct,$name,$tail) = @_;
pidl "struct $name";
+ pidl $tail if defined($tail) and not defined($struct->{ELEMENTS});
return if (not defined($struct->{ELEMENTS}));
pidl " {\n";
$tab_depth++;
@@ -178,6 +179,7 @@ sub HeaderUnion($$;$)
my %done = ();
pidl "union $name";
+ pidl $tail if defined($tail) and not defined($union->{ELEMENTS});
return if (not defined($union->{ELEMENTS}));
pidl " {\n";
$tab_depth++;