aboutsummaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 3fc1772..ba30f51 100644
--- a/parser.h
+++ b/parser.h
@@ -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);