aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-04-06 10:26:37 +0800
committerTeddy <ted.sybil@gmail.com>2014-04-06 10:26:37 +0800
commitf446f65340d41d6b4558a26912ba15e28059fe48 (patch)
tree8d1c1208787851dc92761422b4e360d35f98c885 /ast.c
parent7384b7e2cbe9f40970c74bc5afe589c3df4fe24d (diff)
complex cast almost donecomplex_cast
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index 1b0d3b5..44952d8 100644
--- a/ast.c
+++ b/ast.c
@@ -231,7 +231,6 @@ char *cnode_debug_type_repr(CNode *ast) {
case DECL: type = "decl"; break;
case INIT_DECLR: type = "init_declr"; break;
case PLAIN_DECL: type = "p_decl"; break;
- case TYPE_NAME: type = "type_name"; break;
case COMP_STMTS: type = "blk_stmts"; break;
case COMP_DECLS: type = "blk_decls"; break;
case DECLRS: type = "declrs"; break;
@@ -331,6 +330,7 @@ char *cnode_debug_type_repr(CNode *ast) {
case DECLR_FUNC: type = "func"; break;
case DECLR_ARR: type = "arr"; break;
case '*': type = "*"; break;
+ case 0: type = "typename"; break;
default: assert(0);
}
}