aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
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);
}
}