diff options
Diffstat (limited to 'src/cmd/eqn')
-rw-r--r-- | src/cmd/eqn/lex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/eqn/lex.c b/src/cmd/eqn/lex.c index 99a716bb..2eddb6d5 100644 --- a/src/cmd/eqn/lex.c +++ b/src/cmd/eqn/lex.c @@ -1,6 +1,7 @@ #include "e.h" #include "y.tab.h" #include <ctype.h> +#include <errno.h> #define SSIZE 1000 char token[SSIZE]; @@ -19,7 +20,7 @@ yylex(void) register int c; tbl *tp; - begin: +begin: while ((c = input()) == ' ' || c == '\n' || c == '\t') ; yylval = c; @@ -236,7 +237,6 @@ void include(void) char name[100]; FILE *fin; int c; - extern int errno; while ((c = input()) == ' ') ; @@ -260,7 +260,7 @@ void delim(void) ERROR "Bizarre delimiters" FATAL; lefteq = token[0]; righteq = token[1]; - if (!isprint(lefteq) || !isprint(righteq)) + if (!isprint(lefteq) || !isprint(righteq)) ERROR "Bizarre delimiters" FATAL; if (lefteq == 'o' && righteq == 'f') lefteq = righteq = '\0'; |