private.h 616 B

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