Ben Hoyt
fcdecb8bdb
Fuzzing support via AFL
2021-02-24 11:47:12 +13:00
Ben Hoyt
e492a253ec
Ensure value passed to strcmp is non-NULL in unittest.c
...
Fixes #127 . Thanks Seth Arnold.
2021-02-09 15:56:28 +13:00
Stephan Lachnit
cb55f57d87
meson: add static compile args to inih_dep ( #126 )
...
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
r53
2021-02-08 09:35:56 +13:00
Stephan Lachnit
98dafacc76
enable distro settings by default ( #125 )
...
* meson: enable distro settings by default
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
* meson: add note about version in pkg-config file
See also #123 .
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2021-02-07 14:08:34 +13:00
bkuhls
e192e47627
meson: optionally depend on c++ ( #124 )
...
This fix is needed to allow building with toolchains which lack c++.
2021-01-11 09:56:56 +13:00
Debabrata Deka
e35e230763
Add architecture ppc64le to travis build ( #122 )
2020-11-27 07:50:48 +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
r52
2020-10-13 21:25:18 +13:00
xx55tt
672457c6df
Meson: fix the integer conversions ( #113 )
...
Meson doesn't have a `str` function, so it's not possible to change the integer options.
`subprojects/inih/meson.build:50:8: ERROR: Unknown function "str".`
2020-08-04 09:03:26 +12:00
Ben Hoyt
d3eda4f60b
Don't use __ reserved identifiers (fixes issue #111 )
2020-07-19 14:57:51 +12:00
Stephan Lachnit
32519ea045
meson: remove project version ( #109 )
...
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-06-21 17:01:28 +12:00
Ben Hoyt
d7f465792c
Fix #107 (ugh, I thought changing from strncpy was a bad idea)
r51
2020-06-18 19:32:52 +12:00
Ben Hoyt
8fe4b21438
Use memcpy instead of strncpy to avoid gcc warnings (issue #104 and #91 )
r50
2020-06-04 18:13:04 +12:00
Stephan Lachnit
16787c478a
Add options for Meson ( #103 )
...
* README: initial malloc size before allow realloc
* meson: fix wrong dependency for INIReader
* meson: implement options
* r49 release
r49
2020-04-22 14:49:24 +12:00
Phoebe
3e95a77a42
Add vcpkg installation instructions ( #102 )
2020-04-01 21:27:33 +13: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>
r48
2020-03-01 19:31:28 +13:00
Stephan Lachnit
bf2f849c77
meson: use include directories ( #99 )
...
Using include directories instead of adding the headers to the source properly accounts for the right dependencies.
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-02-28 09:28:12 +13:00
Stephan Lachnit
ee0bacace7
more meson stuff ( #98 )
...
* meson: add dependencies as variables
* README: add meson notes
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-02-27 09:02:16 +13:00
Stephan Lachnit
b546971f32
add meson for system installation ( #97 )
...
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-02-26 11:59:18 +13:00
girish joshi
b195a45a99
Freed memory before exiting in examples/ini_example.c ( #95 )
2020-02-01 20:24:41 +13:00
Ben Hoyt
75fe6b1a03
Make INIReader not crash when INI_CALL_HANDLER_ON_NEW_SECTION enabled (name NULL)
r47
2019-12-13 21:45:53 -05:00
Ben Hoyt
1e7a61d696
Make INIReader not crash when INI_ALLOW_NO_VALUE enabled (with value NULL)
2019-12-13 21:41:12 -05:00
Jan Lepper
d0a152d531
INIReader: add constructor accepting a buffer ( #92 )
2019-12-11 08:47:41 -05:00
Anatol Belski
0a87bf1669
Fix possible int overflow in reader cb ( #88 )
2019-10-08 13:54:08 -04:00
Ben Hoyt
6edb31a218
Tweak formatting of NULL in README for consistency
r46
2019-10-05 16:09:33 -04:00
Ben Hoyt
c2a54dcca1
Update README to mention INI_ALLOW_NO_VALUE
2019-10-05 16:08:26 -04: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)
r45
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
Ben Hoyt
185923c7f3
Update README.md
2019-05-29 08:29:12 -04:00
Ben Hoyt
b1dbff4b0b
Tweaks and basics tests for C++ version
r44
2019-05-24 00:55:02 -07:00
evorw
63112f237a
Add HasSection to C++ API ( #81 )
2019-05-24 00:41:21 -07:00
Ben Hoyt
1d07c47906
Add TravisCI badge at top of README
r43
2019-04-08 20:58:26 -04:00
Ben Hoyt
a0677e6a9f
Fix Travis config to language: C
2019-04-08 20:53:44 -04:00
Ben Hoyt
29c3b8e88a
Test
2019-04-08 20:52:36 -04:00
Ben Hoyt
83e572d6db
Test tests
2019-04-08 20:50:20 -04:00
Ben Hoyt
6285c66e34
Add test Travis config
2019-04-08 20:49:20 -04:00
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
NeatNit
2023872dff
Add INIReader::GetString to get nicer default_value behavior ( #72 )
...
* add INIReader::GetString
Same as INIReader::Get, but returns default_value if the value is an empty string, which provides functionality similar to GetInteger and the others
* clarify GetString description comment
2018-10-12 09:58:40 -04:00
Ben Hoyt
0ee2bf26ab
Fix HasValue compile error
2018-09-10 09:19:19 -04:00
Jesse van Rhijn
e0a31533b5
Add HasValue method to INIReader ( #69 )
...
* Add HasValue method to INIReader
2018-09-04 18:51:41 -04:00
Oliver Galvin
a9f2a5e657
Avoid cppcheck free() error ( #67 )
2018-07-22 18:35:08 -04:00
Fredrik Blix
5b0e675a4d
Fixed cppcheck warnings ( #65 )
...
* Fixed cppcheck warnings
* Update from feedback
Update from feedback
2018-07-10 08:32:03 -04:00
jsshandle
804c45b069
Resolve HTTP 301 redirect in comment ( #66 )
2018-07-09 15:35:40 -04:00
TuxSH
9d1af9d500
Silence -Wstringop-truncation ( #64 )
...
This pull request fixes -Wstringop-truncation (implemented in GCC 8.1), without changing the behavior of the function.
r42
2018-05-14 21:48:24 -04:00
Ben Hoyt
41fae03717
Add support for changing start-of-line comment characters. Fixes #62
r41
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
4b83b02311
Fix typo in Windows/Unicode note
2017-07-10 11:52:55 -04:00
Ben Hoyt
3a4cd73f6e
Add note about Unicode filenames on Windows (thanks @WilliamFeely)
2017-07-10 11:52:14 -04:00
Ben Hoyt
56edbbbef9
Add ini_parse_string() function for issue #57 , initially suggested in PR #38
r40
2017-05-31 08:52:42 -04:00