diff options
author | Teddy <ted.sybil@gmail.com> | 2014-04-12 22:24:35 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2014-04-12 22:24:35 +0800 |
commit | bbce3104de593c90b10778a379728f982bc3fdcb (patch) | |
tree | a7dc481f72b14dc454c60b3384d1ba11b3fdefc8 /ast.h | |
parent | 85d862310c2e00361f68c317c6256b29f18eae36 (diff) |
typedef now works
Diffstat (limited to 'ast.h')
-rw-r--r-- | ast.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |