shithub: scc

Download patch

ref: 193ddab783899d6a84e9dc0afd3f2ee7af2fcdb2
parent: 0cd87289743d229d3407647ca918daa980fe8725
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue May 12 07:20:49 EDT 2015

Fix string()

At the end of tokenization input->begin must be pointing to the next
unparsed character.

--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -373,10 +373,10 @@
 	++input->p;
 
 	for (;;) {
+		input->begin = input->p;
 		if (isspace((c = *input->p))) {
 			++input->p;
 		} else if (c == '\0') {
-			input->begin = input->p;
 			fill();
 		} else if (c == '"') {
 			goto repeat;