diff --git a/src/da65/scanner.c b/src/da65/scanner.c index 19f5dad86..eca7ef692 100644 --- a/src/da65/scanner.c +++ b/src/da65/scanner.c @@ -40,6 +40,7 @@ #include /* common */ +#include "chartype.h" #include "xsprintf.h" /* ld65 */ @@ -177,11 +178,11 @@ Again: CfgErrorCol = InputCol; /* Identifier? */ - if (C == '_' || isalpha (C)) { + if (C == '_' || IsAlpha (C)) { /* Read the identifier */ I = 0; - while (C == '_' || isalnum (C)) { + while (C == '_' || IsAlNum (C)) { if (I < CFG_MAX_IDENT_LEN) { CfgSVal [I++] = C; } diff --git a/src/ld65/scanner.c b/src/ld65/scanner.c index 7f4b7085d..82a040107 100644 --- a/src/ld65/scanner.c +++ b/src/ld65/scanner.c @@ -40,6 +40,7 @@ #include /* common */ +#include "chartype.h" #include "xsprintf.h" /* ld65 */ @@ -177,11 +178,11 @@ Again: CfgErrorCol = InputCol; /* Identifier? */ - if (C == '_' || isalpha (C)) { + if (C == '_' || IsAlpha (C)) { /* Read the identifier */ I = 0; - while (C == '_' || isalnum (C)) { + while (C == '_' || IsAlNum (C)) { if (I < CFG_MAX_IDENT_LEN) { CfgSVal [I++] = C; } @@ -520,7 +521,7 @@ void CfgOpenInput (void) /* Initialize variables */ C = ' '; - InputLine = 1; + InputLine = 1; InputCol = 0; /* Start the ball rolling ... */ diff --git a/src/sim65/scanner.c b/src/sim65/scanner.c index ed71c74ed..ae1d08927 100644 --- a/src/sim65/scanner.c +++ b/src/sim65/scanner.c @@ -40,6 +40,7 @@ #include /* common */ +#include "chartype.h" #include "xsprintf.h" /* sim65 */ @@ -176,11 +177,11 @@ Again: CfgErrorCol = InputCol; /* Identifier? */ - if (C == '_' || isalpha (C)) { + if (C == '_' || IsAlpha (C)) { /* Read the identifier */ I = 0; - while (C == '_' || isalnum (C)) { + while (C == '_' || IsAlNum (C)) { if (I < CFG_MAX_IDENT_LEN) { CfgSVal [I++] = C; }