CONFIG

Bernhard Fischer rep.dot.nop at gmail.com
Mon Jul 21 07:29:03 UTC 2008


On Sat, Jul 19, 2008 at 11:31:45AM +0200, Denys Vlasenko wrote:
>On Saturday 19 July 2008 08:58, dronnikov at gmail.com wrote:
>> Added verbose comments on config_read().
>> Added testsuite (runtest parse).
>> Let us collect interesting cases and thoroughly test them.
>> Fixed inittab parsing. Bernhard, please test.
>
>-	while (config_read(parser, token, -4, 0, ":", '#') >= 0) {
>+ 	while (config_read(parser, token, 4, 4, "#:", PARSE_DONT_TRIM|PARSE_DONT_REDUCE|PARSE_LAST_IS_GREEDY) > 0) {

I'm sceptical about this new interface. How can i state that i
-) accept _no_ comment chars but e.g. ";," as delimiter?
-) accept "^[[:space:]]*[#;]" comments and ";[[:space:]]" as delim?

The latter is probably not used -- or at least not widely used -- in bb.
Thanks,



More information about the busybox mailing list