]> mj.ucw.cz Git - libucw.git/commit
Opt: Simplified preprocessing of options
authorMartin Mares <mj@ucw.cz>
Mon, 27 Jan 2014 14:04:07 +0000 (15:04 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 27 Jan 2014 14:04:07 +0000 (15:04 +0100)
commitf7a5d513ac3750e2c41c8d2aaa9c1f0e44a5b259
tree8126d0072dbf940cc630b7af213d2a7980c9b102
parent3a61985024a797f8b7499006ee72e9706f01149e
Opt: Simplified preprocessing of options

Replaced OPT_TRAVERSE_SECTIONS by proper recursion.

oc->opts now contains struct opt_precomputed's directly instead
of pointers to them, so that we need not allocate each struct
separately (and leak memory).

Counting of each OPT_CL_BOOL option twice has been removed, I hope
it is not necessary any longer as the "no-" prefix does not need
its own entry.
ucw/opt.c
ucw/opt.h