/external/bc/src/ |
D | opt.c | 56 static inline bool bc_opt_longoptsEnd(const BcOptLong *longopts, size_t i) { in bc_opt_longoptsEnd() argument 57 return !longopts[i].name && !longopts[i].val; in bc_opt_longoptsEnd() 66 static const char* bc_opt_longopt(const BcOptLong *longopts, int c) { in bc_opt_longopt() argument 70 for (i = 0; !bc_opt_longoptsEnd(longopts, i); ++i) { in bc_opt_longopt() 71 if (longopts[i].val == c) return longopts[i].name; in bc_opt_longopt() 112 static int bc_opt_type(const BcOptLong *longopts, char c) { in bc_opt_type() argument 118 for (i = 0; !bc_opt_longoptsEnd(longopts, i) && longopts[i].val != c; ++i); in bc_opt_type() 120 if (bc_opt_longoptsEnd(longopts, i)) return -1; in bc_opt_type() 122 return (int) longopts[i].type; in bc_opt_type() 131 static int bc_opt_parseShort(BcOpt *o, const BcOptLong *longopts) { in bc_opt_parseShort() argument [all …]
|
/external/musl/src/misc/ |
D | getopt_long.c | 22 …nt argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int lo… 24 …nt argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int lo… in __getopt_long() argument 43 ret = __getopt_long_core(argc, argv, optstring, longopts, idx, longonly); in __getopt_long() 53 …nt argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int lo… in __getopt_long_core() argument 56 if (longopts && argv[optind][0] == '-' && in __getopt_long_core() 63 for (cnt=i=0; longopts[i].name; i++) { in __getopt_long_core() 64 const char *name = longopts[i].name; in __getopt_long_core() 94 if (!longopts[i].has_arg) { in __getopt_long_core() 95 optopt = longopts[i].val; in __getopt_long_core() 100 longopts[i].name, in __getopt_long_core() [all …]
|
/external/python/cpython2/Lib/ |
D | getopt.py | 51 def getopt(args, shortopts, longopts = []): argument 79 if type(longopts) == type(""): 80 longopts = [longopts] 82 longopts = list(longopts) 88 opts, args = do_longs(opts, args[0][2:], longopts, args[1:]) 94 def gnu_getopt(args, shortopts, longopts = []): argument 111 if isinstance(longopts, str): 112 longopts = [longopts] 114 longopts = list(longopts) 131 opts, args = do_longs(opts, args[0][2:], longopts, args[1:]) [all …]
|
/external/python/cpython3/Lib/ |
D | getopt.py | 56 def getopt(args, shortopts, longopts = []): argument 84 if type(longopts) == type(""): 85 longopts = [longopts] 87 longopts = list(longopts) 93 opts, args = do_longs(opts, args[0][2:], longopts, args[1:]) 99 def gnu_getopt(args, shortopts, longopts = []): argument 116 if isinstance(longopts, str): 117 longopts = [longopts] 119 longopts = list(longopts) 136 opts, args = do_longs(opts, args[0][2:], longopts, args[1:]) [all …]
|
/external/tinyalsa_new/utils/ |
D | optparse.h | 102 const struct optparse_long *longopts, 278 optparse_longopts_end(const struct optparse_long *longopts, int i) in optparse_longopts_end() argument 280 return !longopts[i].longname && !longopts[i].shortname; in optparse_longopts_end() 284 optparse_from_long(const struct optparse_long *longopts, char *optstring) in optparse_from_long() argument 288 for (i = 0; !optparse_longopts_end(longopts, i); i++) { in optparse_from_long() 289 if (longopts[i].shortname) { in optparse_from_long() 291 *p++ = longopts[i].shortname; in optparse_from_long() 292 for (a = 0; a < (int)longopts[i].argtype; a++) in optparse_from_long() 325 const struct optparse_long *longopts, in optparse_long_fallback() argument 330 optparse_from_long(longopts, optstring); in optparse_long_fallback() [all …]
|
/external/arm-trusted-firmware/tools/fiptool/ |
D | win_posix.c | 158 const struct option *const longopts, in getopt_1long() argument 176 while (longopts[loptn].name != NULL) { in getopt_1long() 177 if (strcmp(optname, longopts[loptn].name) == 0) { in getopt_1long() 187 while (longopts[loptn].name != NULL) { in getopt_1long() 188 if (optmatch(optname, longopts[loptn].name) == 0) { in getopt_1long() 198 result = longopts[loptn].val; in getopt_1long() 202 switch (longopts[loptn].has_arg) { in getopt_1long() 220 if (longopts[loptn].flag != 0) { in getopt_1long() 221 *longopts[loptn].flag = result; in getopt_1long() 246 const struct option *longopts, in getopt_long() argument [all …]
|
D | win_posix.h | 173 const struct option *longopts, 185 const struct option *longopts,
|
/external/marisa-trie/tools/ |
D | cmdopt.cc | 125 if (h->longopts == NULL) { in cmdopt_match() 129 for (i = 0; h->longopts[i].name != NULL; i++) { in cmdopt_match() 130 len = cmdopt_match_len(h->longopts[i].name, h->nextchar); in cmdopt_match() 183 option = h->longopts + h->longindex; in cmdopt_search_long() 243 const char *optstring, const cmdopt_option *longopts) { in cmdopt_init() argument 250 h->longopts = longopts; in cmdopt_init() 274 h->longopts[h->longindex].name); in cmdopt_get() 289 h->longopts[h->longindex].name, h->optarg); in cmdopt_get()
|
D | cmdopt.h | 34 const cmdopt_option *longopts; member 49 const char *optstring, const cmdopt_option *longopts);
|
/external/toybox/lib/ |
D | args.c | 116 struct longopts { struct 117 struct longopts *next; argument 129 struct longopts *longopts; member 191 struct longopts *lo; in gotflag() 195 for (lo = gof->longopts; lo->opt != opt; lo = lo->next); in gotflag() 277 struct longopts *lo; in parse_optflaglist() 284 lo = xmalloc(sizeof(struct longopts)); in parse_optflaglist() 285 lo->next = gof->longopts; in parse_optflaglist() 289 gof->longopts = lo; in parse_optflaglist() 421 struct longopts *lo; in get_optflags() [all …]
|
/external/flac/include/share/ |
D | getopt.h | 156 const struct share__option *longopts, int *longind); 159 const struct share__option *longopts, int *longind); 164 const struct share__option *longopts, int *longind,
|
/external/e2fsprogs/include/nonunix/ |
D | getopt.h | 113 const struct option *longopts, int *longind); 116 const struct option *longopts, int *longind); 121 const struct option *longopts, int *longind,
|
/external/libkmsxx/kms++util/src/ |
D | opts.cpp | 55 vector<struct option> longopts; in parse() local 74 longopts.push_back(copt); in parse() 78 longopts.push_back(option{}); in parse() 83 longopts.data(), &long_idx); in parse()
|
/external/perfetto/src/base/ |
D | getopt_compat.cc | 59 const option* longopts, in ParseOpts() argument 62 for (const option* lopt = longopts; lopt && lopt->name; lopt++) { in ParseOpts() 99 const option* longopts, in getopt_long() argument 110 if (!ParseOpts(shortopts, longopts, &opts)) in getopt_long()
|
/external/python/cpython3/Python/ |
D | getopt.c | 46 static const _PyOS_LongOption longopts[] = { variable 111 for (opt = &longopts[*longindex]; opt->name; opt = &longopts[++(*longindex)]) { in _PyOS_GetOpt()
|
/external/python/cpython3/Lib/test/ |
D | test_getopt.py | 178 longopts, shortopts = getopt.getopt(['--help='], '', ['help=']) 179 self.assertEqual(longopts, [('--help', '')]) 180 longopts, shortopts = getopt.getopt(['--help=x'], '', ['help=']) 181 self.assertEqual(longopts, [('--help', 'x')])
|
/external/python/cpython2/Lib/test/ |
D | test_getopt.py | 177 longopts, shortopts = getopt.getopt(['--help='], '', ['help=']) 178 self.assertEqual(longopts, [('--help', '')]) 179 longopts, shortopts = getopt.getopt(['--help=x'], '', ['help=']) 180 self.assertEqual(longopts, [('--help', 'x')])
|
/external/flac/src/share/getopt/ |
D | getopt.c | 524 share___getopt_internal (argc, argv, optstring, longopts, longind, long_only) in share___getopt_internal() argument 528 const struct share__option *longopts; 628 + (longopts != NULL && argv[share__optind][1] == '-')); 646 if (longopts != NULL 663 for (p = longopts, option_index = 0; p->name; p++, option_index++) 851 for (p = longopts, option_index = 0; p->name; p++, option_index++)
|
/external/libusb/msvc/getopt/ |
D | getopt.c | 511 _getopt_internal (argc, argv, optstring, longopts, longind, long_only) in _getopt_internal() argument 515 const struct option *longopts; 622 + (longopts != NULL && argv[optind][1] == '-')); 640 if (longopts != NULL 657 for (p = longopts, option_index = 0; p->name; p++, option_index++) 849 for (p = longopts, option_index = 0; p != NULL && p->name; p++, option_index++)
|
/external/fsverity-utils/programs/ |
D | cmd_enable.c | 51 static const struct option longopts[] = { variable 70 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_enable()
|
D | cmd_digest.c | 17 static const struct option longopts[] = { variable 40 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_digest()
|
D | cmd_dump_metadata.c | 19 static const struct option longopts[] = { variable 74 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_dump_metadata()
|
D | cmd_sign.c | 29 static const struct option longopts[] = { variable 57 while ((c = getopt_long(argc, argv, "", longopts, NULL)) != -1) { in fsverity_cmd_sign()
|
/external/igt-gpu-tools/assembler/ |
D | disasm-main.c | 33 static const struct option longopts[] = { variable 118 while ((o = getopt_long(argc, argv, "o:bg:", longopts, NULL)) != -1) { in main()
|
/external/harfbuzz_ng/util/ |
D | hb-fc-list.c | 55 const struct option longopts[] = { variable 115 while ((c = getopt_long (argc, argv, "vf:qVh", longopts, NULL)) != -1) in main()
|