Bugfix unfinity recurcive call in non-win32 builds

This commit is contained in:
Stas Degteff 2005-11-05 21:28:57 +00:00
parent 5e7b18e44c
commit 3d6effef0c

View File

@ -29,21 +29,26 @@
// ------------------------------------------------------------------ // ------------------------------------------------------------------
#ifndef g_islower
int g_islower(int c) int g_islower(int c)
{ {
return isascii(c) ? islower(c) : (c == g_tolower(c)) && (c != g_toupper(c)); return isascii(c) ? islower(c) : (c == g_tolower(c)) && (c != g_toupper(c));
} }
#endif
#ifndef g_isupper
int g_isupper(int c) int g_isupper(int c)
{ {
return isascii(c) ? isupper(c) : (c != g_tolower(c)) && (c == g_toupper(c)); return isascii(c) ? isupper(c) : (c != g_tolower(c)) && (c == g_toupper(c));
} }
#endif
#ifndef g_isalpha
int g_isalpha(int c) int g_isalpha(int c)
{ {
return isascii(c) ? isalpha(c) : (c != g_tolower(c)) || (c != g_toupper(c)); return isascii(c) ? isalpha(c) : (c != g_tolower(c)) || (c != g_toupper(c));
} }
#endif
int isxalnum(int c) int isxalnum(int c)
{ {