Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# cstring - Changes <!-- omit in toc -->


## 4.1.0-beta5 - 3rd November 2026

* renamed **examples/cpp/cstring.dynload** => **examples/cpp/windows.dyamic-load**;
* renamed **examples/cpp/cstring.global_memory** => **examples/cpp/windows.global-memory**;


## 4.1.0-beta4 - 2nd November 2026

* version:
Expand All @@ -10,6 +16,7 @@
* **STLSoft** minimum is **1.11.5**;
* **xTests** minimum is **0.28.2**;


## 4.1.0-beta3 - 1st November 2026

* testing:
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
| Date | News Item | Details |
| ------------------- | ------------------------------------ | ------- |
| Available from [**cstring** project on GitHub](https://synesissoftware.com/cstring): |
| 3rd November 2026 | Release of [cstring 4.1.0-beta5](https://github.com/synesissoftware/cstring/releases/tag/4.1.0-beta5) | directory renames |
| 2nd November 2026 | Release of [cstring 4.1.0-beta4](https://github.com/synesissoftware/cstring/releases/tag/4.1.0-beta4) | **STLSoft** **1.11.5**; **xTests** **0.28.2** |
| 1st November 2026 | Release of [cstring 4.1.0-beta3](https://github.com/synesissoftware/cstring/releases/tag/4.1.0-beta3) | `File:` labels use the project-relative path; **Check test names** |
| 27th October 2026 | Release of [cstring 4.1.0-beta2](https://github.com/synesissoftware/cstring/releases/tag/4.1.0-beta2) | `HAS_shwild` / `HAS_p99`; tests use `CSTRING_HAS_SHWILD` |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Pass memory flags to `cstring_createEx()` or `cstring_createLenEx()`. For a borr

* Owned, fixed, and borrowed (including Windows allocators, where the host has them): [**example.c.cstring**](./examples/c/cstring/);
* Auto-buffer: [**example.c.cstring.auto_buffer**](./examples/c/auto-buffer/);
* Win32 global memory: [**example.cpp.cstring.global_memory**](./examples/cpp/cstring.global_memory/).
* Win32 global memory: [**example.cpp.windows.global-memory**](./examples/cpp/windows.global-memory/).


### Allocators
Expand Down Expand Up @@ -318,8 +318,8 @@ Examples live under **examples/** (`c/` and `cpp/`). The directory is the subjec
| [**example.c.cstring.auto_buffer**](./examples/c/auto-buffer/) | C | Borrowed buffer that may grow to the heap |
| [**example.c.cstring_create**](./examples/c/cstring_create/) | C | Minimal `cstring_create()` |
| [**example.c.cstring_vector**](./examples/c/cstring_vector/) | C | Read lines into `cstring_vector_t` and sort (input path or `--`; `SIS_EXAMPLE_SMOKE` enables no-arg demo) |
| [**example.cpp.cstring.dynload**](./examples/cpp/cstring.dynload/) | C++ | Windows-only dynamic load of the cstring DLL |
| [**example.cpp.cstring.global_memory**](./examples/cpp/cstring.global_memory/) | C++ | Windows-only `CSTRING_F_USE_WINDOWS_GLOBAL_MEMORY` |
| [**example.cpp.windows.dyamic-load**](./examples/cpp/windows.dyamic-load/) | C++ | Windows-only dynamic load of the cstring DLL |
| [**example.cpp.windows.global-memory**](./examples/cpp/windows.global-memory/) | C++ | Windows-only `CSTRING_F_USE_WINDOWS_GLOBAL_MEMORY` |


## Project Information
Expand Down
4 changes: 2 additions & 2 deletions examples/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if(_BUILD_AS_WIN32)

add_subdirectory(cstring.dynload)
add_subdirectory(cstring.global_memory)
add_subdirectory(windows.dynamic-load)
add_subdirectory(windows.global-memory)
endif(_BUILD_AS_WIN32)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SIS:AUTO_GENERATED: Remove this line if you edit the file, otherwise it will be overwritten
define_example_program(example.cpp.cstring.dynload main.cpp)
define_example_program(example.cpp.windows.dynamic-load main.cpp)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# example.cpp.cstring.dynload <!-- omit in toc -->
# example.cpp.windows.dyamic-load <!-- omit in toc -->


## Purpose
Expand All @@ -14,7 +14,7 @@ Built when `BUILD_EXAMPLES` is enabled, `NO_CSTRING_CPP_API` is off, and the tar
## Run

```sh
${SIS_CMAKE_BUILD_DIR:-./_build}/examples/cpp/cstring.dynload/example.cpp.cstring.dynload
${SIS_CMAKE_BUILD_DIR:-./_build}/examples/cpp/windows.dyamic-load/example.cpp.windows.dyamic-load
```

Expects a suitable **cstring** DLL (for example `cstring.3.debug.dll`) to be loadable on the process search path.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* /////////////////////////////////////////////////////////////////////////
* File: examples/cpp/cstring.dynload/main.cpp
* File: examples/cpp/windows.dynamic-load/main.cpp
*
* Purpose: Windows-only example loading the cstring DLL dynamically via
* `LoadLibrary` / `GetProcAddress`.
Expand Down Expand Up @@ -169,7 +169,7 @@ int main(int argc, char** argv)
{
#if defined(_DEBUG) || \
defined(__SYNSOFT_DBS_DEBUG)
puts("example.cpp.cstring.dynload: " STLSOFT_COMPILER_LABEL_STRING);
puts("example.cpp.windows.dyamic-load: " STLSOFT_COMPILER_LABEL_STRING);
#endif /* debug */

return main_(argc, argv);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SIS:AUTO_GENERATED: Remove this line if you edit the file, otherwise it will be overwritten
define_example_program(example.cpp.cstring.global_memory main.cpp)
define_example_program(example.cpp.windows.global-memory main.cpp)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# example.cpp.cstring.global_memory <!-- omit in toc -->
# example.cpp.windows.global-memory <!-- omit in toc -->


## Purpose
Expand All @@ -14,7 +14,7 @@ Built when `BUILD_EXAMPLES` is enabled, `NO_CSTRING_CPP_API` is off, and the tar
## Run

```sh
${SIS_CMAKE_BUILD_DIR:-./_build}/examples/cpp/cstring.global_memory/example.cpp.cstring.global_memory
${SIS_CMAKE_BUILD_DIR:-./_build}/examples/cpp/windows.global-memory/example.cpp.windows.global-memory
```


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* /////////////////////////////////////////////////////////////////////////
* File: examples/cpp/cstring.global_memory/main.cpp
* File: examples/cpp/windows.global-memory/main.cpp
*
* Purpose: Windows-only example loading the cstring DLL dynamically via
* `LoadLibrary` / `GetProcAddress`.
Expand Down
8 changes: 5 additions & 3 deletions include/cstring/cstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
#ifndef CSTRING_DOCUMENTATION_SKIP_SECTION
# define CSTRING_VER_CSTRING_H_CSTRING_MAJOR 3
# define CSTRING_VER_CSTRING_H_CSTRING_MINOR 13
# define CSTRING_VER_CSTRING_H_CSTRING_REVISION 3
# define CSTRING_VER_CSTRING_H_CSTRING_EDIT 106
# define CSTRING_VER_CSTRING_H_CSTRING_REVISION 4
# define CSTRING_VER_CSTRING_H_CSTRING_EDIT 107
#endif /* !CSTRING_DOCUMENTATION_SKIP_SECTION */


Expand Down Expand Up @@ -110,6 +110,7 @@
# define CSTRING_VER_4_1_0_B2 0x04010082
# define CSTRING_VER_4_1_0_B3 0x04010083
# define CSTRING_VER_4_1_0_B4 0x04010084
# define CSTRING_VER_4_1_0_B5 0x04010085
#endif /* !CSTRING_DOCUMENTATION_SKIP_SECTION */

/** \def CSTRING_VER_MAJOR
Expand All @@ -135,7 +136,7 @@
#define CSTRING_VER_MAJOR 4
#define CSTRING_VER_MINOR 1
#define CSTRING_VER_PATCH 0
#define CSTRING_VER_RELSTATUS 0x84
#define CSTRING_VER_RELSTATUS 0x85

#define CSTRING_VER \
(0\
Expand All @@ -156,6 +157,7 @@
*/

#include <cstring/common.h>

#include <stdio.h>


Expand Down
Loading