Use chartype.h instead of ctype.h
git-svn-id: svn://svn.cc65.org/cc65/trunk@593 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -35,9 +35,9 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
|
||||
/* common */
|
||||
#include "chartype.h"
|
||||
#include "check.h"
|
||||
#include "segdefs.h"
|
||||
#include "xmalloc.h"
|
||||
@@ -131,11 +131,11 @@ static Segment* NewSegment (const char* Name, unsigned SegType)
|
||||
|
||||
/* Check the segment name for invalid names */
|
||||
N = Name;
|
||||
if ((*N != '_' && !isalpha (*N)) || strlen (Name) > 80) {
|
||||
if ((*N != '_' && !IsAlpha (*N)) || strlen (Name) > 80) {
|
||||
Error (ERR_ILLEGAL_SEGMENT, Name);
|
||||
}
|
||||
do {
|
||||
if (*N != '_' && !isalnum (*N)) {
|
||||
if (*N != '_' && !IsAlNum (*N)) {
|
||||
Error (ERR_ILLEGAL_SEGMENT, Name);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user