scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 5802f79d5895bf827622249d04a2599b9d0c6049
parent c24c773d732b95df1f5d612d5ec54f265506d7e0
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 27 May 2015 16:42:05 +0200

Add debug information in string token

All the others token had this debug information,
so it is logical to have it here.

Diffstat:
cc1/lex.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/cc1/lex.c b/cc1/lex.c @@ -420,6 +420,7 @@ repeat: if (ahead() == '"') goto repeat; *bp = '\0'; + fprintf(stderr, "\"%s\"\n", buf); sym = newsym(NS_IDEN); sym->u.s = xstrdup(buf); sym->type = mktype(chartype, ARY, (bp - buf) + 1, NULL);