summaryrefslogtreecommitdiff
path: root/source3/aparser/templates/prs_array.tpl
blob: 4bd6a26c99c61ea3b025d8c71f3ba646ce5e7aab (plain)
1
2
3
4
5
6
7
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<il->@ARRAY_LEN@;i++) {
		if (!io_@TYPE@("@ELEM@...", ps, depth+1, &il->@ELEM@[i], @FLAGS@)) goto fail;
		}
	}