Lines Matching refs:opt

262 #define ovisible(opt) (! ((opt)->flags & OPTION_HIDDEN))  argument
265 #define oalias(opt) ((opt)->flags & OPTION_ALIAS) argument
268 #define odoc(opt) ((opt)->flags & OPTION_DOC) argument
271 #define oend(opt) __option_is_end (opt) argument
274 #define oshort(opt) __option_is_short (opt) argument
360 const struct argp_option *opt; member
476 entry->opt = o; in make_hol()
555 int (*func)(const struct argp_option *opt, in hol_entry_short_iterate() argument
562 const struct argp_option *opt, *real = entry->opt; in hol_entry_short_iterate() local
565 for (opt = real, nopts = entry->num; nopts > 0 && !val; opt++, nopts--) in hol_entry_short_iterate()
566 if (oshort (opt) && *so == opt->key) in hol_entry_short_iterate()
568 if (!oalias (opt)) in hol_entry_short_iterate()
569 real = opt; in hol_entry_short_iterate()
570 if (ovisible (opt)) in hol_entry_short_iterate()
571 val = (*func)(opt, real, domain, cookie); in hol_entry_short_iterate()
584 int (*func)(const struct argp_option *opt, in hol_entry_long_iterate() argument
591 const struct argp_option *opt, *real = entry->opt; in hol_entry_long_iterate() local
593 for (opt = real, nopts = entry->num; nopts > 0 && !val; opt++, nopts--) in hol_entry_long_iterate()
594 if (opt->name) in hol_entry_long_iterate()
596 if (!oalias (opt)) in hol_entry_long_iterate()
597 real = opt; in hol_entry_long_iterate()
598 if (ovisible (opt)) in hol_entry_long_iterate()
599 val = (*func)(opt, real, domain, cookie); in hol_entry_long_iterate()
607 until_short (const struct argp_option *opt, const struct argp_option *real, in until_short() argument
610 return oshort (opt) ? opt->key : 0; in until_short()
625 const struct argp_option *opt; in hol_entry_first_long() local
627 for (opt = entry->opt, num = entry->num; num > 0; opt++, num--) in hol_entry_first_long()
628 if (opt->name && ovisible (opt)) in hol_entry_first_long()
629 return opt->name; in hol_entry_first_long()
643 const struct argp_option *opt = entry->opt; in hol_find_entry() local
647 if (opt->name && ovisible (opt) && strcmp (opt->name, name) == 0) in hol_find_entry()
650 opt++; in hol_find_entry()
841 (odoc (entry1->opt) ? long1 != NULL && canon_doc_option (&long1) : 0); in hol_entry_cmp()
843 (odoc (entry2->opt) ? long2 != NULL && canon_doc_option (&long2) : 0); in hol_entry_cmp()
979 const struct argp_option *opt; in hol_append() local
983 for (opts_left = e->num, opt = e->opt; opts_left; opt++, opts_left--) in hol_append()
986 if (oshort (opt) && ch == opt->key) in hol_append()
1214 const struct argp_option *real = entry->opt, *opt; in hol_entry_help() local
1225 for (opt = real, num = entry->num; num > 0; opt++, num--) in hol_entry_help()
1226 if (opt->name && ovisible (opt)) in hol_entry_help()
1234 for (opt = real, num = entry->num; num > 0; opt++, num--) in hol_entry_help()
1235 if (oshort (opt) && opt->key == *so) in hol_entry_help()
1238 if (ovisible (opt)) in hol_entry_help()
1258 for (opt = real, num = entry->num; num > 0; opt++, num--) in hol_entry_help()
1259 if (opt->name && ovisible (opt)) in hol_entry_help()
1268 opt->name)); in hol_entry_help()
1275 for (opt = real, num = entry->num; num > 0; opt++, num--) in hol_entry_help()
1276 if (opt->name && ovisible (opt)) in hol_entry_help()
1279 __argp_fmtstream_printf (stream, "--%s", opt->name); in hol_entry_help()
1371 add_argless_short_opt (const struct argp_option *opt, in add_argless_short_opt() argument
1376 if (!(opt->arg || real->arg) in add_argless_short_opt()
1377 && !((opt->flags | real->flags) & OPTION_NO_USAGE)) in add_argless_short_opt()
1378 *(*snao_end)++ = opt->key; in add_argless_short_opt()
1385 usage_argful_short_opt (const struct argp_option *opt, in usage_argful_short_opt() argument
1390 const char *arg = opt->arg; in usage_argful_short_opt()
1391 int flags = opt->flags | real->flags; in usage_argful_short_opt()
1401 __argp_fmtstream_printf (stream, " [-%c[%s]]", opt->key, arg); in usage_argful_short_opt()
1407 __argp_fmtstream_printf (stream, "[-%c %s]", opt->key, arg); in usage_argful_short_opt()
1417 usage_long_opt (const struct argp_option *opt, in usage_long_opt() argument
1422 const char *arg = opt->arg; in usage_long_opt()
1423 int flags = opt->flags | real->flags; in usage_long_opt()
1434 __argp_fmtstream_printf (stream, " [--%s[=%s]]", opt->name, arg); in usage_long_opt()
1436 __argp_fmtstream_printf (stream, " [--%s=%s]", opt->name, arg); in usage_long_opt()
1439 __argp_fmtstream_printf (stream, " [--%s]", opt->name); in usage_long_opt()