Changed all toupper, tolower, isupper, islower and isalpha to internal defined function. Case insensitive regexp should work on Win9x now.
This commit is contained in:
@@ -174,7 +174,7 @@ void EzycomArea::save_message(int __mode, gmsg* __msg, EzycHdr& __hdr) {
|
||||
_msgfast.whoto = CRC32_MASK_CCITT;
|
||||
char* _ptr = __msg->to;
|
||||
while(*_ptr) {
|
||||
_msgfast.whoto = updCrc32((char)toupper(*_ptr), _msgfast.whoto);
|
||||
_msgfast.whoto = updCrc32((char)g_toupper(*_ptr), _msgfast.whoto);
|
||||
_ptr++;
|
||||
}
|
||||
_fh = test_open(AddPath(wide->msgbasepath, "MSGFAST.BBS"), O_WRONLY|O_CREAT|O_BINARY, SH_DENYWR);
|
||||
|
@@ -197,7 +197,7 @@ int PcbArea::load_message(int __mode, gmsg* __msg, PcbHdr& __hdr) {
|
||||
while(*ptr2) {
|
||||
if(*ptr2 == '+') {
|
||||
// get flags
|
||||
switch(toupper(*(++ptr2))) {
|
||||
switch(g_toupper(*(++ptr2))) {
|
||||
case 'C': __msg->attr.cra1(); break;
|
||||
case 'D': __msg->attr.dir1(); break;
|
||||
}
|
||||
|
@@ -106,7 +106,7 @@ uint16_t XbbsCheckSum(char* str) {
|
||||
uint16_t checksum = 0;
|
||||
|
||||
while(*str) {
|
||||
checksum ^= (uint16_t)toupper(*str++);
|
||||
checksum ^= (uint16_t)g_toupper(*str++);
|
||||
if(checksum & 1)
|
||||
checksum = (uint16_t)((checksum >> 1) ^ 0xA000);
|
||||
else
|
||||
|
Reference in New Issue
Block a user