From 35447f0a486a00dc11355613ea7aaa7928c69961 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 13 Mar 2006 22:32:41 +0000 Subject: r14348: Fix location of #endif (This used to be commit eb8687cdd4240c5636384e992a0f1a77251fddcc) --- source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source4') diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index efcb0f6ea4..e89ce3268a 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -2237,11 +2237,6 @@ sub HeaderInterface($) my $count = 0; - pidl_hdr "#ifndef _HEADER_RPC_$interface->{NAME}"; - pidl_hdr "#define _HEADER_RPC_$interface->{NAME}"; - - pidl_hdr ""; - if (defined $interface->{PROPERTIES}->{depends}) { my @d = split / /, $interface->{PROPERTIES}->{depends}; foreach my $i (@d) { @@ -2293,7 +2288,6 @@ sub HeaderInterface($) pidl_hdr "#define DCERPC_" . uc $interface->{NAME} . "_CALL_COUNT ($val)"; - pidl_hdr "#endif /* _HEADER_RPC_$interface->{NAME} */"; } ##################################################################### @@ -2302,6 +2296,11 @@ sub ParseInterface($$) { my($interface,$needed) = @_; + pidl_hdr "#ifndef _HEADER_RPC_$interface->{NAME}"; + pidl_hdr "#define _HEADER_RPC_$interface->{NAME}"; + + pidl_hdr ""; + HeaderInterface($interface); # Typedefs @@ -2329,6 +2328,8 @@ sub ParseInterface($$) } FunctionTable($interface); + + pidl_hdr "#endif /* _HEADER_RPC_$interface->{NAME} */"; } ##################################################################### @@ -2422,4 +2423,3 @@ sub NeededInterface($$) } 1; - -- cgit