X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=lexer.c;h=f1b00e368942380411244d9d8822d65a4fe213cc;hb=d328241d8f59d63709734bf12e8eee03f1199c2f;hp=9b6d36930f17ef254da96fb1c6a318da63f42596;hpb=8fb3da11c9e16fc66b74138035c121f4f8de5477;p=cparser diff --git a/lexer.c b/lexer.c index 9b6d369..f1b00e3 100644 --- a/lexer.c +++ b/lexer.c @@ -752,7 +752,7 @@ static int parse_escape_sequence(void) int ec = c; next_char(); - switch(ec) { + switch (ec) { case '"': return '"'; case '\'': return '\''; case '\\': return '\\'; @@ -778,6 +778,10 @@ static int parse_escape_sequence(void) case EOF: parse_error("reached end of file while parsing escape sequence"); return EOF; + case 'e': + if (c_mode & _GNUC) + return 27; /* hopefully 27 is ALWAYS the code for ESACAPE */ + /*fallthrough*/ default: parse_error("unknown escape sequence"); return EOF;