scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 193ddab783899d6a84e9dc0afd3f2ee7af2fcdb2
parent 0cd87289743d229d3407647ca918daa980fe8725
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 12 May 2015 11:20:49 +0200

Fix string()

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

Diffstat:
Mcc1/lex.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/lex.c b/cc1/lex.c @@ -373,10 +373,10 @@ repeat: ++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;