aboutsummaryrefslogtreecommitdiffstats
path: root/show-parse.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-30 22:30:28 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:55 -0700
commit9d2258c5def38d3c161e8c2750b6e9fe62449bb3 (patch)
tree1c07cd993957263d15f36b4122e85d103ff4c294 /show-parse.c
parentc6555e8346ccaadb00d1fbe1e2ac83c452f4750b (diff)
downloadsparse-9d2258c5def38d3c161e8c2750b6e9fe62449bb3.tar.gz
Start doing constant strings right: do proper concatenation of strings,
and evaluate their type to be arrays of char rather than just a pointer.
Diffstat (limited to 'show-parse.c')
-rw-r--r--show-parse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/show-parse.c b/show-parse.c
index 0a55a21b..7e720933 100644
--- a/show-parse.c
+++ b/show-parse.c
@@ -445,6 +445,9 @@ void show_expression(struct expression *expr)
case EXPR_VALUE:
printf("(%lld)", expr->value);
break;
+ case EXPR_STRING:
+ printf("%s", show_string(expr->string));
+ break;
case EXPR_SIZEOF:
printf("sizeof(");
if (expr->cast_type)