isl_stream_error: print unexpected identifier name
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 7 Aug 2010 11:45:38 +0000 (13:45 +0200)
committerSven 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

index 90ca640..1fbbc2e 100644 (file)
@@ -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);
        }