summaryrefslogtreecommitdiffhomepage
path: root/src/utf8code.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-02 22:36:51 +0100
committerTyge Løvset <[email protected]>2023-01-02 22:36:51 +0100
commit16e004c62f8d8d502152a85b2ffd384a1c91a470 (patch)
tree368ed5b319c18f88d0ae2e8c291b0c3889ac72c5 /src/utf8code.c
parent364b8833cb5d91bbe2c7640869912cde4de12846 (diff)
downloadSTC-modified-16e004c62f8d8d502152a85b2ffd384a1c91a470.tar.gz
STC-modified-16e004c62f8d8d502152a85b2ffd384a1c91a470.zip
Replaced c_STATIC_ASSERT() which works for C99 (also multiple on same line).
Some regex updates.
Diffstat (limited to 'src/utf8code.c')
-rw-r--r--src/utf8code.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utf8code.c b/src/utf8code.c
index 71b086c2..4b657cc4 100644
--- a/src/utf8code.c
+++ b/src/utf8code.c
@@ -148,7 +148,7 @@ bool utf8_isalnum(uint32_t c) {
}
bool utf8_isblank(uint32_t c) {
- if (c < 128) return isblank(c) != 0;
+ if (c < 128) return (c == ' ') | (c == '\t');
return utf8_isgroup(U8G_Zs, c);
}