X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=lexer.c;h=247083c399645429fd1efbcd897c27c2865cff10;hb=853c4c59c67930035ac59bd2bffbfa8a8c21b767;hp=a4bace030e3e049ca0c9d046a1536e57f28e30a6;hpb=bc20f75554ba62fcbea337664cae66243ba974b4;p=cparser 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;