From f3a3a05ade784ff6906e5c8b132c9440a8db44e5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 16 May 2000 11:55:06 +0000 Subject: another awk parser update we can now handle arrays of structures, pointers to structures, pointers in unions etc (This used to be commit 1df80cd1e8475b6b2fe7b80b6c9089692ab7691b) --- source3/aparser/templates/fn_start.tpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source3/aparser/templates/fn_start.tpl') 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 */ -- cgit