projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9ac9c4
)
isl_stream_error: print unexpected identifier name
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 7 Aug 2010 11:45:38 +0000
(13:45 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 18 Aug 2010 13:11:59 +0000
(15:11 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_stream.c
patch
|
blob
|
history
diff --git
a/isl_stream.c
b/isl_stream.c
index
90ca640
..
1fbbc2e
100644
(file)
--- a/
isl_stream.c
+++ b/
isl_stream.c
@@
-95,6
+95,8
@@
void isl_stream_error(struct isl_stream *s, struct isl_token *tok, char *msg)
if (tok) {
if (tok->type < 256)
fprintf(stderr, "got '%c'\n", tok->type);
+ else if (tok->type == ISL_TOKEN_IDENT)
+ fprintf(stderr, "got ident '%s'\n", tok->u.s);
else
fprintf(stderr, "got token type %d\n", tok->type);
}