summaryrefslogtreecommitdiff
path: root/source3/aparser/templates/prs_array_remainder.tpl~
diff options
context:
space:
mode:
Diffstat (limited to 'source3/aparser/templates/prs_array_remainder.tpl~')
-rw-r--r--source3/aparser/templates/prs_array_remainder.tpl~7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/aparser/templates/prs_array_remainder.tpl~ b/source3/aparser/templates/prs_array_remainder.tpl~
new file mode 100644
index 0000000000..8050903f06
--- /dev/null
+++ b/source3/aparser/templates/prs_array_remainder.tpl~
@@ -0,0 +1,7 @@
+ {
+ int i;
+ for (i=0;ps->data_offset < ps->buffer_size;i++) {
+ if (!io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@))*(i+1)) goto fail;
+ if (!io_@TYPE@("@ELEM@...", ps, depth+1, &il->@ELEM@[i], @FLAGS@)) goto fail;
+ }
+ }