From 9f765b7406282904ce56f2535dcd929a9aefc5ca Mon Sep 17 00:00:00 2001 From: CVS Import User Date: Sun, 4 Apr 2004 09:21:52 +0000 Subject: r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunk metze --- source/aparser/templates/prs_array.tpl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 source/aparser/templates/prs_array.tpl (limited to 'source/aparser/templates/prs_array.tpl') diff --git a/source/aparser/templates/prs_array.tpl b/source/aparser/templates/prs_array.tpl new file mode 100644 index 00000000000..4bd6a26c99c --- /dev/null +++ b/source/aparser/templates/prs_array.tpl @@ -0,0 +1,8 @@ + if ((@FLAGS@ & PARSE_SCALARS) && + !io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@))*(il->@ARRAY_LEN@))) goto fail; + { + int i; + for (i=0;i@ARRAY_LEN@;i++) { + if (!io_@TYPE@("@ELEM@...", ps, depth+1, &il->@ELEM@[i], @FLAGS@)) goto fail; + } + } -- cgit