mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
f3a3a05ade
we can now handle arrays of structures, pointers to structures,
pointers in unions etc
(This used to be commit 1df80cd1e8
)
9 lines
278 B
Smarty
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;
|
|
}
|
|
}
|