/external/libcxx/test/std/experimental/optional/optional.object/optional.object.assign/ |
D | emplace.pass.cpp | 63 optional<int> opt; in main() local 64 opt.emplace(); in main() 65 assert(static_cast<bool>(opt) == true); in main() 66 assert(*opt == 0); in main() 69 optional<int> opt; in main() local 70 opt.emplace(1); in main() 71 assert(static_cast<bool>(opt) == true); in main() 72 assert(*opt == 1); in main() 75 optional<int> opt(2); in main() local 76 opt.emplace(); in main() [all …]
|
D | assign_value.pass.cpp | 40 optional<int> opt; in main() local 41 opt = 1; in main() 42 assert(static_cast<bool>(opt) == true); in main() 43 assert(*opt == 1); in main() 46 optional<int> opt; in main() local 48 opt = i; in main() 49 assert(static_cast<bool>(opt) == true); in main() 50 assert(*opt == i); in main() 53 optional<int> opt(3); in main() local 55 opt = i; in main() [all …]
|
D | copy.pass.cpp | 42 optional<int> opt; in main() local 44 opt = opt2; in main() 46 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main() 49 optional<int> opt; in main() local 51 opt = opt2; in main() 54 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main() 55 assert(*opt == *opt2); in main() 58 optional<int> opt(3); in main() local 60 opt = opt2; in main() 62 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main() [all …]
|
/external/toybox/tests/ |
D | dd.test | 9 opt="2>/dev/null" 13 testing "dd if=(file)" "dd if=input $opt" "I WANT\n" "I WANT\n" "" 14 testing "dd of=(file)" "dd of=file $opt && cat file" "I WANT\n" "" "I WANT\n" 15 testing "dd if=file of=file" "dd if=input of=foo $opt && cat foo && rm -f foo" \ 17 testing "dd if=file | dd of=file" "dd if=input $opt | dd of=foo $opt && 19 testing "dd (stdout)" "dd $opt" "I WANT\n" "" "I WANT\n" 21 "dd if=input of=outFile seek=8860 bs=1M conv=sync,noerror $opt && 24 "dd if=input of=/dev/null $opt && echo 'yes'" "yes\n" "I WANT\n" "" 26 "dd if=/dev/zero of=sda.txt bs=512 count=1 $opt && 29 "dd if=/dev/zero of=sda.txt ibs=512 obs=256 count=1 $opt && [all …]
|
/external/linux-tools-perf/src/tools/perf/util/ |
D | parse-options.c | 9 static int opterror(const struct option *opt, const char *reason, int flags) in opterror() argument 12 return error("switch `%c' %s", opt->short_name, reason); in opterror() 14 return error("option `no-%s' %s", opt->long_name, reason); in opterror() 15 return error("option `%s' %s", opt->long_name, reason); in opterror() 18 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, in get_arg() argument 21 if (p->opt) { in get_arg() 22 *arg = p->opt; in get_arg() 23 p->opt = NULL; in get_arg() 24 } else if ((opt->flags & PARSE_OPT_LASTARG_DEFAULT) && (p->argc == 1 || in get_arg() 26 *arg = (const char *)opt->defval; in get_arg() [all …]
|
/external/ppp/pppd/ |
D | options.c | 376 option_t *opt; local 385 opt = find_option(arg); 386 if (opt == NULL) { 391 n = n_arguments(opt); 396 if (!process_option(opt, arg, argv)) 417 option_t *opt; local 453 opt = find_option(cmd); 454 if (opt == NULL) { 459 n = n_arguments(opt); 469 if (!process_option(opt, cmd, argv)) [all …]
|
/external/clang/lib/Driver/ |
D | ToolChains.h | 104 const llvm::opt::ArgList &Args); 144 const llvm::opt::ArgList &Args, 154 const llvm::opt::ArgList &Args); 198 const llvm::opt::ArgList &Args); 206 StringRef getMachOArchName(const llvm::opt::ArgList &Args) const; 210 virtual void AddLinkARCArgs(const llvm::opt::ArgList &Args, in AddLinkARCArgs() 211 llvm::opt::ArgStringList &CmdArgs) const {} in AddLinkARCArgs() 214 virtual void AddLinkRuntimeLibArgs(const llvm::opt::ArgList &Args, 215 llvm::opt::ArgStringList &CmdArgs) const; 218 addStartObjectFileArgs(const llvm::opt::ArgList &Args, in addStartObjectFileArgs() [all …]
|
D | Tools.h | 37 using llvm::opt::ArgStringList; 42 static const char *getBaseInputName(const llvm::opt::ArgList &Args, 44 static const char *getBaseInputStem(const llvm::opt::ArgList &Args, 46 static const char *getDependencyFileName(const llvm::opt::ArgList &Args, 52 const llvm::opt::ArgList &Args, 53 llvm::opt::ArgStringList &CmdArgs, 57 void AddAArch64TargetArgs(const llvm::opt::ArgList &Args, 58 llvm::opt::ArgStringList &CmdArgs) const; 59 void AddARMTargetArgs(const llvm::opt::ArgList &Args, 60 llvm::opt::ArgStringList &CmdArgs, [all …]
|
/external/iproute2/tc/ |
D | q_sfq.c | 41 struct tc_sfq_qopt_v1 opt; in sfq_parse_opt() local 47 memset(&opt, 0, sizeof(opt)); in sfq_parse_opt() 52 if (get_size(&opt.v0.quantum, *argv)) { in sfq_parse_opt() 59 if (get_integer(&opt.v0.perturb_period, *argv, 0)) { in sfq_parse_opt() 66 if (get_u32(&opt.v0.limit, *argv, 0)) { in sfq_parse_opt() 70 if (opt.v0.limit < 2) { in sfq_parse_opt() 77 if (get_u32(&opt.v0.divisor, *argv, 0)) { in sfq_parse_opt() 84 if (get_u32(&opt.v0.flows, *argv, 0)) { in sfq_parse_opt() 91 if (get_u32(&opt.depth, *argv, 0)) { in sfq_parse_opt() 97 opt.headdrop = 1; in sfq_parse_opt() [all …]
|
D | q_sfb.c | 54 struct tc_sfb_qopt opt; in sfb_parse_opt() local 57 memset(&opt, 0, sizeof(opt)); in sfb_parse_opt() 58 opt.rehash_interval = 600*1000; in sfb_parse_opt() 59 opt.warmup_time = 60*1000; in sfb_parse_opt() 60 opt.penalty_rate = 10; in sfb_parse_opt() 61 opt.penalty_burst = 20; in sfb_parse_opt() 62 opt.increment = (SFB_MAX_PROB + 1000) / 2000; in sfb_parse_opt() 63 opt.decrement = (SFB_MAX_PROB + 10000) / 20000; in sfb_parse_opt() 68 if (get_u32(&opt.rehash_interval, *argv, 0)) { in sfb_parse_opt() 74 if (get_u32(&opt.warmup_time, *argv, 0)) { in sfb_parse_opt() [all …]
|
D | q_choke.c | 37 struct tc_red_qopt opt; in choke_parse_opt() local 48 memset(&opt, 0, sizeof(opt)); in choke_parse_opt() 53 if (get_unsigned(&opt.limit, *argv, 0)) { in choke_parse_opt() 67 if (get_unsigned(&opt.qth_min, *argv, 0)) { in choke_parse_opt() 73 if (get_unsigned(&opt.qth_max, *argv, 0)) { in choke_parse_opt() 106 if (!rate || !opt.limit) { in choke_parse_opt() 115 if (!opt.qth_max) in choke_parse_opt() 116 opt.qth_max = opt.limit / 4; in choke_parse_opt() 117 if (!opt.qth_min) in choke_parse_opt() 118 opt.qth_min = opt.qth_max / 3; in choke_parse_opt() [all …]
|
D | q_red.c | 38 struct tc_red_qopt opt; in red_parse_opt() local 48 memset(&opt, 0, sizeof(opt)); in red_parse_opt() 53 if (get_size(&opt.limit, *argv)) { in red_parse_opt() 59 if (get_size(&opt.qth_min, *argv)) { in red_parse_opt() 65 if (get_size(&opt.qth_max, *argv)) { in red_parse_opt() 94 opt.flags |= TC_RED_ECN; in red_parse_opt() 96 opt.flags |= TC_RED_HARDDROP; in red_parse_opt() 98 opt.flags |= TC_RED_ADAPTATIVE; in red_parse_opt() 100 opt.flags |= TC_RED_ADAPTATIVE; in red_parse_opt() 115 if (!opt.limit || !avpkt) { in red_parse_opt() [all …]
|
D | q_gred.c | 55 struct tc_gred_sopt opt = { 0 }; in init_gred() local 83 opt.DPs); in init_gred() 87 opt.grio = 1; in init_gred() 104 opt.DPs = dps; in init_gred() 105 opt.def_DP = def_dp; in init_gred() 107 DPRINTF("TC_GRED: sending DPs=%d default=%d\n",opt.DPs,opt.def_DP); in init_gred() 111 addattr_l(n, 1024, TCA_GRED_DPS, &opt, sizeof(struct tc_gred_sopt)); in init_gred() 121 struct tc_gred_qopt opt; in gred_parse_opt() local 131 memset(&opt, 0, sizeof(opt)); in gred_parse_opt() 136 if (get_size(&opt.limit, *argv)) { in gred_parse_opt() [all …]
|
D | q_htb.c | 63 struct tc_htb_glob opt; in htb_parse_opt() local 66 memset(&opt,0,sizeof(opt)); in htb_parse_opt() 67 opt.rate2quantum = 10; in htb_parse_opt() 68 opt.version = 3; in htb_parse_opt() 73 if (get_u32(&opt.rate2quantum, *argv, 10)) { in htb_parse_opt() 78 if (get_u32(&opt.defcls, *argv, 16)) { in htb_parse_opt() 85 opt.debug |= (*p-'0')<<(2*i); in htb_parse_opt() 96 addattr_l(n, 2024, TCA_HTB_INIT, &opt, NLMSG_ALIGN(sizeof(opt))); in htb_parse_opt() 104 struct tc_htb_opt opt; in htb_parse_class_opt() local 114 memset(&opt, 0, sizeof(opt)); mtu = 1600; /* eth packet len */ in htb_parse_class_opt() [all …]
|
D | q_tbf.c | 42 struct tc_tbf_qopt opt; in tbf_parse_opt() local 51 memset(&opt, 0, sizeof(opt)); in tbf_parse_opt() 56 if (opt.limit || latency) { in tbf_parse_opt() 60 if (get_size(&opt.limit, *argv)) { in tbf_parse_opt() 67 if (opt.limit || latency) { in tbf_parse_opt() 114 if (opt.rate.rate) { in tbf_parse_opt() 118 if (get_rate(&opt.rate.rate, *argv)) { in tbf_parse_opt() 125 if (opt.peakrate.rate) { in tbf_parse_opt() 129 if (get_rate(&opt.peakrate.rate, *argv)) { in tbf_parse_opt() 164 if (opt.rate.rate == 0 || !buffer) { in tbf_parse_opt() [all …]
|
/external/llvm/tools/llvm-objdump/ |
D | llvm-objdump.h | 24 extern cl::opt<std::string> TripleName; 25 extern cl::opt<std::string> ArchName; 26 extern cl::opt<std::string> MCPU; 29 extern cl::opt<bool> Raw; 30 extern cl::opt<bool> Disassemble; 31 extern cl::opt<bool> NoShowRawInsn; 32 extern cl::opt<bool> PrivateHeaders; 33 extern cl::opt<bool> ExportsTrie; 34 extern cl::opt<bool> Rebase; 35 extern cl::opt<bool> Bind; [all …]
|
/external/libxml2/win32/ |
D | configure.js | 85 function boolToStr(opt) argument 87 if (opt == false) 89 else if (opt == true) 97 function strToBool(opt) argument 99 if (opt == 0 || opt == "no") 101 else if (opt == 1 || opt == "yes") 447 var arg, opt; variable 449 opt = arg.substring(0, arg.indexOf("=")); 450 if (opt.length == 0) 451 opt = arg.substring(0, arg.indexOf(":")); [all …]
|
/external/elfutils/src/libdwfl/ |
D | argp-std.c | 127 struct parse_opt *opt = calloc (1, sizeof (*opt)); in parse_opt() local 128 if (opt == NULL) in parse_opt() 130 state->hook = opt; in parse_opt() 140 struct parse_opt *opt = state->hook; in parse_opt() local 141 Dwfl *dwfl = opt->dwfl; in parse_opt() 147 opt->dwfl = dwfl; in parse_opt() 160 opt->e = arg; in parse_opt() 166 struct parse_opt *opt = state->hook; in parse_opt() local 167 if (opt->dwfl == NULL) in parse_opt() 177 opt->dwfl = dwfl; in parse_opt() [all …]
|
/external/pcre/dist/ |
D | RunTest | 152 for opt in "" "-s" "-dfa" "-s -dfa"; do 153 ./pcretest -q $opt $testdata/testinputEBC >testtry 159 if [ "$opt" = "-s" ] ; then echo " OK with study" 160 elif [ "$opt" = "-dfa" ] ; then echo " OK using DFA" 161 elif [ "$opt" = "-s -dfa" ] ; then echo " OK using DFA with study" 425 for opt in "" "-s" $jitopt; do 426 $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput1 testtry 432 if [ "$opt" = "-s" ] ; then echo " OK with study" 433 elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study" 443 for opt in "" "-s" $jitopt; do [all …]
|
/external/tcpdump/ |
D | print-mptcp.c | 52 static int dummy_print(const u_char *opt _U_, u_int opt_len _U_, u_char flags _U_) in dummy_print() 57 static int mp_capable_print(const u_char *opt, u_int opt_len, u_char flags) in mp_capable_print() argument 59 struct mp_capable *mpc = (struct mp_capable *) opt; in mp_capable_print() 79 static int mp_join_print(const u_char *opt, u_int opt_len, u_char flags) in mp_join_print() argument 81 struct mp_join *mpj = (struct mp_join *) opt; in mp_join_print() 145 static int mp_dss_print(const u_char *opt, u_int opt_len, u_char flags) in mp_dss_print() argument 147 struct mp_dss *mdss = (struct mp_dss *) opt; in mp_dss_print() 156 opt += 4; in mp_dss_print() 160 printf("%" PRIu64, EXTRACT_64BITS(opt)); in mp_dss_print() 161 opt += 8; in mp_dss_print() [all …]
|
/external/toybox/lib/ |
D | args.c | 113 struct opts *opt; member 130 static int gotflag(struct getoptflagstate *gof, struct opts *opt) in gotflag() argument 135 if (!opt) { in gotflag() 141 if (toys.optflags & opt->dex[0]) { in gotflag() 147 if (clr->arg && (i & toys.optflags & opt->dex[0])) *clr->arg = 0; in gotflag() 148 toys.optflags &= ~opt->dex[0]; in gotflag() 152 toys.optflags |= opt->dex[1]; in gotflag() 153 gof->excludes |= opt->dex[2]; in gotflag() 154 if (opt->flags&2) gof->stopearly=2; in gotflag() 161 if (opt == bad || !(i & toys.optflags)) continue; in gotflag() [all …]
|
/external/libpng/scripts/ |
D | options.awk | 261 opt = $2 262 sub(/,$/,"",opt) 263 onoff = option[opt] # records current (and the default is "", enabled) 272 print "option", opt ": ERROR: missing contination line" 274 print "option", opt ": ERROR: error reading continuation line" 294 print "option", opt ": ERROR: turning unrecognized option", val 303 print "option", opt ": currently", onoff ": attempt to turn", val 310 requires[opt] = requires[opt] " " val 312 iffs[opt] = iffs[opt] " " val 314 enabledby[val] = enabledby[val] " " opt [all …]
|
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor/ |
D | in_place_t.pass.cpp | 67 constexpr optional<int> opt(in_place, 5); in main() local 68 static_assert(static_cast<bool>(opt) == true, ""); in main() 69 static_assert(*opt == 5, ""); in main() 80 const optional<X> opt(in_place); in main() local 81 assert(static_cast<bool>(opt) == true); in main() 82 assert(*opt == X()); in main() 85 const optional<X> opt(in_place, 5); in main() local 86 assert(static_cast<bool>(opt) == true); in main() 87 assert(*opt == X(5)); in main() 90 const optional<X> opt(in_place, 5, 4); in main() local [all …]
|
/external/clang/include/clang/Driver/ |
D | ToolChain.h | 24 namespace opt { 66 const llvm::opt::ArgList &Args; 68 const llvm::opt::Arg *const CachedRTTIArg; 93 const llvm::opt::ArgList &Args); 101 static void addSystemInclude(const llvm::opt::ArgList &DriverArgs, 102 llvm::opt::ArgStringList &CC1Args, 104 static void addExternCSystemInclude(const llvm::opt::ArgList &DriverArgs, 105 llvm::opt::ArgStringList &CC1Args, 108 addExternCSystemIncludeIfExists(const llvm::opt::ArgList &DriverArgs, 109 llvm::opt::ArgStringList &CC1Args, [all …]
|
/external/jdiff/src/jdiff/ |
D | Options.java | 36 String opt = option.toLowerCase(); in optionLength() local 39 if (opt.equals("-authorid")) return 2; in optionLength() 40 if (opt.equals("-versionid")) return 2; in optionLength() 41 if (opt.equals("-d")) return 2; in optionLength() 42 if (opt.equals("-classlist")) return 1; in optionLength() 43 if (opt.equals("-title")) return 2; in optionLength() 44 if (opt.equals("-docletid")) return 1; in optionLength() 45 if (opt.equals("-evident")) return 2; in optionLength() 46 if (opt.equals("-skippkg")) return 2; in optionLength() 47 if (opt.equals("-skipclass")) return 2; in optionLength() [all …]
|