From 28f95668e070d4cbe81c48f22e0a931e23ab4919 Mon Sep 17 00:00:00 2001 From: Jin Kyu Song Date: Wed, 27 Nov 2013 20:23:53 -0800 Subject: Revert "AVX-512: Handle curly braces in multi-line macro parameters" 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 --- preproc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'preproc.c') diff --git a/preproc.c b/preproc.c index 3a0f67b..4fa9aeb 100644 --- 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 -- cgit v1.2.3