summaryrefslogtreecommitdiff
path: root/source4/build/pidl/parser.pm
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-01-06 06:32:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:26 -0500
commite3fd8743417a655a478f49dd76f7cae6245f150b (patch)
tree192a02a7bf9e5b7330c6f20592e29a6074547eea /source4/build/pidl/parser.pm
parente159e42d8472f36f51e400e351fc43f2a7dc44f5 (diff)
downloadsamba-e3fd8743417a655a478f49dd76f7cae6245f150b.tar.gz
samba-e3fd8743417a655a478f49dd76f7cae6245f150b.tar.bz2
samba-e3fd8743417a655a478f49dd76f7cae6245f150b.zip
r4551: add support for a pidl extensions
'declare bitmap foo1;' 'declare enum foo2;' and also allow typedef [public] bitmap ... typedef [public] enum ... you need to a forward declaration of bitmaps and enums when you want to use them in another idl file, and you need to make the real declaration to be public see the next commit to samr.idl and netlogon.idl metze (This used to be commit a8d61aa47388b82595ee02b9cfd35f15afb93c2a)
Diffstat (limited to 'source4/build/pidl/parser.pm')
-rw-r--r--source4/build/pidl/parser.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm
index 2aa7dfc3d6..33937b5800 100644
--- a/source4/build/pidl/parser.pm
+++ b/source4/build/pidl/parser.pm
@@ -1716,9 +1716,12 @@ sub ParseInterface($)
my($data) = $interface->{DATA};
foreach my $d (@{$data}) {
+ if ($d->{TYPE} eq "DECLARE") {
+ $structs{$d->{NAME}} = $d;
+ }
if ($d->{TYPE} eq "TYPEDEF") {
$structs{$d->{NAME}} = $d;
- }
+ }
}
foreach my $d (@{$data}) {