From c181c7b60c5c654831ac1d6d14d27ff1b12eb190 Mon Sep 17 00:00:00 2001 From: Alan C Francis Date: Sun, 31 Dec 2023 23:20:11 +0000 Subject: [PATCH] updated testing --- main.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/main.c b/main.c index ca517d6..e49ac19 100644 --- a/main.c +++ b/main.c @@ -40,31 +40,31 @@ WORD DoTheWork(STRPTR filename) // ConfigFileSet(config, "branch.main.foob", "bar"); // ConfigFileSet(config, "branch.alan.foob", "bar"); ConfigFileSet(config, "branch.main.remote", "testing"); -// ConfigFileSet(config, "branch.main.second", "testing"); + ConfigFileSet(config, "branch.main.second", "testing"); // ConfigFileSet(config, "branch.main.third", "testing"); - ConfigFileReplaceAll(config, "branch.main.alan", "hello"); - ConfigFileAddVariable(config, "branch.main.newvar", "alan"); - ConfigFileAddVariable(config, "branch.main.newvar", "alan2"); - ConfigFileAddVariable(config, "branch.main.newvar", "alan3"); - ConfigFileReplaceAll(config, "branch.main.newvar", "goodbye"); - ConfigFileAddVariable(config, "branch.main.newvar1", "yay"); +// ConfigFileReplaceAll(config, "branch.main.alan", "hello"); +// ConfigFileAddVariable(config, "branch.main.newvar", "alan"); +// ConfigFileAddVariable(config, "branch.main.newvar", "alan2"); +// ConfigFileAddVariable(config, "branch.main.newvar", "alan3"); +// ConfigFileReplaceAll(config, "branch.main.newvar", "goodbye"); +// ConfigFileAddVariable(config, "branch.main.newvar1", "yay"); -// ConfigFileAddVariable(config, "foo1", "alan"); -// ConfigFileAddVariable(config, "test.foo1", "alan2"); -// ConfigFileAddVariable(config, "test.foo.foo1", "alan3"); -// ConfigFileAddVariable(config, "test.foo.bar.foo1", "alan4"); -// ConfigFileAddVariable(config, "test.foo.bar.baz.foo1", "alan5"); -// ConfigFileAddVariable(config, "test.foo.bar.baz.bat.foo1", "alan6"); -// ConfigFileAddVariable(config, "test.section.jane.foo3", "alan3"); -// values = ConfigFileSubsectionsForSection(config, "branch"); -// if( values ) -// { -// StringArrayForEach(values, Printf("branch:[%s]\n",aString);); -// StringArrayFree(values, TRUE); -// } - ConfigFileDump(config); + ConfigFileAddVariable(config, "foo1", "alan"); + ConfigFileAddVariable(config, "test.foo1", "alan2"); + ConfigFileAddVariable(config, "test.foo.foo1", "alan3"); + ConfigFileAddVariable(config, "test.foo.bar.foo1", "alan4"); + ConfigFileAddVariable(config, "test.foo.bar.baz.foo1", "alan5"); + ConfigFileAddVariable(config, "test.foo.bar.baz.bat.foo1", "alan6"); + ConfigFileAddVariable(config, "test.section.jane.foo3", "alan3"); + values = ConfigFileSubsectionsForSection(config, "branch"); + if( values ) + { + StringArrayForEach(values, Printf("branch:[%s]\n",aString);); + StringArrayFree(values, TRUE); + } + ConfigFileSave(config); -// ConfigFileFree(config); + ConfigFileFree(config); } else {