diff options
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -46,6 +46,12 @@ typedef struct { size_t size; } ht_t; +typedef struct { + void (*printfunc)(void *); + void *(*copyfunc)(void *); + void (*freefunc)(void *); +} custom_t; + void func_free(void *f); array_t *init_array(size_t size); @@ -66,6 +72,10 @@ value_t *value_copy(value_t *v); void value_free(void *v); +custom_t *init_custom(void (*)(void *), void (*)(void *), void *(*)(void *)); + +void custom_free(void *); + parser_t *init_parser(char *source); void parser_reset(parser_t *p, char *source); |