aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-12-14 16:54:01 +0000
committerJoão Valverde <j@v6e.pt>2022-12-15 01:57:39 +0000
commit2d3de008f5af27abdae01c92956fa44464aa3f2f (patch)
tree22f502f0b990de2f8215ca5be80417594911ae24 /wsutil
parent400235ad7edeca2a89cdfece18a83400eaa0df49 (diff)
CMake: Disable UTF-8 debug checks for release builds
Disable UTF-8 debug checks for release builds for optimization purposes. Also remove unused macro that currently lacks a proper use case. Change version info to be more complete about the build type without being too verbose.
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/unicode-utils.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/wsutil/unicode-utils.h b/wsutil/unicode-utils.h
index 049f0dd1cd..cacb606b4d 100644
--- a/wsutil/unicode-utils.h
+++ b/wsutil/unicode-utils.h
@@ -49,16 +49,6 @@ extern "C" {
#define WS_UTF_8_DEBUG_HERE(str, len) \
_CHECK_UTF_8(LOG_LEVEL_ECHO, str, len)
-#define WS_UTF_8_SANITIZE_STRBUF(buf) \
- do { \
- const char *__uni_endptr; \
- if (!wmem_strbuf_utf8_validate(buf, &__uni_endptr)) { \
- ws_log_utf8(buf->str, buf->len, __uni_endptr); \
- wmem_strbuf_utf8_make_valid(buf); \
- } \
- } while (0)
-
-
WSUTIL_EXPORT
int ws_utf8_seqlen[256];