1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-06 17:32:29 +03:00

more templates.

This commit is contained in:
Luke Leighton
-
parent 82e47e268c
commit 4d50d35262
4 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,8 @@
end:
/* the parse is OK */
return True;
} /* @FUNCNAME@ */

View File

@ -0,0 +1 @@
if (!io_align2(ps, @OFFSET@)) goto fail;

View File

@ -0,0 +1 @@
if (!io_align4(ps, @OFFSET@)) goto fail;

View File

@ -0,0 +1,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;
}