From b90c0850fc01574b89e1cd0da0af43879e7ba6d7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 5 Jan 2005 00:09:29 +0000 Subject: r4521: fixed up the handling of PROPERTIES elements after the change to support enum (This used to be commit dee8eff2590be58c59b0db089fcca4af3e011c42) --- source4/build/pidl/eparser.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/build/pidl/eparser.pm') diff --git a/source4/build/pidl/eparser.pm b/source4/build/pidl/eparser.pm index 0038f53123..83dc90408e 100644 --- a/source4/build/pidl/eparser.pm +++ b/source4/build/pidl/eparser.pm @@ -27,7 +27,7 @@ sub fn_prefix($) { my $fn = shift; if ($fn->{TYPE} eq "TYPEDEF") { - if (util::has_property($fn->{DATA}, "public")) { + if (util::has_property($fn, "public")) { return ""; } } @@ -166,7 +166,7 @@ sub NeededFunction($) sub NeededTypedef($) { my $t = shift; - if (util::has_property($t->{DATA}, "public")) { + if (util::has_property($t, "public")) { $needed{"pull_$t->{NAME}"} = 1; } @@ -277,7 +277,7 @@ sub ParseHeader($$) # unions. if ($d->{TYPE} eq "TYPEDEF" and - util::has_property($d->{DATA}, "public")) { + util::has_property($d, "public")) { if ($d->{DATA}{TYPE} eq "STRUCT") { pidl "void ndr_pull_$d->{NAME}(struct ndr_pull *ndr, int ndr_flags, proto_tree *tree, struct $d->{NAME} *r);\n\n"; -- cgit