diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-18 01:17:10 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-18 01:17:10 +0000 |
commit | 7b185ccb32d685c00ddca9495fafe34bec59ceb3 (patch) | |
tree | 6eed457ca0e51ac89d0721df3969f6288725f3b6 /source4/build/pidl/parser.pm | |
parent | f1462caf612c7e89fd1ae58142108122d07d67fa (diff) | |
download | samba-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.pm | 3 |
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"; |