Fix problems with sed and gcc caused by reintegration of posix-locale:
* support invocation of ctype/wctype macros with EOF/WEOF (-1), which would access more or less random memory before - I don't know why this worked more or less reliably for the POSIX locale, but it didn't for any other git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37730 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -32,9 +32,14 @@ public:
|
||||
const char* GetLanginfo(int index);
|
||||
|
||||
private:
|
||||
unsigned short fClassInfo[256];
|
||||
int fToLowerMap[256];
|
||||
int fToUpperMap[256];
|
||||
/*
|
||||
* the following arrays have 257 elements where the first is a
|
||||
* dummy element (containing the neutral/identity value) used when
|
||||
* the array is accessed as in 'isblank(EOF)' (i.e. with index -1).
|
||||
*/
|
||||
unsigned short fClassInfo[257];
|
||||
int fToLowerMap[257];
|
||||
int fToUpperMap[257];
|
||||
|
||||
LocaleCtypeDataBridge* fDataBridge;
|
||||
};
|
||||
|
||||
@@ -9,9 +9,14 @@
|
||||
namespace BPrivate {
|
||||
|
||||
|
||||
extern const unsigned short gPosixClassInfo[256];
|
||||
extern const int gPosixToLowerMap[256];
|
||||
extern const int gPosixToUpperMap[256];
|
||||
/*
|
||||
* the following arrays have 257 elements where the first is a
|
||||
* dummy element (containing the neutral/identity value) used when
|
||||
* the array is accessed as in 'isblank(EOF)' (i.e. with index -1).
|
||||
*/
|
||||
extern const unsigned short gPosixClassInfo[257];
|
||||
extern const int gPosixToLowerMap[257];
|
||||
extern const int gPosixToUpperMap[257];
|
||||
|
||||
|
||||
} // namespace BPrivate
|
||||
|
||||
Reference in New Issue
Block a user