summaryrefslogtreecommitdiff
path: root/source3/aparser/templates/prs_array_optional.tpl
blob: 38bd32861f7485fce39a164da73240995e9d5520 (plain)
1
2
3
4
5
	if ((MARSHALLING(ps) && il->@ELEM@) ||
	     ps->data_offset < ps->buffer_size) {
	if (!io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@)))) goto fail;
	if (!io_@TYPE@("@ELEM@...", ps, depth+1, il->@ELEM@, @FLAGS@)) goto fail;
	}