Skip to content

Releases: benhoyt/inih

inih version 52

13 Oct 08:30
1e80a47

Choose a tag to compare

Add INI_CUSTOM_ALLOCATOR to allow using a custom memory allocator. Per the README:

By default when using the heap, the standard library's malloc, free, and realloc functions are used; to use a custom allocator, specify -DINI_CUSTOM_ALLOCATOR=1 (and -DINI_USE_STACK=0). You must define and link functions named ini_malloc, ini_free, and (if INI_ALLOW_REALLOC is set) ini_realloc, which must have the same signatures as the stdlib.h memory allocation functions.

See tests/unittest_alloc.c for an example.

Fixes #118.

inih version 51

19 Jun 00:24

Choose a tag to compare

Fix potential read from invalid memory with memcpy fix (#107 - thanks @nolange).

inih version 50

08 Jun 07:51

Choose a tag to compare

Use memcpy instead of strncpy to avoid gcc warnings (issue #104 and #91)

inih version 49

22 Apr 02:50
16787c4

Choose a tag to compare

Meson build updates and options, README tweak (no code changes)

inih version 48

01 Mar 06:32
3512171

Choose a tag to compare

Added meson.build. Thanks @stephanlachnit.

inih version 47

14 Dec 02:48

Choose a tag to compare

Fix crashes due to name or value being NULL if INI_CALL_HANDLER_ON_NEW_SECTION or INI_ALLOW_NO_VALUE are enabled, respectively (see #93). Also add INIReader constructor accepting a buffer (#92). Thanks @vrresto.

inih version 46

05 Oct 20:11

Choose a tag to compare

Add INI_ALLOW_NO_VALUE: by default, inih treats a name with no value (no = or : on the line) as an error. To allow names with no values, add -DINI_ALLOW_NO_VALUE=1, and inih will call your handler function with value set to NULL. Thanks @weltling.

inih version 45

02 Aug 00:45

Choose a tag to compare

Ensure INI_CALL_HANDLER_ON_NEW_SECTION is always defined. Add copyright and SPDX-License fields to source files.

inih version 44

24 May 08:06

Choose a tag to compare

Add HasSection() to C++ API. #81

inih version 43

09 Apr 01:03

Choose a tag to compare

Support for calling handler on new section (INI_CALL_HANDLER_ON_NEW_SECTION). Thanks @ksdhans. Fixes #79.