[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
AutoOpts will either specify or automatically generate callback procedures
for options that take specialized arguments. The only option argument types
that are not specialized are plain string arguments and no argument at all.
For options that fall into one of those two categories, you may specify your
own callback function, as specified below. If the option takes a string
argument, then you may specify that the option is to be handled by the
libopts
library procedures stackOptArg()
or
unstackOptArg()
(see below). Finally, documentation
options
(7.3.4.3 Special Option Handling) may also be marked as settable and have
special callback functions (either flag-code
, extract-code
, or
call-proc
).
static void doOpt<name>( tOptions* pOptions, tOptDesc* pOptDesc ) { <flag_code> } |
Only certain fields within the tOptions
and tOptDesc
structures may be accessed. See section 7.4.1 Data for Option Processing.
flag_code
, except that the
source is kept in the output file instead of the definitions file.
A long comment is used to demarcate the code. You must not modify
that marker. Before regenerating the option code file,
the old file is renamed from MUMBLE.c to MUMBLE.c.save. The template
will be looking there for the text to copy into the new output file.
doOpt<name>
. It has the same restrictions
regarding the fields within the structures passed in as arguments.
See section 7.4.1 Data for Option Processing.
flag_code
can be executed
when this option is encountered.
STACKCT_OPT(NAME)
) and to obtain a
pointer to a list of pointers to the argument values
(STACKLST_OPT(NAME)
). Obviously, for a stackable argument,
the max
attribute needs to be set higher than 1
.
If this stacked argument option has a disablement prefix, then the entire stack of arguments will be cleared by specifying the option with that disablement prefix.
stack-arg
option stack. This attribute must name
the option that is to be "unstacked". Neither this option nor
the stacked argument option it references may be equivalenced to
another option.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |