summaryrefslogtreecommitdiff
path: root/source4/pidl/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-13 22:32:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:13 -0500
commit35447f0a486a00dc11355613ea7aaa7928c69961 (patch)
tree25bdd561774fa2a17d865663f4d2e36d28486020 /source4/pidl/lib
parent42e919b3b0ba215403d90675848e282e3a0128ef (diff)
downloadsamba-35447f0a486a00dc11355613ea7aaa7928c69961.tar.gz
samba-35447f0a486a00dc11355613ea7aaa7928c69961.tar.bz2
samba-35447f0a486a00dc11355613ea7aaa7928c69961.zip
r14348: Fix location of #endif
(This used to be commit eb8687cdd4240c5636384e992a0f1a77251fddcc)
Diffstat (limited to 'source4/pidl/lib')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm14
1 files changed, 7 insertions, 7 deletions
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;
-