1
0
mirror of https://github.com/benhoyt/inih.git synced 2025-01-28 22:52:54 +08:00

7 Commits

Author SHA1 Message Date
Ben Hoyt
977efc5e73 README tweaks; unittest.c spacing tweaks 2019-04-08 20:42:16 -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
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
dbf771afeb Issue #55: handle empty value immediately followed by comment 2016-10-11 09:31:22 -04:00
benhoyt@gmail.com
23d69228bf Fixed char/unsigned char issue with r20. Added unit test for BOM handling. 2012-06-19 13:48:44 +00:00
benhoyt@gmail.com
b1170c9568 Issue 7: Factored out ini_parse_file() so users can parse INI file with just a FILE* instead of a filename, and use fmemopen.
Forgot to commit examples/test.ini in previous commit.
Fix strncmp redefine warning when compiling tests/unittest.c.
2011-06-24 18:48:58 +00:00
benhoyt
4d08274b35 Moved examples to their own examples/ dir.
Only define INI_ALLOW_MULTILINE if it's not already defined.
Added C++ INIReader class.
Moved license into LICENSE.txt, added README.txt.
Added unit tests and checked in baseline files.
Made line lengths < 80 chars.
2009-08-20 21:59:32 +00:00