shithub: scc

Download patch

ref: 5802f79d5895bf827622249d04a2599b9d0c6049
parent: c24c773d732b95df1f5d612d5ec54f265506d7e0
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed May 27 12:42:05 EDT 2015

Add debug information in string token

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

--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -420,6 +420,7 @@
 	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);