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