]> mj.ucw.cz Git - libucw.git/commit
Opt: Introduced contexts
authorMartin Mares <mj@ucw.cz>
Tue, 3 Sep 2013 14:14:33 +0000 (16:14 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 3 Sep 2013 14:14:33 +0000 (16:14 +0200)
commit841068939a49153d682f15e8fefa1d950f7179c0
tree6ed2e2f3ec6736b35d36bd4942e539bb50bd0e63
parentbd6e38d572e2d8ef534d628328ff8dd92ddb3b6f
Opt: Introduced contexts

`struct opt_precomputed' was turning to a option parser context,
so let's admit it. Renamed to `opt_context' and make it passed
as the first argument.

The name of `struct opt_precomputed_option' was a way too unwieldy,
so I renamed it to `struct opt_precomputed'.

Also got rid of several globals variables, but others remain.
ucw/opt.c