# HG changeset patch # User Mike Becker # Date 1769029623 -3600 # Node ID abb995453f15559f566d491418e232282140778e # Parent d2a36d28c56594513590511b0cfe919558d1a8b1 fixes #799 - missing return type in the C++ version of cx_strtok_next() diff -r d2a36d28c565 -r abb995453f15 CHANGELOG --- a/CHANGELOG Wed Jan 21 22:03:49 2026 +0100 +++ b/CHANGELOG Wed Jan 21 22:07:03 2026 +0100 @@ -1,7 +1,7 @@ -Version 4.0.1 - 2025-12-31 +Version 4.0.1 - tbd -------------------------- - + * fixes compilation errors when using a C++ compiler and a high warning level Version 4.0.0 - 2025-12-31 -------------------------- diff -r d2a36d28c565 -r abb995453f15 docs/Writerside/topics/about.md --- a/docs/Writerside/topics/about.md Wed Jan 21 22:03:49 2026 +0100 +++ b/docs/Writerside/topics/about.md Wed Jan 21 22:07:03 2026 +0100 @@ -26,9 +26,9 @@ ## Changelog -### Version 4.0.1 - 2025-12-31 {collapsible="true"} +### Version 4.0.1 - preview {collapsible="true"} - +* fixes compilation errors when using a C++ compiler and a high warning level ### Version 4.0.0 - 2025-12-31 {collapsible="true"} diff -r d2a36d28c565 -r abb995453f15 src/cx/string.h --- a/src/cx/string.h Wed Jan 21 22:03:49 2026 +0100 +++ b/src/cx/string.h Wed Jan 21 22:07:03 2026 +0100 @@ -1335,10 +1335,10 @@ bool cx_strtok_next_(CxStrtokCtx *ctx, cxstring *token); #ifdef __cplusplus -CX_CPPDECL cx_strtok_next(CxStrtokCtx *ctx, cxstring *token) { +CX_CPPDECL bool cx_strtok_next(CxStrtokCtx *ctx, cxstring *token) { return cx_strtok_next_(ctx, token); } -CX_CPPDECL cx_strtok_next(CxStrtokCtx *ctx, cxmutstr *token) { +CX_CPPDECL bool cx_strtok_next(CxStrtokCtx *ctx, cxmutstr *token) { // Note: this is actually UB - fixed with start_lifetime_as() in C++23 // but it works on all supported platforms return cx_strtok_next_(ctx, reinterpret_cast(token));