| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | spellcheck.cc | 163 const auto_vec<const char *> *candidates) in find_closest_string() argument 166 gcc_assert (candidates); in find_closest_string() 171 FOR_EACH_VEC_ELT (*candidates, i, candidate) in find_closest_string() 322 auto_vec<const char *> candidates; in assert_suggested_for() local 323 candidates.safe_push (candidate); in assert_suggested_for() 324 ASSERT_EQ_AT (loc, candidate, find_closest_string (target, &candidates)); in assert_suggested_for() 340 auto_vec<const char *> candidates; in assert_not_suggested_for() local 341 candidates.safe_push (candidate); in assert_not_suggested_for() 342 ASSERT_EQ_AT (loc, NULL, find_closest_string (target, &candidates)); in assert_not_suggested_for() 409 auto_vec<const char *> candidates; in test_find_closest_string() local [all …]
|
| H A D | spellcheck-tree.cc | 53 find_closest_identifier (tree target, const auto_vec<tree> *candidates) in find_closest_identifier() argument 60 FOR_EACH_VEC_ELT (*candidates, i, identifier) in find_closest_identifier() 80 auto_vec<tree> candidates; in test_find_closest_identifier() local 83 ASSERT_EQ (NULL, find_closest_identifier (get_identifier (""), &candidates)); in test_find_closest_identifier() 89 candidates.safe_push (apple); in test_find_closest_identifier() 90 candidates.safe_push (banana); in test_find_closest_identifier() 91 candidates.safe_push (cherry); in test_find_closest_identifier() 94 &candidates)); in test_find_closest_identifier() 96 &candidates)); in test_find_closest_identifier() 98 &candidates)); in test_find_closest_identifier() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | spellcheck.c | 148 const auto_vec<const char *> *candidates) in find_closest_string() argument 151 gcc_assert (candidates); in find_closest_string() 156 FOR_EACH_VEC_ELT (*candidates, i, candidate) in find_closest_string() 304 auto_vec<const char *> candidates; in assert_suggested_for() local 305 candidates.safe_push (candidate); in assert_suggested_for() 306 ASSERT_EQ_AT (loc, candidate, find_closest_string (target, &candidates)); in assert_suggested_for() 322 auto_vec<const char *> candidates; in assert_not_suggested_for() local 323 candidates.safe_push (candidate); in assert_not_suggested_for() 324 ASSERT_EQ_AT (loc, NULL, find_closest_string (target, &candidates)); in assert_not_suggested_for() 391 auto_vec<const char *> candidates; in test_find_closest_string() local [all …]
|
| H A D | spellcheck-tree.c | 53 find_closest_identifier (tree target, const auto_vec<tree> *candidates) in find_closest_identifier() argument 60 FOR_EACH_VEC_ELT (*candidates, i, identifier) in find_closest_identifier() 80 auto_vec<tree> candidates; in test_find_closest_identifier() local 83 ASSERT_EQ (NULL, find_closest_identifier (get_identifier (""), &candidates)); in test_find_closest_identifier() 89 candidates.safe_push (apple); in test_find_closest_identifier() 90 candidates.safe_push (banana); in test_find_closest_identifier() 91 candidates.safe_push (cherry); in test_find_closest_identifier() 94 &candidates)); in test_find_closest_identifier() 96 &candidates)); in test_find_closest_identifier() 98 &candidates)); in test_find_closest_identifier() [all …]
|
| /netbsd-src/external/bsd/atf/dist/tools/ |
| H A D | expand_test.cpp | 164 std::vector< std::string > candidates; in ATF_TEST_CASE_BODY() local 165 candidates.push_back("foo"); in ATF_TEST_CASE_BODY() 166 candidates.push_back("bar"); in ATF_TEST_CASE_BODY() 167 candidates.push_back("baz"); in ATF_TEST_CASE_BODY() 168 candidates.push_back("foobar"); in ATF_TEST_CASE_BODY() 169 candidates.push_back("foobarbaz"); in ATF_TEST_CASE_BODY() 170 candidates.push_back("foobarbazfoo"); in ATF_TEST_CASE_BODY() 174 exps = expand_glob("foo", candidates); in ATF_TEST_CASE_BODY() 178 exps = expand_glob("bar", candidates); in ATF_TEST_CASE_BODY() 182 exps = expand_glob("foo*", candidates); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | expand.hpp | 67 const T& candidates) in expand_glob() argument 71 for (typename T::const_iterator iter = candidates.begin(); in expand_glob() 72 iter != candidates.end(); iter++) in expand_glob()
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-meta/ |
| H A D | search.c | 79 SlapReply *candidates ) in meta_search_dobind_init() argument 135 candidates[ candidate ].sr_msgid = META_MSGID_NEED_BIND; in meta_search_dobind_init() 258 NULL, NULL, &candidates[ candidate ].sr_msgid ); in meta_search_dobind_init() 269 assert( candidates[ candidate ].sr_msgid >= 0 ); in meta_search_dobind_init() 270 META_BINDING_SET( &candidates[ candidate ] ); in meta_search_dobind_init() 275 candidates[ candidate ].sr_msgid = META_MSGID_CONNECTING; in meta_search_dobind_init() 285 if ( !META_IS_RETRYING( &candidates[ candidate ] ) ) { in meta_search_dobind_init() 286 META_RETRYING_SET( &candidates[ candidate ] ); in meta_search_dobind_init() 318 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in meta_search_dobind_init() 328 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in meta_search_dobind_init() [all …]
|
| H A D | conn.c | 804 SlapReply *candidates = meta_back_candidates_get( op ); in meta_back_retry() local 806 candidates[ candidate ].sr_err = rc; in meta_back_retry() 1098 SlapReply *candidates = meta_back_candidates_get( op ); in meta_back_getconn() local 1315 candidates[ i ].sr_err = meta_back_init_one_conn( op, in meta_back_getconn() 1318 if ( candidates[ i ].sr_err == LDAP_SUCCESS ) { in meta_back_getconn() 1322 META_CANDIDATE_SET( &candidates[ i ] ); in meta_back_getconn() 1332 META_CANDIDATE_RESET( &candidates[ i ] ); in meta_back_getconn() 1333 err = candidates[ i ].sr_err; in meta_back_getconn() 1378 META_CANDIDATE_RESET( &candidates[ j ] ); in meta_back_getconn() 1500 META_CANDIDATE_RESET( &candidates[ i ] ); in meta_back_getconn() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-asyncmeta/ |
| H A D | meta_result.c | 57 SlapReply *candidates = bc->candidates; in asyncmeta_is_last_result() local 59 if ( !META_IS_CANDIDATE( &candidates[ i ] ) ) { in asyncmeta_is_last_result() 62 if (candidates[ i ].sr_msgid != META_MSGID_IGNORE || in asyncmeta_is_last_result() 63 candidates[ i ].sr_type != REP_RESULT) { in asyncmeta_is_last_result() 500 SlapReply *candidates = bc->candidates; in asyncmeta_search_last_result() local 508 if ( META_IS_CANDIDATE( &candidates[ i ] ) in asyncmeta_search_last_result() 509 && candidates[ i ].sr_matched != NULL ) in asyncmeta_search_last_result() 519 && candidates[ i ].sr_err == LDAP_NO_SUCH_OBJECT in asyncmeta_search_last_result() 522 free( (char *)candidates[ i ].sr_matched ); in asyncmeta_search_last_result() 523 candidates[ i ].sr_matched = NULL; in asyncmeta_search_last_result() [all …]
|
| H A D | search.c | 59 if (j != candidate && bc->candidates[j].sr_msgid >= 0 in asyncmeta_handle_onerr_stop() 62 bc->candidates[ j ].sr_msgid, j ); in asyncmeta_handle_onerr_stop() 327 SlapReply *candidates = bc->candidates; in asyncmeta_back_search_start() local 354 candidates[ candidate ].sr_err = LDAP_OTHER; in asyncmeta_back_search_start() 358 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_search_start() 545 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_search_start() 603 candidates[ candidate ].sr_msgid = msgid; in asyncmeta_back_search_start() 630 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_search_start() 645 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_search_start() 672 …yncmeta_back_search_start[%p] (fd %d)=%d\n", op->o_log_prefix, msc, s, candidates[candidate].sr_ms… in asyncmeta_back_search_start() [all …]
|
| H A D | delete.c | 56 SlapReply *candidates = bc->candidates; in asyncmeta_back_delete_start() local 70 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_delete_start() 115 candidates[ candidate ].sr_msgid = msgid; in asyncmeta_back_delete_start() 154 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_delete_start() 172 … "%s <<< asyncmeta_back_delete_start[%p]=%d\n", op->o_log_prefix, msc, candidates[candidate].sr_ms… in asyncmeta_back_delete_start() 185 SlapReply *candidates; in asyncmeta_back_delete() local 205 candidates = bc->candidates; in asyncmeta_back_delete() 206 mc = asyncmeta_getconn( op, rs, candidates, &candidate, LDAP_BACK_DONTSEND, 0); in asyncmeta_back_delete() 296 asyncmeta_start_one_listener(mc, candidates, bc, candidate); in asyncmeta_back_delete()
|
| H A D | compare.c | 59 SlapReply *candidates = bc->candidates; in asyncmeta_back_compare_start() local 76 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_compare_start() 122 candidates[ candidate ].sr_msgid = msgid; in asyncmeta_back_compare_start() 160 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_compare_start() 181 …"%s <<< asyncmeta_back_compare_start[%p]=%d\n", op->o_log_prefix, msc, candidates[candidate].sr_ms… in asyncmeta_back_compare_start() 194 SlapReply *candidates; in asyncmeta_back_compare() local 212 candidates = bc->candidates; in asyncmeta_back_compare() 213 mc = asyncmeta_getconn( op, rs, candidates, &candidate, LDAP_BACK_DONTSEND, 0); in asyncmeta_back_compare() 303 asyncmeta_start_one_listener(mc, candidates, bc, candidate); in asyncmeta_back_compare()
|
| H A D | modrdn.c | 59 SlapReply *candidates = bc->candidates; in asyncmeta_back_modrdn_start() local 129 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_modrdn_start() 176 candidates[ candidate ].sr_msgid = msgid; in asyncmeta_back_modrdn_start() 215 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_modrdn_start() 243 … "%s <<< asyncmeta_back_modrdn_start[%p]=%d\n", op->o_log_prefix, msc, candidates[candidate].sr_ms… in asyncmeta_back_modrdn_start() 256 SlapReply *candidates; in asyncmeta_back_modrdn() local 274 candidates = bc->candidates; in asyncmeta_back_modrdn() 275 mc = asyncmeta_getconn( op, rs, candidates, &candidate, LDAP_BACK_DONTSEND, 0); in asyncmeta_back_modrdn() 366 asyncmeta_start_one_listener(mc, candidates, bc, candidate); in asyncmeta_back_modrdn()
|
| H A D | modify.c | 59 SlapReply *candidates = bc->candidates; in asyncmeta_back_modify_start() local 128 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_modify_start() 175 candidates[ candidate ].sr_msgid = msgid; in asyncmeta_back_modify_start() 214 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_modify_start() 233 … "%s <<< asyncmeta_back_modify_start[%p]=%d\n", op->o_log_prefix, msc, candidates[candidate].sr_ms… in asyncmeta_back_modify_start() 246 SlapReply *candidates; in asyncmeta_back_modify() local 265 candidates = bc->candidates; in asyncmeta_back_modify() 266 mc = asyncmeta_getconn( op, rs, candidates, &candidate, LDAP_BACK_DONTSEND, 0); in asyncmeta_back_modify() 355 asyncmeta_start_one_listener(mc, candidates, bc, candidate); in asyncmeta_back_modify()
|
| H A D | add.c | 83 SlapReply *candidates = bc->candidates; in asyncmeta_back_add_start() local 135 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_add_start() 179 candidates[ candidate ].sr_msgid = msgid; in asyncmeta_back_add_start() 218 candidates[ candidate ].sr_msgid = META_MSGID_IGNORE; in asyncmeta_back_add_start() 237 …CE, "%s <<< asyncmeta_back_add_start[%p]=%d\n", op->o_log_prefix, msc, candidates[candidate].sr_ms… in asyncmeta_back_add_start() 251 SlapReply *candidates; in asyncmeta_back_add() local 270 candidates = bc->candidates; in asyncmeta_back_add() 271 mc = asyncmeta_getconn( op, rs, candidates, &candidate, LDAP_BACK_DONTSEND, 0); in asyncmeta_back_add() 361 asyncmeta_start_one_listener(mc, candidates, bc, candidate); in asyncmeta_back_add()
|
| H A D | conn.c | 522 SlapReply *candidates, in asyncmeta_getconn() argument 638 candidates[ i ].sr_err = asyncmeta_init_one_conn( op, in asyncmeta_getconn() 641 if ( candidates[ i ].sr_err == LDAP_SUCCESS ) { in asyncmeta_getconn() 645 META_CANDIDATE_SET( &candidates[ i ] ); in asyncmeta_getconn() 655 META_CANDIDATE_RESET( &candidates[ i ] ); in asyncmeta_getconn() 656 err = candidates[ i ].sr_err; in asyncmeta_getconn() 693 META_CANDIDATE_RESET( &candidates[ j ] ); in asyncmeta_getconn() 750 ( void )asyncmeta_clear_unused_candidates( op, i , mc, candidates); in asyncmeta_getconn() 765 META_CANDIDATE_RESET( &candidates[ i ] ); in asyncmeta_getconn() 773 candidates[ i ].sr_err = LDAP_SUCCESS; in asyncmeta_getconn() [all …]
|
| H A D | message_queue.c | 76 (*new_bc)->candidates = op->o_tmpcalloc(ntargets, sizeof(SlapReply),op->o_tmpmemctx); in asyncmeta_new_bm_context() 165 if (bc->candidates[ i ].sr_text != NULL) { in asyncmeta_clear_bm_context() 166 ch_free( (char *)bc->candidates[ i ].sr_text ); in asyncmeta_clear_bm_context() 167 bc->candidates[ i ].sr_text = NULL; in asyncmeta_clear_bm_context() 224 if (om->candidates[candidate].sr_msgid == msgid && !om->bc_invalid) { in asyncmeta_find_message()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/common/config/arm/ |
| H A D | arm-common.cc | 360 auto_vec<const char*> candidates; in arm_print_hint_for_cpu_option() local 363 candidates.safe_push (list->common.name); in arm_print_hint_for_cpu_option() 369 candidates.safe_push (alias->name); in arm_print_hint_for_cpu_option() 375 candidates.safe_push ("native"); in arm_print_hint_for_cpu_option() 379 const char *hint = candidates_list_and_hint (target, s, candidates); in arm_print_hint_for_cpu_option() 433 auto_vec<const char*> candidates; in arm_print_hint_for_arch_option() local 435 candidates.safe_push (list->common.name); in arm_print_hint_for_arch_option() 439 candidates.safe_push ("native"); in arm_print_hint_for_arch_option() 443 const char *hint = candidates_list_and_hint (target, s, candidates); in arm_print_hint_for_arch_option() 486 auto_vec<const char*> candidates; in arm_print_hint_for_fpu_option() local [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/common/config/arm/ |
| H A D | arm-common.c | 313 auto_vec<const char*> candidates; in arm_print_hint_for_cpu_option() local 316 candidates.safe_push (list->common.name); in arm_print_hint_for_cpu_option() 322 candidates.safe_push (alias->name); in arm_print_hint_for_cpu_option() 328 candidates.safe_push ("native"); in arm_print_hint_for_cpu_option() 332 const char *hint = candidates_list_and_hint (target, s, candidates); in arm_print_hint_for_cpu_option() 386 auto_vec<const char*> candidates; in arm_print_hint_for_arch_option() local 388 candidates.safe_push (list->common.name); in arm_print_hint_for_arch_option() 392 candidates.safe_push ("native"); in arm_print_hint_for_arch_option() 396 const char *hint = candidates_list_and_hint (target, s, candidates); in arm_print_hint_for_arch_option() 439 auto_vec<const char*> candidates; in arm_print_hint_for_fpu_option() local [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-mdb/ |
| H A D | search.c | 430 ID *candidates, *iscopes, *c0; in mdb_search() local 479 candidates = c0 = search_stack( op ); in mdb_search() 480 iscopes = candidates + MDB_idl_um_size; in mdb_search() 484 candidates = ch_malloc(( MDB_idl_um_size + MDB_idl_db_size ) * sizeof ( ID )); in mdb_search() 485 iscopes = candidates + MDB_idl_um_size; in mdb_search() 494 MDB_IDL_ZERO(candidates); in mdb_search() 522 candidates, NULL ); in mdb_search() 532 candidates, NULL ); in mdb_search() 659 rs->sr_err = base_candidate( op->o_bd, base, candidates ); in mdb_search() 679 MDB_IDL_ZERO( candidates ); in mdb_search() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/cp/ |
| H A D | call.cc | 2175 add_candidate (struct z_candidate **candidates, in add_candidate() argument 2194 cand->next = *candidates; in add_candidate() 2196 *candidates = cand; in add_candidate() 2319 add_function_candidate (struct z_candidate **candidates, in add_function_candidate() argument 2509 return add_candidate (candidates, fn, orig_first_arg, args, len, convs, in add_function_candidate() 2526 add_conv_candidate (struct z_candidate **candidates, tree fn, tree obj, in add_conv_candidate() argument 2549 if (*candidates && (*candidates)->fn == totype) in add_conv_candidate() 2612 return add_candidate (candidates, totype, obj, arglist, len, convs, in add_conv_candidate() 2617 build_builtin_candidate (struct z_candidate **candidates, tree fnname, in build_builtin_candidate() argument 2683 add_candidate (candidates, fnname, /*first_arg=*/NULL_TREE, /*args=*/NULL, in build_builtin_candidate() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-wt/ |
| H A D | search.c | 351 ID candidates[WT_IDL_UM_SIZE]; in wt_search() local 442 rs->sr_err = base_candidate( op->o_bd, base, candidates ); in wt_search() 444 WT_IDL_ZERO( candidates ); in wt_search() 447 wc, candidates, scopes ); in wt_search() 464 if ( candidates[0] == 0 ) { in wt_search() 472 WT_IDL_N(candidates) > (unsigned) op->ors_limit->lms_s_unchecked ) in wt_search() 483 tentries = WT_IDL_N(candidates); in wt_search() 503 id = wt_idl_first( candidates, &cursor ); in wt_search() 515 id = wt_idl_next( candidates, &cursor ); in wt_search() 519 for ( id = wt_idl_first( candidates, &cursor ); in wt_search() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/cp/ |
| H A D | call.c | 2129 add_candidate (struct z_candidate **candidates, in add_candidate() argument 2148 cand->next = *candidates; in add_candidate() 2150 *candidates = cand; in add_candidate() 2216 add_function_candidate (struct z_candidate **candidates, in add_function_candidate() argument 2445 return add_candidate (candidates, fn, orig_first_arg, args, len, convs, in add_function_candidate() 2462 add_conv_candidate (struct z_candidate **candidates, tree fn, tree obj, in add_conv_candidate() argument 2485 if (*candidates && (*candidates)->fn == totype) in add_conv_candidate() 2548 return add_candidate (candidates, totype, obj, arglist, len, convs, in add_conv_candidate() 2553 build_builtin_candidate (struct z_candidate **candidates, tree fnname, in build_builtin_candidate() argument 2619 add_candidate (candidates, fnname, /*first_arg=*/NULL_TREE, /*args=*/NULL, in build_builtin_candidate() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/config/i386/ |
| H A D | i386-features.cc | 379 scalar_chain::analyze_register_chain (bitmap candidates, df_ref ref) in analyze_register_chain() argument 384 || bitmap_bit_p (candidates, DF_REF_INSN_UID (ref))); in analyze_register_chain() 399 if (bitmap_bit_p (candidates, uid)) in analyze_register_chain() 426 scalar_chain::add_insn (bitmap candidates, unsigned int insn_uid) in add_insn() argument 448 analyze_register_chain (candidates, ref); in add_insn() 451 analyze_register_chain (candidates, ref); in add_insn() 458 scalar_chain::build (bitmap candidates, unsigned insn_uid) in build() argument 470 bitmap_clear_bit (candidates, insn_uid); in build() 471 add_insn (candidates, insn_uid); in build() 1592 timode_check_non_convertible_regs (bitmap candidates, bitmap regs, in timode_check_non_convertible_regs() argument [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/i386/ |
| H A D | i386-features.c | 379 scalar_chain::analyze_register_chain (bitmap candidates, df_ref ref) in analyze_register_chain() argument 384 || bitmap_bit_p (candidates, DF_REF_INSN_UID (ref))); in analyze_register_chain() 399 if (bitmap_bit_p (candidates, uid)) in analyze_register_chain() 426 scalar_chain::add_insn (bitmap candidates, unsigned int insn_uid) in add_insn() argument 448 analyze_register_chain (candidates, ref); in add_insn() 451 analyze_register_chain (candidates, ref); in add_insn() 458 scalar_chain::build (bitmap candidates, unsigned insn_uid) in build() argument 470 bitmap_clear_bit (candidates, insn_uid); in build() 471 add_insn (candidates, insn_uid); in build() 1501 timode_check_non_convertible_regs (bitmap candidates, bitmap regs, in timode_check_non_convertible_regs() argument [all …]
|