diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-12 23:38:05 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-12 23:38:05 +0100 |
commit | 3f9812f951bb110700077503a96b9d7d8cfdb2dc (patch) | |
tree | 52c01a3e8125d6e22c051a4a9285ca186473e469 /source4/pidl/lib/Parse/Pidl/Samba4/NDR | |
parent | ad559581406313741276e39cf0d28b4d3acdaab1 (diff) | |
download | samba-3f9812f951bb110700077503a96b9d7d8cfdb2dc.tar.gz samba-3f9812f951bb110700077503a96b9d7d8cfdb2dc.tar.bz2 samba-3f9812f951bb110700077503a96b9d7d8cfdb2dc.zip |
pidl/ejs: Fix bug that filled in the body for types without body.
(This used to be commit 4f4dfa6042178c157a09df61d72a42af7aa5c67b)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba4/NDR')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index cfd16c7b40..451e899ffb 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -2543,7 +2543,8 @@ sub ParseInterface($$$) # Typedefs foreach my $d (@{$interface->{TYPES}}) { - next unless typeHasBody($d); + next unless(typeHasBody($d)); + ($needed->{TypeFunctionName("ndr_push", $d)}) && $self->ParseTypePushFunction($d, "r"); ($needed->{TypeFunctionName("ndr_pull", $d)}) && $self->ParseTypePullFunction($d, "r"); ($needed->{TypeFunctionName("ndr_print", $d)}) && $self->ParseTypePrintFunction($d, "r"); |