![]() ![]() | ![]() |
version 1.31, 2006/04/20 20:00:46 | version 1.32, 2006/05/18 05:49:53 | ||
---|---|---|---|
|
|
||
char *str, *p; | char *str, *p; | ||
int n; | int n; | ||
if (feof(yyin)) | if (yyin != NULL && feof(yyin)) | ||
n = asprintf(&str, "%s: %s:%d: %s: unexpected EOF", | n = asprintf(&str, "%s: %s:%d: %s: unexpected EOF", | ||
__progname, filename, lineno, s); | __progname, filename, lineno, s); | ||
else if (isspace(yytext[0]) || !isprint(yytext[0])) | else if (isspace(yytext[0]) || !isprint(yytext[0])) |