InternetRFCBody, ZapQuotesBelow, EditNewLine and other fixes
This commit is contained in:
@@ -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
|
||||
|
@@ -26,9 +26,8 @@
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
#include <cstdlib>
|
||||
#include <gctype.h>
|
||||
#include <gstrall.h>
|
||||
#include <gutlmisc.h>
|
||||
#include <gstrall.h>
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
@@ -31,6 +31,7 @@
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
#include <gdefs.h>
|
||||
#include <gctype.h>
|
||||
#include <cstdlib>
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
TOP=../..
|
||||
TARGET=glibc
|
||||
INCS=-I$(TOP)/goldlib/glibc
|
||||
INCS=-I$(TOP)/goldlib/glibc -I$(TOP)/goldlib/gall
|
||||
CFLAGS=-DHAVE_CONFIG_H
|
||||
|
||||
include $(TOP)/GNUmakef.inc
|
||||
|
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <fnmatch.h>
|
||||
#include <ctype.h>
|
||||
#include <gctype.h>
|
||||
|
||||
#if HAVE_STRING_H
|
||||
# include <string.h>
|
||||
|
@@ -210,7 +210,7 @@ init_syntax_once ()
|
||||
#include "regex.h"
|
||||
|
||||
/* isalpha etc. are used for the character classes. */
|
||||
#include <ctype.h>
|
||||
#include <gctype.h>
|
||||
|
||||
/* Jim Meyering writes:
|
||||
|
||||
|
Reference in New Issue
Block a user