scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 6b3e3d12e6eff0c1f55c98ff83fc54b0ff80b060
parent 8114daf5316665872ab2d299d0de0c53d68142af
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Fri, 10 Apr 2026 23:17:23 +0200

cc1: Accept @, $ and ' as universal constants

Not sure why, but this is mandated by the standard and the logic
was inverted in the conditional.

Diffstat:
Msrc/cmd/scc-cc/cc1/lex.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/scc-cc/cc1/lex.c b/src/cmd/scc-cc/cc1/lex.c @@ -609,7 +609,7 @@ escape(int multi) if (!uni) return c; - if (c < 0xa0 && (c == 0x24 || c == 0x40 || c == 0x60) + if (c < 0xa0 && c != 0x24 && c != 0x40 && c != 0x60 || c >= 0xD800 && c <= 0xDFFF || c >= 0x110000) { errorp("invalid universal character constant");