InternetRFCBody, ZapQuotesBelow, EditNewLine and other fixes

This commit is contained in:
Alexander S. Aganichev
2001-06-12 17:31:12 +00:00
parent 4dc91867e5
commit 9008bc555d
9 changed files with 78 additions and 43 deletions

View File

@@ -30,8 +30,6 @@
// ------------------------------------------------------------------
#include <gdefs.h>
#include <gutlos.h>
#ifdef __BORLANDC__
#define __USELOCALES__
#elif defined(__EMX__)
@@ -47,14 +45,14 @@
extern "C" {
#endif
extern char tl[256], tu[256];
inline int _nls_tolower(int c) { return tl[c]; }
inline int _nls_toupper(int c) { return tu[c]; }
__inline__ int _nls_tolower(int c) { return tl[c]; }
__inline__ int _nls_toupper(int c) { return tu[c]; }
#ifdef __cplusplus
}
#endif
#define tolower(a) _nls_tolower((unsigned char)(a))
#define toupper(a) _nls_toupper((unsigned char)(a))
#endif
#endif
// ------------------------------------------------------------------
@@ -63,7 +61,7 @@ inline int _nls_toupper(int c) { return tu[c]; }
extern "C" {
#endif
// NLS chars detected by converting to lower or upper case and in case they don't match they treated as characters
inline int isxalnum(char c) { return isascii(c) ? isalnum(c) : (c != tolower(c)) or (c != toupper(c)); }
__inline__ int isxalnum(char c) { return isascii(c) ? isalnum(c) : (c != tolower(c)) || (c != toupper(c)); }
#ifdef __cplusplus
}
#endif

View File

@@ -26,9 +26,8 @@
// ------------------------------------------------------------------
#include <cstdlib>
#include <gctype.h>
#include <gstrall.h>
#include <gutlmisc.h>
#include <gstrall.h>
// ------------------------------------------------------------------

View File

@@ -31,6 +31,7 @@
// ------------------------------------------------------------------
#include <gdefs.h>
#include <gctype.h>
#include <cstdlib>