scc

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

commit b4fc058c601a150c47a8fa05c3286d248441c16d
parent 8e6a3dc26f0f1ee374f29cccb901722f31070776
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 17 Aug 2016 16:03:20 +0200

[cc2] Do not use OSTRING in constant()

The OXXXX values are intended for internal use of cc2, and
we do not want to have a dependency between these values
and the intermediate language used between cc1 and cc2.
In this case since it is a language used in both cases
and well documented is more significative to use the actual
value than some stupid macro.

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

diff --git a/cc2/parser.c b/cc2/parser.c @@ -218,7 +218,7 @@ constant(char *token, union tokenop u) unsigned c; ++token; - if (*token == OSTRING) { + if (*token == '"') { ++token; np = newnode(OSTRING); np->type.flags = STRF;