Lines Matching defs:prefix

205 static int print_arg_help(struct isl_arg *decl, const char *prefix, int no)
225 if (prefix) {
226 printf("%s-", prefix);
227 len += strlen(prefix) + 1;
336 static void print_choice_help(struct isl_arg *decl, const char *prefix,
342 pos = print_arg_help(decl, prefix, 0);
401 static void print_flags_help(struct isl_arg *decl, const char *prefix,
407 pos = print_arg_help(decl, prefix, 0);
435 static void print_bool_help(struct isl_arg *decl, const char *prefix, void *opt)
440 pos = print_arg_help(decl, prefix, no);
453 static void print_int_help(struct isl_arg *decl, const char *prefix, void *opt)
458 pos = print_arg_help(decl, prefix, 0);
466 static void print_long_help(struct isl_arg *decl, const char *prefix, void *opt)
470 pos = print_arg_help(decl, prefix, 0);
485 static void print_ulong_help(struct isl_arg *decl, const char *prefix)
488 pos = print_arg_help(decl, prefix, 0);
495 static void print_str_help(struct isl_arg *decl, const char *prefix, void *opt)
500 pos = print_arg_help(decl, prefix, 0);
508 static void print_str_list_help(struct isl_arg *decl, const char *prefix)
512 pos = print_arg_help(decl, prefix, 0);
518 static void print_help(struct isl_arg *arg, const char *prefix, void *opt)
528 print_flags_help(&arg[i], prefix, opt);
532 print_choice_help(&arg[i], prefix, opt);
536 print_bool_help(&arg[i], prefix, opt);
540 print_int_help(&arg[i], prefix, opt);
544 print_long_help(&arg[i], prefix, opt);
548 print_ulong_help(&arg[i], prefix);
552 print_str_help(&arg[i], prefix, opt);
556 print_str_list_help(&arg[i], prefix);
675 const char *prefix, int need_argument, int *has_argument)
703 if (prefix) {
704 size_t prefix_len = strlen(prefix);
705 if (strncmp(name, prefix, prefix_len) == 0 &&
717 const char *prefix, void *opt)
723 choice = skip_name(decl, arg[0], prefix, 0, &has_argument);
775 const char *prefix, void *opt)
782 flags = skip_name(decl, arg[0], prefix, 0, &has_argument);
808 const char *prefix, void *opt)
813 if (skip_name(decl, arg[0], prefix, 0, NULL)) {
840 if (prefix) {
841 size_t prefix_len = strlen(prefix);
842 if (strncmp(name, prefix, prefix_len) == 0 &&
845 prefix = NULL;
853 if (prefix) {
854 size_t prefix_len = strlen(prefix);
855 if (strncmp(name, prefix, prefix_len) == 0 &&
873 const char *prefix, void *opt)
879 s = skip_name(decl, arg[0], prefix, 0, &has_argument);
914 const char *prefix, void *opt)
919 s = skip_name(decl, arg[0], prefix, 0, &has_argument);
937 const char *prefix, void *opt)
944 val = skip_name(decl, arg[0], prefix, 0, &has_argument);
965 const char *prefix, void *opt)
972 val = skip_name(decl, arg[0], prefix, 0, &has_argument);
1005 const char *prefix, void *opt)
1012 val = skip_name(decl, arg[0], prefix, 0, &has_argument);
1033 const char *prefix, void *opt);
1036 const char *prefix, void *opt)
1044 prefix = decl->long_name;
1046 return parse_option(decl->u.child.child->args, arg, prefix, child);
1050 const char *prefix, void *opt)
1058 parsed = parse_choice_option(&decl[i], arg, prefix, opt);
1061 parsed = parse_flags_option(&decl[i], arg, prefix, opt);
1064 parsed = parse_int_option(&decl[i], arg, prefix, opt);
1067 parsed = parse_long_option(&decl[i], arg, prefix, opt);
1070 parsed = parse_ulong_option(&decl[i], arg, prefix, opt);
1073 parsed = parse_bool_option(&decl[i], arg, prefix, opt);
1076 parsed = parse_str_option(&decl[i], arg, prefix, opt);
1079 parsed = parse_str_list_option(&decl[i], arg, prefix,
1083 parsed = parse_child_option(&decl[i], arg, prefix, opt);