[hackers] [scc/qbe] [cc2] Do not use OSTRING in constant() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 17 Aug 2016 16:07:19 +0200 (CEST)

commit b4fc058c601a150c47a8fa05c3286d248441c16d
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Aug 17 16:03:20 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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;
Received on Wed Aug 17 2016 - 16:07:19 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 17 2016 - 16:12:24 CEST