From: Martin Mares Date: Sun, 30 Apr 2006 10:02:55 +0000 (+0200) Subject: Renamed conf-test.t to conf-test.cf, because .t usually denotes inputs X-Git-Tag: holmes-import~645^2~7 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9b84b72c19830a6fc85addb49c0e0b615836a2c1;p=libucw.git Renamed conf-test.t to conf-test.cf, because .t usually denotes inputs for build/tester. --- diff --git a/lib/conf-test.c b/lib/conf-test.c index 89e65bd3..0a4209da 100644 --- a/lib/conf-test.c +++ b/lib/conf-test.c @@ -187,7 +187,7 @@ main(int argc, char *argv[]) { log_init(argv[0]); cf_declare_section("top", &cf_top, 0); - cf_def_file = "lib/conf-test.t"; + cf_def_file = "lib/conf-test.cf"; int opt; while ((opt = cf_getopt(argc, argv, short_opts, long_opts, NULL)) >= 0) diff --git a/lib/conf-test.cf b/lib/conf-test.cf new file mode 100644 index 00000000..39b803be --- /dev/null +++ b/lib/conf-test.cf @@ -0,0 +1,48 @@ +# test config file +#include lib/conf-test.t ; top.xa=1 +#include 'non-existent file'; #top.xa=1 +Top { \ + + nr1=16 #!!! + nrs1 2 3 5 \ + 7 11 13 \ + \ + 17M + nrs2 3 3k 3 3 3 ; \ + str1 "hello,\t\x2bworld%%\n" + str2 'Hagenuk, + the best' "\ + " qu'est-ce que c'est? + u1 0xbadcafebadbeefc0 + str2:prepend prepended + str2:append appended + d1 7% + d1 -1.14e-25 + firsttime ; secondtime 56 + ^top.master:set alice HB8+ + slaves:clear + ip 0xa + ip 195.113.31.123 + look Alpha + look:prepend Beta GAMMA + numbers 11000 65535 +};;;;;; + +unknown.ignored :-) + +top.slaves cairns gpua 7 7 -10% +10% +top.slaves daintree rafc 4 5 -171% +top.slaves coogee pum 9 8 +top.slaves:prepend {name=bondi; level=\ + "PUG"; confidence 10 10} +top.slaves:remove {name daintree} +top.slaveS:edit {level PUG} Bondi PUG! +top.slaveS:before {level pum}{ + confidence 2 + list 123 456 789 +} +top.slaves:copy {name coogee} Coogee2 PUM + +topp.a=15 +top.nr1= ' 15' +a { ;-D } diff --git a/lib/conf-test.t b/lib/conf-test.t deleted file mode 100644 index 39b803be..00000000 --- a/lib/conf-test.t +++ /dev/null @@ -1,48 +0,0 @@ -# test config file -#include lib/conf-test.t ; top.xa=1 -#include 'non-existent file'; #top.xa=1 -Top { \ - - nr1=16 #!!! - nrs1 2 3 5 \ - 7 11 13 \ - \ - 17M - nrs2 3 3k 3 3 3 ; \ - str1 "hello,\t\x2bworld%%\n" - str2 'Hagenuk, - the best' "\ - " qu'est-ce que c'est? - u1 0xbadcafebadbeefc0 - str2:prepend prepended - str2:append appended - d1 7% - d1 -1.14e-25 - firsttime ; secondtime 56 - ^top.master:set alice HB8+ - slaves:clear - ip 0xa - ip 195.113.31.123 - look Alpha - look:prepend Beta GAMMA - numbers 11000 65535 -};;;;;; - -unknown.ignored :-) - -top.slaves cairns gpua 7 7 -10% +10% -top.slaves daintree rafc 4 5 -171% -top.slaves coogee pum 9 8 -top.slaves:prepend {name=bondi; level=\ - "PUG"; confidence 10 10} -top.slaves:remove {name daintree} -top.slaveS:edit {level PUG} Bondi PUG! -top.slaveS:before {level pum}{ - confidence 2 - list 123 456 789 -} -top.slaves:copy {name coogee} Coogee2 PUM - -topp.a=15 -top.nr1= ' 15' -a { ;-D }