From bbce3104de593c90b10778a379728f982bc3fdcb Mon Sep 17 00:00:00 2001 From: Teddy Date: Sat, 12 Apr 2014 22:24:35 +0800 Subject: typedef now works --- ast.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 9831f68..a886c2e 100644 --- a/ast.h +++ b/ast.h @@ -22,6 +22,7 @@ typedef struct CNode { PLAIN_DECL, DECLS, FUNCS, + TYPEDEF, /* Statments */ STMT, @@ -75,6 +76,7 @@ CNode *cnode_create_func(CNode *type, CNode *declr, CNode *stmt); CNode *cnode_create_init_declr(CNode *declr, CNode *initr); CNode *cnode_create_struct_field(CNode *type_spec, CNode *declrs); CNode *cnode_create_plain_decl(CNode *type_spec, CNode *declr); +CNode *cnode_create_typedef(CNode *type, CNode *declrs); CNode *cnode_create_identifier(char *val); CNode *cnode_create_int_const(int val); -- cgit v1.2.3