1
0
mirror of https://github.com/benhoyt/inih.git synced 2025-02-05 07:08:23 +08:00

8 Commits

Author SHA1 Message Date
Ben Hoyt
1e80a47dff
Add INI_CUSTOM_ALLOCATOR to allow using a custom memory allocator (#119)
Fixes https://github.com/benhoyt/inih/issues/118
2020-10-13 21:25:18 +13:00
Anatol Belski
82fdde3fcf Allow handler to be called on a key without '=' or ':' (#87) 2019-10-05 10:27:07 -04:00
ksdhans
be59185856 Add option to call handler when a new section is encountered (#79)
Some programs have ini files with multiple sections that have the same name, which would make it very useful to know when a new section is encountered.

This patch adds this ability as an option that's enabled by setting INI_CALL_HANDLER_ON_NEW_SECTION to 1
2019-04-08 08:44:21 -04:00
Ben Hoyt
d709bdac5b Add support for realloc for very long lines (fixes #61) 2017-12-14 16:01:30 -05:00
Ben Hoyt
30a85920d1 Support for reporting current line
This is @MaG21's PR #56 but solved a different way, using compile-time flags so it's zero-overhead if you don't need it.
2016-12-29 10:53:49 -05:00
Ben Hoyt
441b65ba83 Add option to disable inline comments and to specify which inline comment character are allowed: https://github.com/benhoyt/inih/issues/40 2016-01-02 12:43:09 -05:00
benhoyt@gmail.com
f2914d460c Add INI_STOP_ON_FIRST_ERROR per Robin Getz (defaults to off).
Add unit test baseline with this option on.
See also f4b25de039
2013-12-19 19:38:21 +00:00
benhoyt
0a54de5b78 Fixed issue 16: properly handle comments on multi-line values.
Added batch file to run unit tests.
2012-01-02 20:15:12 +00:00