From 0a68498252fd4678b121de3b968b88b0788078ec Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 20 Apr 2002 11:49:53 +0000 Subject: [PATCH] Use cc65 character classification routines git-svn-id: svn://svn.cc65.org/cc65/trunk@1245 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/da65/scanner.c | 5 +++-- src/ld65/scanner.c | 7 ++++--- src/sim65/scanner.c | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) 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; }