1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 20:29:34 +00:00

Use cc65 character classification routines

git-svn-id: svn://svn.cc65.org/cc65/trunk@1245 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-04-20 11:49:53 +00:00
parent 7bb10e54f3
commit 0a68498252
3 changed files with 10 additions and 7 deletions

View File

@ -40,6 +40,7 @@
#include <ctype.h>
/* 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;
}

View File

@ -40,6 +40,7 @@
#include <ctype.h>
/* 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 ... */

View File

@ -40,6 +40,7 @@
#include <ctype.h>
/* 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;
}