summaryrefslogtreecommitdiff
path: root/source4/build/pidl/parser.pm
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-18 01:17:10 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-18 01:17:10 +0000
commit7b185ccb32d685c00ddca9495fafe34bec59ceb3 (patch)
tree6eed457ca0e51ac89d0721df3969f6288725f3b6 /source4/build/pidl/parser.pm
parentf1462caf612c7e89fd1ae58142108122d07d67fa (diff)
downloadsamba-7b185ccb32d685c00ddca9495fafe34bec59ceb3.tar.gz
samba-7b185ccb32d685c00ddca9495fafe34bec59ceb3.tar.bz2
samba-7b185ccb32d685c00ddca9495fafe34bec59ceb3.zip
auto-generate top-level debug print functions when a flag is set on
the dcerpc pipe. This saves lots of code in each test suite. (This used to be commit db74a03d15d96d7f8bd751b8f857cc5b2be7d4c2)
Diffstat (limited to 'source4/build/pidl/parser.pm')
-rw-r--r--source4/build/pidl/parser.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm
index 050ebdda02..1d3e772298 100644
--- a/source4/build/pidl/parser.pm
+++ b/source4/build/pidl/parser.pm
@@ -825,6 +825,9 @@ sub ParseFunctionPrint($)
ParseElementPrintScalar($e, "r->out.");
}
}
+ if ($fn->{RETURN_TYPE} && $fn->{RETURN_TYPE} ne "void") {
+ $res .= "\tndr_print_$fn->{RETURN_TYPE}(ndr, \"result\", &r->out.result);\n";
+ }
$res .= "\tndr->depth--;\n";
$res .= "\t}\n";