Andrea Pappacoda
5a31af99c4
Add visibility symbols ( #134 )
...
They are required to properly build DLLs on Windows, and improve the
quality of shared objects on Linux.
See https://gcc.gnu.org/wiki/Visibility for details.
This issue was first discovered here:
https://github.com/mesonbuild/wrapdb/pull/340#issuecomment-1075102565
2022-03-24 08:30:27 +13:00
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
Ben Hoyt
d3eda4f60b
Don't use __ reserved identifiers (fixes issue #111 )
2020-07-19 14:57:51 +12:00
Stephan Lachnit
351217124d
r48 release ( #100 )
...
* Bump copyright to 2020
* Remove makefile for static library
* meson: version 48
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-03-01 19:31:28 +13:00
Anatol Belski
82fdde3fcf
Allow handler to be called on a key without '=' or ':' ( #87 )
2019-10-05 10:27:07 -04:00
NiLuJe
ab387ce2ce
Make sure INI_CALL_HANDLER_ON_NEW_SECTION is defined ( #86 )
...
(And stays disabled by default)
2019-07-30 10:51:50 -04:00
Andreas Metzler
307f59404c
2019 07 add copyright and spdx ( #85 )
2019-07-29 13:40:02 -04:00
jsshandle
804c45b069
Resolve HTTP 301 redirect in comment ( #66 )
2018-07-09 15:35:40 -04:00
Ben Hoyt
41fae03717
Add support for changing start-of-line comment characters. Fixes #62
2018-02-09 11:21:00 -05:00
Ben Hoyt
d709bdac5b
Add support for realloc for very long lines ( fixes #61 )
2017-12-14 16:01:30 -05:00
Ben Hoyt
56edbbbef9
Add ini_parse_string() function for issue #57 , initially suggested in PR #38
2017-05-31 08:52:42 -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
4b10c65405
Only define INI_INLINE_COMMENT_PREFIXES if it's not already defined
2016-01-02 13:00:30 -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
Ben Hoyt
a5896a47c5
Add ini_parse_stream() function for custom I/O, for example string I/O.
...
Add ini_handler typedef to simplify function prototypes, and take the same approach for ini_reader.
See https://github.com/benhoyt/inih/pull/38
2015-07-30 18:33:01 -04:00
Ben Hoyt
a32adf2019
Update project link
2015-03-21 20:03:04 -04: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@gmail.com
d91415a208
Per Ben Hiett, add support for heap (malloc) allocation for INI files with very long lines.
2012-10-01 09:32:12 +00:00
benhoyt@gmail.com
0120f80769
Allow UTF-8 BOM char sequence at start of file.
2012-06-18 17:51:23 +00:00
benhoyt@gmail.com
2d41b093b8
Fixed issue 11: #include <stdio.h> in ini.h now that FILE is used in it.
2011-06-27 19:35:59 +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
d83f6c327e
Added kerrigan29a's patch to allow name:value style lines as per Python's ConfigParser.
...
Added tests for the above and updated baselines.
2011-03-10 02:58:58 +00:00
benhoyt@gmail.com
ee0443facf
As per issue 4, document more explicitly that ini_parse() doesn't stop on first error.
2010-09-27 14:11:29 +00:00
benhoyt
232b1d01eb
Fixed Issue 3: INIReader::GetInteger() was buggy because the scope of the string Get() returned was too temporary for how I was using it's c_str(). Thanks, dreamer.dead for the bug report.
...
Included <cstdlib> in INIReader.cpp to get strtol().
Make ini.h have extern "C" wrapper in it so it's easier to include from C++ code (gcc seemed to do this automagically, but MSVC not so much).
2009-09-30 09:10:38 +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
benhoyt
6aae10568f
First commit. Basically just committing what I published in the blog entry.
2009-07-10 09:48:46 +00:00