Simple .INI file parser in C, good for embedded systems
Full Changelog: https://github.com/benhoyt/inih/compare/r57...r58
Full Changelog: https://github.com/benhoyt/inih/compare/r56...r57
Added "version" to meson.build
config: https://github.com/benhoyt/inih/pull/135 (but bumped up to 55
in a subsequent commit, for this release).
Mainly #134, adding the visibility symbols to the Meson build config, but also other small tweaks to tests and so on.
Updates to Meson config:
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
, andrealloc
functions are used; to use a custom allocator, specify-DINI_CUSTOM_ALLOCATOR=1
(and-DINI_USE_STACK=0
). You must define and link functions namedini_malloc
,ini_free
, and (ifINI_ALLOW_REALLOC
is set)ini_realloc
, which must have the same signatures as thestdlib.h
memory allocation functions.
See tests/unittest_alloc.c for an example.
Fix potential read from invalid memory with memcpy fix (#107 - thanks @nolange).
Use memcpy instead of strncpy to avoid gcc warnings (issue #104 and #91)
Meson build updates and options, README tweak (no code changes)