From a680a3b69c4dfd03776113762bb2db5f46a6df14 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 11 Sep 2009 11:39:10 +0000 Subject: [PATCH] Small simplification for lexing wide strings/char literals. [r26523] --- lexer.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lexer.c b/lexer.c index a4bace0..247083c 100644 --- a/lexer.c +++ b/lexer.c @@ -1806,12 +1806,10 @@ void lexer_next_preprocessing_token(void) SYMBOL_CHARS parse_symbol(); /* might be a wide string ( L"string" ) */ - if(lexer_token.type == T_IDENTIFIER && - lexer_token.v.symbol == symbol_L) { - if(c == '"') { - parse_wide_string_literal(); - } else if(c == '\'') { - parse_wide_character_constant(); + if (lexer_token.v.symbol == symbol_L) { + switch (c) { + case '"': parse_wide_string_literal(); break; + case '\'': parse_wide_character_constant(); break; } } return; -- 2.20.1