From cf59bbeb4d738688837f858c5ddc6c152ecc6dbe Mon Sep 17 00:00:00 2001 From: Teddy Date: Sat, 5 Apr 2014 16:00:49 +0800 Subject: ... --- ast.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ast.c') diff --git a/ast.c b/ast.c index 239cab6..e73fdb8 100644 --- a/ast.c +++ b/ast.c @@ -367,13 +367,13 @@ char *cnode_debug_type_repr(CNode *ast) { assert(type); } if (aptr == abuff) - sprintf(buffer, "%s(%d:%d)", type, - ast->loc.row, ast->loc.col); + sprintf(buffer, "%s(%d:%d)->(var:%lx, type:%lx)", type, + ast->loc.row, ast->loc.col, (size_t)ast->ext.var, (size_t)ast->ext.type); else { *aptr = '\0'; - sprintf(buffer, "%s:%s(%d:%d)", type, abuff, - ast->loc.row, ast->loc.col); + sprintf(buffer, "%s:%s(%d:%d)->(var:%lx, type:%lx)", type, abuff, + ast->loc.row, ast->loc.col, (size_t)ast->ext.var, (size_t)ast->ext.type); } return buffer; } -- cgit v1.2.3