Correct some Linux/clang missing parts.

This commit is contained in:
Manoel Trapier 2013-03-21 10:25:29 +01:00 committed by Manoël Trapier
parent ee6e8bdfc3
commit ca57bb617b
2 changed files with 5 additions and 1 deletions

View File

@ -97,6 +97,7 @@ _include <unistd.h>
#ifdef ASLD
#include "arch.h"
#endif
#include "missing_proto.h"
#include "object.h"
#include "out.h"

View File

@ -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)