From: Vern Paxson Date: Sat, 26 May 1990 16:54:45 +0000 (+0000) Subject: Added macro definition for isascii() if not already present X-Git-Tag: flex-2-5-5b~493 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da9a7b41b184131889127a21336e0037ae591932;p=flex Added macro definition for isascii() if not already present --- 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