]> granicus.if.org Git - flex/commitdiff
Added macro definition for isascii() if not already present
authorVern Paxson <vern@ee.lbl.gov>
Sat, 26 May 1990 16:54:45 +0000 (16:54 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Sat, 26 May 1990 16:54:45 +0000 (16:54 +0000)
yylex.c

diff --git a/yylex.c b/yylex.c
index 2a55f1239e34a900bfffea4bd0ee09aec60dcc3d..52e4a18052c8446e52237582d1a0a0871528698d 100644 (file)
--- 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