]> mj.ucw.cz Git - libucw.git/commit
Opt: Generalization of hooks
authorMartin Mares <mj@ucw.cz>
Mon, 27 Jan 2014 19:23:18 +0000 (20:23 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 27 Jan 2014 19:23:18 +0000 (20:23 +0100)
commitbdccfb6b49a17a2ac0e1fb3063df3766cd4abd5c
tree215c4abfdec14201a88197ccfde4415b633af8b4
parent924caf6f42990dc99c1d7e4a954da1533e37e537
Opt: Generalization of hooks

Hooks can specify a subset of events they wish to receive.
Helps to get rid of lots of special-casing.

In particular, the end of parsing is also an event, so that we
can load configuration if it has not been loaded yet. (This was
a bug in the original implementation, which never turned up,
because opt-test has mandatory arguments.)
ucw/opt-conf.c
ucw/opt-help.c
ucw/opt-test.c
ucw/opt.c
ucw/opt.h