From: Manoel Trapier Date: Thu, 21 Mar 2013 09:25:29 +0000 (+0100) Subject: Correct some Linux/clang missing parts. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ca57bb617bea962252aa3f52353d596d690ee0ee;p=ack.git Correct some Linux/clang missing parts. --- diff --git a/mach/proto/as/comm0.h b/mach/proto/as/comm0.h index bda2d7b16..acda1e6a7 100644 --- a/mach/proto/as/comm0.h +++ b/mach/proto/as/comm0.h @@ -97,6 +97,7 @@ _include #ifdef ASLD #include "arch.h" #endif +#include "missing_proto.h" #include "object.h" #include "out.h" diff --git a/mach/proto/as/comm5.c b/mach/proto/as/comm5.c index 0e572a215..35d945778 100644 --- a/mach/proto/as/comm5.c +++ b/mach/proto/as/comm5.c @@ -9,6 +9,9 @@ #include "comm1.h" #include "y.tab.h" +/* Since isascii is not standard, as c89 or C99, privide another method */ +#define IsAscii(_c) (((_c) & ~0x7f) == 0) + extern YYSTYPE yylval; int yylex() @@ -221,7 +224,7 @@ int nextchar() #endif if ((c = getc(input)) == EOF) return(0); - if (isascii(c) == 0) + if (IsAscii(c) == 0) fatal("non-ascii character"); #ifdef LISTING if (listflag & 0440)