# HG changeset patch # User Mike Becker # Date 1779617924 -7200 # Node ID 560a60fcf6eec76a98f52b50a003bf3e47604a9a # Parent 9d6b0f92c710e15d4298adcfb3d40fc976ead7d2 missing const-qualifier in cx_strchr_ and cx_strrchr_ fixes #852 diff -r 9d6b0f92c710 -r 560a60fcf6ee CHANGELOG --- a/CHANGELOG Wed May 20 15:54:54 2026 +0200 +++ b/CHANGELOG Sun May 24 12:18:44 2026 +0200 @@ -1,3 +1,9 @@ +Version 4.0.2 - tbd +-------------------------- + +* fixes missing const-qualifier in cx_strchr_ and cx_strrchr_ +* fixes bash-specific syntax in update-rules.sh + Version 4.0.1 - 2026-02-08 -------------------------- diff -r 9d6b0f92c710 -r 560a60fcf6ee configure --- a/configure Wed May 20 15:54:54 2026 +0200 +++ b/configure Sun May 24 12:18:44 2026 +0200 @@ -210,11 +210,11 @@ fi if [ -z "$VERSION__initialized__" ] ; then VERSION__initialized__=1 - VERSION='4.0.1' + VERSION='4.0.2' fi if [ -z "$LIBVERSION__initialized__" ] ; then LIBVERSION__initialized__=1 - LIBVERSION='7.0.1' + LIBVERSION='7.0.2' fi if [ -z "$LIBVERSION_MAJOR__initialized__" ] ; then LIBVERSION_MAJOR__initialized__=1 diff -r 9d6b0f92c710 -r 560a60fcf6ee docs/Writerside/topics/about.md --- a/docs/Writerside/topics/about.md Wed May 20 15:54:54 2026 +0200 +++ b/docs/Writerside/topics/about.md Sun May 24 12:18:44 2026 +0200 @@ -26,6 +26,11 @@ ## Changelog +### Version 4.0.2 - tbd {collapsible="true"} + +* fixes missing const-qualifier in cx_strchr_ and cx_strrchr_ +* fixes bash-specific syntax in update-rules.sh + ### Version 4.0.1 - 2026-02-08 {collapsible="true"} * fixes compilation errors when using a C++ compiler and a high warning level diff -r 9d6b0f92c710 -r 560a60fcf6ee docs/Writerside/writerside.cfg --- a/docs/Writerside/writerside.cfg Wed May 20 15:54:54 2026 +0200 +++ b/docs/Writerside/writerside.cfg Sun May 24 12:18:44 2026 +0200 @@ -5,5 +5,5 @@ - + \ No newline at end of file diff -r 9d6b0f92c710 -r 560a60fcf6ee make/project.xml --- a/make/project.xml Wed May 20 15:54:54 2026 +0200 +++ b/make/project.xml Sun May 24 12:18:44 2026 +0200 @@ -5,8 +5,8 @@ - 4.0.1 - 7.0.1 + 4.0.2 + 7.0.2 7 pwd ${root_dir}/build diff -r 9d6b0f92c710 -r 560a60fcf6ee src/string.c --- a/src/string.c Wed May 20 15:54:54 2026 +0200 +++ b/src/string.c Sun May 24 12:18:44 2026 +0200 @@ -191,7 +191,7 @@ cxstring string, int chr ) { - char *ret = memchr(string.ptr, 0xFF & chr, string.length); + const char *ret = memchr(string.ptr, 0xFF & chr, string.length); if (ret == NULL) return (cxstring) {NULL, 0}; return (cxstring) {ret, string.length - (ret - string.ptr)}; } @@ -201,7 +201,7 @@ int chr ) { #ifdef WITH_MEMRCHR - char *ret = memrchr(string.ptr, 0xFF & chr, string.length); + const char *ret = memrchr(string.ptr, 0xFF & chr, string.length); if (ret == NULL) return (cxstring) {NULL, 0}; return (cxstring) {ret, string.length - (ret - string.ptr)}; #else