mirror of
https://github.com/benhoyt/inih.git
synced 2025-01-28 22:52:54 +08:00
4d08274b35
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.
27 lines
493 B
Plaintext
27 lines
493 B
Plaintext
no_file.ini: e=-1 user=0
|
|
... [section1]
|
|
... one=This is a test;
|
|
... two=1234;
|
|
... [ section 2 ]
|
|
... happy=4;
|
|
... sad=;
|
|
normal.ini: e=0 user=101
|
|
... [section1]
|
|
... name1=value1;
|
|
... name2=value2;
|
|
bad_section.ini: e=3 user=102
|
|
bad_comment.ini: e=1 user=102
|
|
... [section]
|
|
... a=b;
|
|
... user=parse_error;
|
|
... c=d;
|
|
user_error.ini: e=3 user=104
|
|
... [section1]
|
|
... single1=abc;
|
|
... multi=this is a;
|
|
... single2=xyz;
|
|
... [section2]
|
|
... multi=a;
|
|
multi_line.ini: e=4 user=105
|
|
bad_multi.ini: e=1 user=105
|