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:
8
source/aparser/templates/fn_end0.tpl
Normal file
8
source/aparser/templates/fn_end0.tpl
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
end:
|
||||
/* the parse is OK */
|
||||
return True;
|
||||
|
||||
} /* @FUNCNAME@ */
|
||||
|
||||
|
1
source/aparser/templates/prs_align2.tpl
Normal file
1
source/aparser/templates/prs_align2.tpl
Normal file
@ -0,0 +1 @@
|
||||
if (!io_align2(ps, @OFFSET@)) goto fail;
|
1
source/aparser/templates/prs_align4.tpl
Normal file
1
source/aparser/templates/prs_align4.tpl
Normal file
@ -0,0 +1 @@
|
||||
if (!io_align4(ps, @OFFSET@)) goto fail;
|
5
source/aparser/templates/prs_array_optional.tpl
Normal file
5
source/aparser/templates/prs_array_optional.tpl
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user