diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-06-09 04:22:31 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-06-09 04:22:31 +0000 |
commit | 698d2e873e5520b9c2c2d4d16e17011a3164f565 (patch) | |
tree | 58b5fa95340713cf576e82ef14c4b6e893a9239f /source3 | |
parent | 09ea9eac69374dac77b53072e9b54e0e7720375f (diff) | |
download | samba-698d2e873e5520b9c2c2d4d16e17011a3164f565.tar.gz samba-698d2e873e5520b9c2c2d4d16e17011a3164f565.tar.bz2 samba-698d2e873e5520b9c2c2d4d16e17011a3164f565.zip |
some templates needed for the new aparser stuff
(This used to be commit e13089b040d5df4e611a120ec7fce20757dc196a)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/aparser/templates/fn_i_end.tpl | 12 | ||||
-rw-r--r-- | source3/aparser/templates/fn_i_start.tpl | 15 |
2 files changed, 27 insertions, 0 deletions
diff --git a/source3/aparser/templates/fn_i_end.tpl b/source3/aparser/templates/fn_i_end.tpl new file mode 100644 index 0000000000..9de61decb3 --- /dev/null +++ b/source3/aparser/templates/fn_i_end.tpl @@ -0,0 +1,12 @@ + + /* the parse is OK */ + return True; + +fail: + if (UNMARSHALLING(ps)) { + ZERO_STRUCTP(il); + } + return False; +} /* @FUNCNAME@ */ + + diff --git a/source3/aparser/templates/fn_i_start.tpl b/source3/aparser/templates/fn_i_start.tpl new file mode 100644 index 0000000000..3979d78e7d --- /dev/null +++ b/source3/aparser/templates/fn_i_start.tpl @@ -0,0 +1,15 @@ +/******************************************************************* +parse a @STRUCTNAME@ structure +********************************************************************/ +BOOL @FUNCNAME@(char *desc, io_struct *ps, int depth, + @STRUCTNAME@ *il, unsigned flags) +{ + io_debug(ps, depth, desc, "@FUNCNAME@"); + depth++; + +#if 0 + if (UNMARSHALLING(ps)) { + ZERO_STRUCTP(il); + } +#endif + /* parse the scalars */ |