summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-16 10:47:54 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-16 10:47:54 +0100
commit14bd978928496baf00483db4602cc0e976ba3a70 (patch)
treebe93821d3f0cb8f19b2570627804ab3972469fbb
parent4ba153668b4fb4e15346ca96fced3bfc86ebc82e (diff)
downloadserenity-14bd978928496baf00483db4602cc0e976ba3a70.zip
Revert "LibC: Implement isblank()"
This reverts commit 4e79a60b78d46869e3edb52d8eb4fc0e557e80d3. This broke the GCC port. Apparently isblank() was added in C99 and for some reason it needs special treatment in headers.
-rw-r--r--Libraries/LibC/ctype.cpp2
-rw-r--r--Libraries/LibC/ctype.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/Libraries/LibC/ctype.cpp b/Libraries/LibC/ctype.cpp
index 6c76586b1c..f4d35d5e9b 100644
--- a/Libraries/LibC/ctype.cpp
+++ b/Libraries/LibC/ctype.cpp
@@ -31,7 +31,7 @@ extern "C" {
const char _ctype_[256] = {
_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,
(char)(_S | _B), _P, _P, _P, _P, _P, _P, _P,
diff --git a/Libraries/LibC/ctype.h b/Libraries/LibC/ctype.h
index 740832f162..49d1b05019 100644
--- a/Libraries/LibC/ctype.h
+++ b/Libraries/LibC/ctype.h
@@ -56,7 +56,6 @@ int isprint(int);
int isgraph(int);
int islower(int);
int isupper(int);
-int isblank(int);
#define isalnum(c) (_ctype_[(int)(c)] & (_U | _L | _N))
#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 islower(c) ((_ctype_[(int)(c)] & (_U | _L)) == _L)
#define isupper(c) ((_ctype_[(int)(c)] & (_U | _L)) == _U)
-#define isblank(c) ((_ctype_[(int)(c)] & (_B)))
#define isascii(c) ((unsigned)c <= 127)
#define toascii(c) ((c)&127)