From e51389d68ef2e152054d987d7a99930bce180954 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 23 Mar 2010 17:35:53 -0400 Subject: Implement macro support. --- dimension/parse.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dimension/parse.h') diff --git a/dimension/parse.h b/dimension/parse.h index 35a82db..a34e546 100644 --- a/dimension/parse.h +++ b/dimension/parse.h @@ -152,7 +152,9 @@ typedef enum { DMNSN_AST_STRING, - DMNSN_AST_ARRAY + DMNSN_AST_ARRAY, + + DMNSN_AST_MACRO } dmnsn_astnode_type; /* Abstract syntax tree node (a dmnsn_array* of these is an AST) */ @@ -164,6 +166,7 @@ typedef struct dmnsn_astnode { /* Generic data pointer */ void *ptr; + dmnsn_free_fn *free_fn; /* Reference count */ unsigned int *refcount; -- cgit v1.2.3