summaryrefslogtreecommitdiff
path: root/source3/aparser/templates/prs_array.tpl
blob: ca707148db5b4ce973728412c1f6f3b1334fe9c7 (plain)
1
2
3
4
5
6
7
	if (il->@ARRAYLEN@ > 0) {
		il->@ELEM@ = (@TYPE@ *)malloc(sizeof(@TYPE@)*il->@ARRAYLEN@);
		if (!il->@ELEM@) goto fail;
		if (!prs_@TYPE@s(True, "@ELEM@", ps, depth+1, il->@ELEM@, il->@ARRAYLEN@)) goto fail;
	} else {
	        il->@ELEM@ = NULL; 
	}