From f83f21f98069c3267725c640f090feb6a2628894 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Wed, 22 May 2024 00:37:58 +0200 Subject: Add multiline ini parsing --- test/ini.c | 5 ++++- test/test.ini | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/ini.c b/test/ini.c index ebd41a6..06f841a 100644 --- a/test/ini.c +++ b/test/ini.c @@ -20,7 +20,10 @@ void test_ini() /*13*/ "try = catch 123 bool\n" /*14*/ " k e y = value pair! ; comment\n" /*15*/ " su;s = [x] \n" - /*16*/ " sus \n"; + /*16*/ " sus \n" + /*17*/ "test = multi \\\n" + /*18*/ " line \\\n" + /*19*/ " works ; boh \n"; any_ini_t ini; any_ini_init(&ini, src, strlen(src)); diff --git a/test/test.ini b/test/test.ini index e575371..6d5f939 100644 --- a/test/test.ini +++ b/test/test.ini @@ -20,7 +20,7 @@ sus ; sus 123 = 456 ; comment - ; another + ; another crazy = stuff ; here crumped=stuff;nocomment @@ -30,11 +30,11 @@ crumped=stuff;nocomment [another] - ciao = s + ciao = s ]err = sus[ - [empty] + [empty] ; yes ; -- cgit v1.2.3