X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=ucw%2Fopt-internal.h;h=21c67a6e16e5ff9a906631aa180fb31270727dee;hb=959566090f98dd31eaa67d3d5959b641e5fe902b;hp=77434d7a63a055208e49cadb77f06f70f3960fd6;hpb=50c7c2b64a94a085b20e375bc67180a4470c2564;p=libucw.git diff --git a/ucw/opt-internal.h b/ucw/opt-internal.h index 77434d7a..21c67a6e 100644 --- a/ucw/opt-internal.h +++ b/ucw/opt-internal.h @@ -25,22 +25,22 @@ struct opt_context { const struct opt_section * options; struct opt_precomputed * opts; struct opt_precomputed ** shortopt; - struct opt_item ** hooks; + const struct opt_item ** hooks; int opt_count; int hook_count; int positional_max; int positional_count; - bool stop_parsing; + int stop_parsing; enum opt_conf_state conf_state; }; struct opt_precomputed { - struct opt_item * item; + const struct opt_item * item; const char * name; short flags; short count; }; -void opt_precompute(struct opt_precomputed *opt, struct opt_item *item); +void opt_precompute(struct opt_precomputed *opt, const struct opt_item *item); #endif