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/header.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/build/pidl/header.pm') diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm index ccb302be89..d90ee0e679 100644 --- a/source4/build/pidl/header.pm +++ b/source4/build/pidl/header.pm @@ -188,14 +188,14 @@ sub HeaderTypedef($) sub HeaderTypedefProto($) { my($d) = shift; - if (!util::has_property($d->{DATA}, "public")) { + if (!util::has_property($d, "public")) { return; } if ($d->{DATA}{TYPE} eq "STRUCT") { $res .= "NTSTATUS ndr_push_$d->{NAME}(struct ndr_push *ndr, int ndr_flags, struct $d->{NAME} *r);\n"; $res .= "NTSTATUS ndr_pull_$d->{NAME}(struct ndr_pull *ndr, int ndr_flags, struct $d->{NAME} *r);\n"; - if (!util::has_property($d->{DATA}, "noprint")) { + if (!util::has_property($d, "noprint")) { $res .= "void ndr_print_$d->{NAME}(struct ndr_print *ndr, const char *name, struct $d->{NAME} *r);\n"; } @@ -206,7 +206,7 @@ sub HeaderTypedefProto($) if ($d->{DATA}{TYPE} eq "UNION") { $res .= "NTSTATUS ndr_push_$d->{NAME}(struct ndr_push *ndr, int ndr_flags, int level, union $d->{NAME} *r);\n"; $res .= "NTSTATUS ndr_pull_$d->{NAME}(struct ndr_pull *ndr, int ndr_flags, int level, union $d->{NAME} *r);\n"; - if (!util::has_property($d->{DATA}, "noprint")) { + if (!util::has_property($d, "noprint")) { $res .= "void ndr_print_$d->{NAME}(struct ndr_print *ndr, const char *name, int level, union $d->{NAME} *r);\n"; } } -- cgit