diff options
Diffstat (limited to 'source3/aparser/templates/fn_start.tpl')
-rw-r--r-- | source3/aparser/templates/fn_start.tpl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/aparser/templates/fn_start.tpl b/source3/aparser/templates/fn_start.tpl index deecc670e3..017f894f78 100644 --- a/source3/aparser/templates/fn_start.tpl +++ b/source3/aparser/templates/fn_start.tpl @@ -1,9 +1,13 @@ /******************************************************************* parse a @STRUCTNAME@ structure ********************************************************************/ -BOOL @FUNCNAME@(char *desc, @STRUCTNAME@ *il, - prs_struct *ps, int depth) +BOOL @FUNCNAME@(char *desc, prs_struct *ps, int depth, + @STRUCTNAME@ *il, unsigned flags) { prs_debug(ps, depth, desc, "@FUNCNAME@"); depth++; - + + if (!(flags & PARSE_SCALARS)) goto buffers; + + ZERO_STRUCTP(il); + /* parse the scalars */ |