Revert "AVX-512: Handle curly braces in multi-line macro parameters"
authorJin Kyu Song <jin.kyu.song@intel.com>
Thu, 28 Nov 2013 04:23:53 +0000 (20:23 -0800)
committerJin Kyu Song <jin.kyu.song@intel.com>
Thu, 28 Nov 2013 04:23:53 +0000 (20:23 -0800)
This reverts commit a800aed7b75d56114f2e1e4928cbc48ecf96a4a0.

As recommended by the community, braces inside a group parameter
of multi-line macro should be parsed without a need of a leading
escape character such as "\{ab,c\}".

Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
preproc.c

index 3a0f67b..4fa9aeb 100644 (file)
--- a/preproc.c
+++ b/preproc.c
@@ -208,7 +208,6 @@ enum pp_token_type {
     TOK_PREPROC_Q, TOK_PREPROC_QQ,
     TOK_PASTE,              /* %+ */
     TOK_INDIRECT,           /* %[...] */
-    TOK_BRACE,              /* \{...\} */
     TOK_SMAC_PARAM,         /* MUST BE LAST IN THE LIST!!! */
     TOK_MAX = INT_MAX       /* Keep compiler from reducing the range */
 };
@@ -1104,10 +1103,6 @@ static Token *tokenize(char *line)
             type = TOK_COMMENT;
             while (*p)
                 p++;
-        } else if (p[0] == '\\' && (p[1] == '{' || p[1] == '}')) {
-            type = TOK_BRACE;
-            p += 2;
-            line++;
         } else {
             /*
              * Anything else is an operator of some kind. We check