commit b4fc058c601a150c47a8fa05c3286d248441c16d
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Wed Aug 17 16:03:20 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Wed Aug 17 16:03:20 2016 +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.

diff --git a/cc2/parser.c b/cc2/parser.c
index 3dd0c57..778e516 100644
--- 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;

Reply via email to