scc

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

commit f3dff61256bc253a0b9ac778f2fff2b342ea7a85
parent 8776d6e2e93ea4a1d3be9ed3ac3a8c2f99d2a684
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 20 Jan 2017 08:13:59 +0100

[cc1] Fix /* */ comments parsing

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

diff --git a/cc1/lex.c b/cc1/lex.c @@ -225,7 +225,7 @@ readline(void) peekc = readchar(); if (peekc != '*' && peekc != '/') continue; - comment((peekc == '/') ? '\n' : '/'); + comment((peekc == '/') ? '\n' : '*'); peekc = 0; c = ' '; }