1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:07:34 +00:00

Revert "LibC: Implement isblank()"

This reverts commit 4e79a60b78.

This broke the GCC port. Apparently isblank() was added in C99 and for
some reason it needs special treatment in headers.
This commit is contained in:
Andreas Kling 2020-02-16 10:47:54 +01:00
parent 4ba153668b
commit 14bd978928
2 changed files with 1 additions and 3 deletions

View file

@ -31,7 +31,7 @@ extern "C" {
const char _ctype_[256] = { const char _ctype_[256] = {
_C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C,
_C, (char)(_C | _S | _B), _C | _S, _C | _S, _C | _S, _C | _S, _C, _C, _C, _C | _S, _C | _S, _C | _S, _C | _S, _C | _S, _C, _C,
_C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C,
_C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C, _C,
(char)(_S | _B), _P, _P, _P, _P, _P, _P, _P, (char)(_S | _B), _P, _P, _P, _P, _P, _P, _P,

View file

@ -56,7 +56,6 @@ int isprint(int);
int isgraph(int); int isgraph(int);
int islower(int); int islower(int);
int isupper(int); int isupper(int);
int isblank(int);
#define isalnum(c) (_ctype_[(int)(c)] & (_U | _L | _N)) #define isalnum(c) (_ctype_[(int)(c)] & (_U | _L | _N))
#define isalpha(c) (_ctype_[(int)(c)] & (_U | _L)) #define isalpha(c) (_ctype_[(int)(c)] & (_U | _L))
@ -69,7 +68,6 @@ int isblank(int);
#define isgraph(c) (_ctype_[(int)(c)] & (_P | _U | _L | _N)) #define isgraph(c) (_ctype_[(int)(c)] & (_P | _U | _L | _N))
#define islower(c) ((_ctype_[(int)(c)] & (_U | _L)) == _L) #define islower(c) ((_ctype_[(int)(c)] & (_U | _L)) == _L)
#define isupper(c) ((_ctype_[(int)(c)] & (_U | _L)) == _U) #define isupper(c) ((_ctype_[(int)(c)] & (_U | _L)) == _U)
#define isblank(c) ((_ctype_[(int)(c)] & (_B)))
#define isascii(c) ((unsigned)c <= 127) #define isascii(c) ((unsigned)c <= 127)
#define toascii(c) ((c)&127) #define toascii(c) ((c)&127)