1 #ifndef CCAN_OPT_PRIVATE_H
2 #define CCAN_OPT_PRIVATE_H
4 extern struct opt_table *opt_table;
5 extern unsigned int opt_count, opt_num_short, opt_num_short_arg, opt_num_long;
7 extern const char *opt_argv0;
9 #define subtable_of(entry) ((struct opt_table *)((entry)->names))
11 const char *first_sopt(unsigned *i);
12 const char *next_sopt(const char *names, unsigned *i);
13 const char *first_lopt(unsigned *i, unsigned *len);
14 const char *next_lopt(const char *p, unsigned *i, unsigned *len);
16 int parse_one(int *argc, char *argv[], unsigned *offset,
17 void (*errlog)(const char *fmt, ...));
19 #endif /* CCAN_OPT_PRIVATE_H */