summaryrefslogtreecommitdiff
path: root/yylex.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1990-05-26 16:54:45 +0000
committerVern Paxson <vern@ee.lbl.gov>1990-05-26 16:54:45 +0000
commitda9a7b41b184131889127a21336e0037ae591932 (patch)
tree762b69b003f94c0ad297d20b5cf9641deaf8f498 /yylex.c
parentd211329c1eb607b79940661c6ab3ab3339f52874 (diff)
Added macro definition for isascii() if not already present
Diffstat (limited to 'yylex.c')
-rw-r--r--yylex.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/yylex.c b/yylex.c
index 2a55f12..52e4a18 100644
--- a/yylex.c
+++ b/yylex.c
@@ -39,6 +39,13 @@ static char rcsid[] =
#include "flexdef.h"
#include "parse.h"
+
+/* ANSI C does not guarantee that isascii() is defined */
+#ifndef isascii
+#define isascii(c) ((c) <= 0177)
+#endif
+
+
/* yylex - scan for a regular expression token
*
* synopsis