shithub: scc

Download patch

ref: b00dde9f13a5a2754d65bbb6ea6f2cca7123e491
parent: 57772ff4fa151bf3de032d14eb5c0c13f4174f98
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Aug 17 12:03:20 EDT 2016

[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.

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