X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88ac883a0d005437c97a60d8195bd5e4719b1154..1bc3fa018039382d373a265f88750f90a10f3623:/src/common/lexer.l diff --git a/src/common/lexer.l b/src/common/lexer.l index 4c90a2966c..8f8a1cdd9b 100644 --- a/src/common/lexer.l +++ b/src/common/lexer.l @@ -64,7 +64,7 @@ static int my_input(void); "'"{WORDCHAR}*"'" {int len = strlen(yytext); yytext[len-1] = 0; - yylval.s = strdup(yytext+1); + yylval.s = strdup(yytext+1); Return(WORD);} \"({STRINGCHAR}|\\\"|\|\\\\|\\)*\" {yylval.s = strdup(yytext); Return(STRING);} @@ -123,7 +123,7 @@ static int lex_input() { # define input() my_input() static int my_unput(char c) { - if (lex_read_from_string) { + if (lex_read_from_string != 0) { /* Make sure we have something */ if (lex_string_ptr) { if (c == '\n') yylineno--; @@ -138,7 +138,7 @@ static int my_unput(char c) #endif -/* Public */ +/* Public */ void LexFromFile(FILE *fd) { lex_read_from_string = 0;