-
-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
6 changed files
with
89 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
no_file.ini: e=-1 user=0 | ||
... [section1] | ||
... one=This is a test; line 3 | ||
... two=1234; line 4 | ||
... [ section 2 ] | ||
... happy=4; line 8 | ||
... sad=; line 9 | ||
... [comment_test] | ||
... test1=1;2;3; line 15 | ||
... test2=2;3;4;this won't be a comment, needs whitespace before ';'; line 16 | ||
... test;3=345; line 17 | ||
... test4=4#5#6; line 18 | ||
... test7=; line 21 | ||
... test8=; not a comment, needs whitespace before ';'; line 22 | ||
... [colon_tests] | ||
... Content-Type=text/html; line 25 | ||
... foo=bar; line 26 | ||
... adams=42; line 27 | ||
... funny1=with = equals; line 28 | ||
... funny2=with : colons; line 29 | ||
... funny3=two = equals; line 30 | ||
... funny4=two : colons; line 31 | ||
normal.ini: e=0 user=101 | ||
... [section1] | ||
... name1=value1; line 2 | ||
... name2=value2; line 5 | ||
bad_section.ini: e=3 user=102 | ||
bad_comment.ini: e=1 user=102 | ||
... [section] | ||
... a=b; line 2 | ||
... user=parse_error; line 3 | ||
... c=d; line 4 | ||
user_error.ini: e=3 user=104 | ||
... [section1] | ||
... single1=abc; line 2 | ||
... multi=this is a; line 3 | ||
... multi=multi-line value; line 4 | ||
... single2=xyz; line 5 | ||
... [section2] | ||
... multi=a; line 7 | ||
... multi=b; line 8 | ||
... multi=c; line 9 | ||
... [section3] | ||
... single=ghi; line 11 | ||
... multi=the quick; line 12 | ||
... multi=brown fox; line 13 | ||
... name=bob smith; line 14 | ||
multi_line.ini: e=0 user=105 | ||
bad_multi.ini: e=1 user=105 | ||
... [bom_section] | ||
... bom_name=bom_value; line 2 | ||
... key“=value“; line 3 | ||
bom.ini: e=0 user=107 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters