[Chilli] a question of size, if it matters
David Bird
david at coova.com
Mon Nov 29 07:23:15 UTC 2010
Hello out there...
Chilli has used gengetopt to generate the configuration parser from the
beginning. It's a handy tool, that uses the cmdline.ggo file which
defines all the possible configuration options. Gengetopt allows for a
wide range of "configuration configurations" :) . You can define options
that are flags, that optionally take arguments, that can be repeated
(giving the min/max number of times), and so on... Options can be used
on the command line (in the getopt_long() --<option> style) or loaded
from a file. The gengetopt project even added the ability to 'include
<file>' from a configuration file suggested by our patch that did the
same. Yet, chilli really doesn't use many of the gengetopt features, and
the generated cmdline.c isn't exactly the smallest of code (cmdline.o
being one of the larger .o's in the project). I am now testing a new
stripped down configuration parser generated from the same cmdline.ggo
and only implementing the needed features and includes none of the help
text. Enable at compile-time with ./configure --enable-miniconfig. Doing
so will switch from using cmdline.c to using cmdline.mini.c when
building chilli_opt.
More information about the Chilli
mailing list