1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00
Andrew Tridgell 1df80cd1e8 another awk parser update
we can now handle arrays of structures, pointers to structures,
pointers in unions etc
-

9 lines
278 B
Smarty

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;
}
}