X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fopt%2Fprivate.h;h=5d9eca23a0ddf55b81f812009b2b09e0fed104d7;hp=b1a189234974bb8250102cd3a073f00b6bb503e2;hb=d89e5744f30b584ac4909ce1164af1289c41359b;hpb=f8b1841d26dabd23c053f5fc61dbd1536cdad43c diff --git a/ccan/opt/private.h b/ccan/opt/private.h index b1a18923..5d9eca23 100644 --- a/ccan/opt/private.h +++ b/ccan/opt/private.h @@ -2,10 +2,13 @@ #define CCAN_OPT_PRIVATE_H extern struct opt_table *opt_table; -extern unsigned int opt_count; +extern unsigned int opt_count, opt_num_short, opt_num_short_arg, opt_num_long; extern const char *opt_argv0; -#define subtable_of(entry) ((struct opt_table *)((entry)->longopt)) +#define subtable_of(entry) ((struct opt_table *)((entry)->names)) + +const char *first_sopt(unsigned *i); +const char *next_sopt(const char *names, unsigned *i); #endif /* CCAN_OPT_PRIVATE_H */