diff options
Diffstat (limited to 'source3/aparser/templates')
34 files changed, 0 insertions, 157 deletions
diff --git a/source3/aparser/templates/fn_end.tpl b/source3/aparser/templates/fn_end.tpl deleted file mode 100644 index 2275ec4e33..0000000000 --- a/source3/aparser/templates/fn_end.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -end: - /* the parse is OK */ - return True; - -fail: - if (UNMARSHALLING(ps)) { - ZERO_STRUCTP(il); - } - return False; -} /* @FUNCNAME@ */ - - diff --git a/source3/aparser/templates/fn_end0.tpl b/source3/aparser/templates/fn_end0.tpl deleted file mode 100644 index 6e49a10f53..0000000000 --- a/source3/aparser/templates/fn_end0.tpl +++ /dev/null @@ -1,8 +0,0 @@ - -end: - /* the parse is OK */ - return True; - -} /* @FUNCNAME@ */ - - diff --git a/source3/aparser/templates/fn_i_end.tpl b/source3/aparser/templates/fn_i_end.tpl deleted file mode 100644 index 9de61decb3..0000000000 --- a/source3/aparser/templates/fn_i_end.tpl +++ /dev/null @@ -1,12 +0,0 @@ - - /* 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 deleted file mode 100644 index 3979d78e7d..0000000000 --- a/source3/aparser/templates/fn_i_start.tpl +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************* -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 */ diff --git a/source3/aparser/templates/fn_mid.tpl b/source3/aparser/templates/fn_mid.tpl deleted file mode 100644 index b81de92a5b..0000000000 --- a/source3/aparser/templates/fn_mid.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -buffers: - if (!(flags & PARSE_BUFFERS)) goto end; - - /* now parse the buffers */ - diff --git a/source3/aparser/templates/fn_start.tpl b/source3/aparser/templates/fn_start.tpl deleted file mode 100644 index a5d58767a6..0000000000 --- a/source3/aparser/templates/fn_start.tpl +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************* -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 (!(flags & PARSE_SCALARS)) goto buffers; - -#if 0 - if (UNMARSHALLING(ps)) { - ZERO_STRUCTP(il); - } -#endif - /* parse the scalars */ diff --git a/source3/aparser/templates/harness.tpl b/source3/aparser/templates/harness.tpl deleted file mode 100644 index 27c33c0adc..0000000000 --- a/source3/aparser/templates/harness.tpl +++ /dev/null @@ -1,5 +0,0 @@ - - if (strcmp(test,"@TEST@")==0) { - @TEST@ il; - ret = io_@TEST@("@TEST@", ps, 0, &il, flags); - } else diff --git a/source3/aparser/templates/harness_end.tpl b/source3/aparser/templates/harness_end.tpl deleted file mode 100644 index 1e15faec16..0000000000 --- a/source3/aparser/templates/harness_end.tpl +++ /dev/null @@ -1,7 +0,0 @@ - { - printf("structure %s not found\n", test); - ret = False; - } - - return ret; -} diff --git a/source3/aparser/templates/harness_start.tpl b/source3/aparser/templates/harness_start.tpl deleted file mode 100644 index beba6fc12d..0000000000 --- a/source3/aparser/templates/harness_start.tpl +++ /dev/null @@ -1,7 +0,0 @@ -#include "prs_@MODULE@.c" - -static BOOL run_test(char *test, io_struct *ps, int flags) -{ - BOOL ret; - - diff --git a/source3/aparser/templates/ifptr_end.tpl b/source3/aparser/templates/ifptr_end.tpl deleted file mode 100644 index 990635cf45..0000000000 --- a/source3/aparser/templates/ifptr_end.tpl +++ /dev/null @@ -1 +0,0 @@ - } diff --git a/source3/aparser/templates/ifptr_start.tpl b/source3/aparser/templates/ifptr_start.tpl deleted file mode 100644 index 228b84bac9..0000000000 --- a/source3/aparser/templates/ifptr_start.tpl +++ /dev/null @@ -1,2 +0,0 @@ - if (il->@ELEM@) { - if (!io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@)))) goto fail; diff --git a/source3/aparser/templates/module_end.tpl b/source3/aparser/templates/module_end.tpl deleted file mode 100644 index 661f7edb95..0000000000 --- a/source3/aparser/templates/module_end.tpl +++ /dev/null @@ -1,3 +0,0 @@ - - -/* end auto-generated structure parsers for @MODULE@ */ diff --git a/source3/aparser/templates/module_start.tpl b/source3/aparser/templates/module_start.tpl deleted file mode 100644 index ac6a3c9d98..0000000000 --- a/source3/aparser/templates/module_start.tpl +++ /dev/null @@ -1,5 +0,0 @@ -/* auto-generated structure parsers for @MODULE@ - generated by aparser -*/ -#include "prs_@MODULE@.h" - diff --git a/source3/aparser/templates/prs_.align.tpl b/source3/aparser/templates/prs_.align.tpl deleted file mode 100644 index 25816a23b3..0000000000 --- a/source3/aparser/templates/prs_.align.tpl +++ /dev/null @@ -1 +0,0 @@ - if(!io_align(ps)) goto fail; diff --git a/source3/aparser/templates/prs_align2.tpl b/source3/aparser/templates/prs_align2.tpl deleted file mode 100644 index 54c569b547..0000000000 --- a/source3/aparser/templates/prs_align2.tpl +++ /dev/null @@ -1 +0,0 @@ - if (!io_align2(ps, @OFFSET@)) goto fail; diff --git a/source3/aparser/templates/prs_align4.tpl b/source3/aparser/templates/prs_align4.tpl deleted file mode 100644 index 702fab1324..0000000000 --- a/source3/aparser/templates/prs_align4.tpl +++ /dev/null @@ -1 +0,0 @@ - if (!io_align4(ps, @OFFSET@)) goto fail; diff --git a/source3/aparser/templates/prs_array.tpl b/source3/aparser/templates/prs_array.tpl deleted file mode 100644 index 4bd6a26c99..0000000000 --- a/source3/aparser/templates/prs_array.tpl +++ /dev/null @@ -1,8 +0,0 @@ - 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; - } - } diff --git a/source3/aparser/templates/prs_array_optional.tpl b/source3/aparser/templates/prs_array_optional.tpl deleted file mode 100644 index 38bd32861f..0000000000 --- a/source3/aparser/templates/prs_array_optional.tpl +++ /dev/null @@ -1,5 +0,0 @@ - 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; - } diff --git a/source3/aparser/templates/prs_array_remainder.tpl b/source3/aparser/templates/prs_array_remainder.tpl deleted file mode 100644 index c8b1e2ab5a..0000000000 --- a/source3/aparser/templates/prs_array_remainder.tpl +++ /dev/null @@ -1,17 +0,0 @@ - if (UNMARSHALLING(ps)) - { - int i; - for (i=0;ps->data_offset < ps->buffer_size;i++) { - if (!io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@))*(i+1))) goto fail; - if (!io_@TYPE@("@ELEM@...", ps, depth+1, &il->@ELEM@[i], @FLAGS@)) goto fail; - } - } - else - { - int i = -1; - /* HACK ALERT! */ - do { - i++; - if (!io_@TYPE@("@ELEM@...", ps, depth+1, &il->@ELEM@[i], @FLAGS@)) goto fail; - } while (il->@ELEM@[i].tag2 != 0); - } diff --git a/source3/aparser/templates/prs_break.tpl b/source3/aparser/templates/prs_break.tpl deleted file mode 100644 index eb540f7be8..0000000000 --- a/source3/aparser/templates/prs_break.tpl +++ /dev/null @@ -1 +0,0 @@ - break; diff --git a/source3/aparser/templates/prs_case.tpl b/source3/aparser/templates/prs_case.tpl deleted file mode 100644 index 06c1bd3ae6..0000000000 --- a/source3/aparser/templates/prs_case.tpl +++ /dev/null @@ -1 +0,0 @@ - case @CASE@: diff --git a/source3/aparser/templates/prs_case_end.tpl b/source3/aparser/templates/prs_case_end.tpl deleted file mode 100644 index eb540f7be8..0000000000 --- a/source3/aparser/templates/prs_case_end.tpl +++ /dev/null @@ -1 +0,0 @@ - break; diff --git a/source3/aparser/templates/prs_element.tpl b/source3/aparser/templates/prs_element.tpl deleted file mode 100644 index e8bf5180ce..0000000000 --- a/source3/aparser/templates/prs_element.tpl +++ /dev/null @@ -1 +0,0 @@ - if (!io_@TYPE@("@ELEM@", ps, depth+1, @PTR@il->@ELEM@, @FLAGS@)) goto fail; diff --git a/source3/aparser/templates/prs_pointer.tpl b/source3/aparser/templates/prs_pointer.tpl deleted file mode 100644 index 4ebcf19d83..0000000000 --- a/source3/aparser/templates/prs_pointer.tpl +++ /dev/null @@ -1,2 +0,0 @@ - if (!io_pointer("@ELEM@_ptr", ps, depth+1, - (void **)&il->@ELEM@, @FLAGS@)) goto fail; diff --git a/source3/aparser/templates/prs_struct.tpl b/source3/aparser/templates/prs_struct.tpl deleted file mode 100644 index ab8246db8e..0000000000 --- a/source3/aparser/templates/prs_struct.tpl +++ /dev/null @@ -1 +0,0 @@ - if (!@MODULE@_io_@TYPE@("@ELEM@", &il->@ELEM@, ps, depth+1)) goto fail; diff --git a/source3/aparser/templates/prs_struct_alloc.tpl b/source3/aparser/templates/prs_struct_alloc.tpl deleted file mode 100644 index 9eae5c92fc..0000000000 --- a/source3/aparser/templates/prs_struct_alloc.tpl +++ /dev/null @@ -1 +0,0 @@ - if (!@MODULE@_io_@TYPE@_alloc("@ELEM@", &il->@ELEM@, ps, depth+1)) goto fail; diff --git a/source3/aparser/templates/prs_uint16.tpl b/source3/aparser/templates/prs_uint16.tpl deleted file mode 100644 index b40d6d4216..0000000000 --- a/source3/aparser/templates/prs_uint16.tpl +++ /dev/null @@ -1 +0,0 @@ - if (!io_uint16("@ELEM@", ps, depth+1, &il->@ELEM@)) goto fail; diff --git a/source3/aparser/templates/prs_uint32.tpl b/source3/aparser/templates/prs_uint32.tpl deleted file mode 100644 index eb76715d28..0000000000 --- a/source3/aparser/templates/prs_uint32.tpl +++ /dev/null @@ -1 +0,0 @@ - if (!io_uint32("@ELEM@", ps, depth+1, &il->@ELEM@)) goto fail; diff --git a/source3/aparser/templates/prs_uint8s.tpl b/source3/aparser/templates/prs_uint8s.tpl deleted file mode 100644 index 967162213f..0000000000 --- a/source3/aparser/templates/prs_uint8s.tpl +++ /dev/null @@ -1,2 +0,0 @@ - if (!io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@))*(il->@ARRAY_LEN@))) goto fail; - if (!io_uint8s("@ELEM@", ps, depth+1, &il->@ELEM@, il->@ARRAY_LEN@, @FLAGS@)) goto fail; diff --git a/source3/aparser/templates/prs_uint8s_fixed.tpl b/source3/aparser/templates/prs_uint8s_fixed.tpl deleted file mode 100644 index 26597f419f..0000000000 --- a/source3/aparser/templates/prs_uint8s_fixed.tpl +++ /dev/null @@ -1 +0,0 @@ - if (!io_uint8s_fixed("@ELEM@", ps, depth+1, il->@ELEM@, @ARRAY_LEN@, @FLAGS@)) goto fail; diff --git a/source3/aparser/templates/prs_wstring.tpl b/source3/aparser/templates/prs_wstring.tpl deleted file mode 100644 index 4de46f093c..0000000000 --- a/source3/aparser/templates/prs_wstring.tpl +++ /dev/null @@ -1,2 +0,0 @@ - if (!io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@))*(il->@ARRAY_LEN@))) goto fail; - if (!io_wstring("@ELEM@", ps, depth+1, il->@ELEM@, il->@ARRAY_LEN@, @FLAGS@)) goto fail; diff --git a/source3/aparser/templates/prs_wstring_fixed.tpl b/source3/aparser/templates/prs_wstring_fixed.tpl deleted file mode 100644 index e33f7c3d5d..0000000000 --- a/source3/aparser/templates/prs_wstring_fixed.tpl +++ /dev/null @@ -1,2 +0,0 @@ - if (!io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@))*(@ARRAY_LEN@))) goto fail; - if (!io_wstring("@ELEM@", ps, depth+1, il->@ELEM@, @ARRAY_LEN@, @FLAGS@)) goto fail; diff --git a/source3/aparser/templates/union_end.tpl b/source3/aparser/templates/union_end.tpl deleted file mode 100644 index 511adbcf60..0000000000 --- a/source3/aparser/templates/union_end.tpl +++ /dev/null @@ -1,5 +0,0 @@ - default: - DEBUG(5,("No handler for case %d in @FUNCNAME@\n", - (int)il->@SWITCH@)); - goto fail; - } diff --git a/source3/aparser/templates/union_start.tpl b/source3/aparser/templates/union_start.tpl deleted file mode 100644 index aa052be697..0000000000 --- a/source3/aparser/templates/union_start.tpl +++ /dev/null @@ -1 +0,0 @@ - switch (il->@SWITCH@) { |