| /NextBSD/contrib/libreadline/ |
| HD | complete.c | 954 char **matches; local 964 matches = (*rl_attempted_completion_function) (text, start, end); 966 if (matches || rl_attempted_completion_over) 969 return (matches); 975 matches = rl_completion_matches (text, our_func); 976 return matches; 982 remove_duplicate_matches (matches) in remove_duplicate_matches() argument 983 char **matches; in remove_duplicate_matches() 991 for (i = 0; matches[i]; i++) 997 qsort (matches+1, i-1, sizeof (char *), (QSFUNC *)_rl_qsort_string_compare); [all …]
|
| /NextBSD/contrib/llvm/lib/Option/ |
| HD | ArgList.cpp | 29 if (O.matches(Id0) || in SkipToNextArg() 30 (Id1.isValid() && O.matches(Id1)) || in SkipToNextArg() 31 (Id2.isValid() && O.matches(Id2))) in SkipToNextArg() 42 [=](Arg *A) { return A->getOption().matches(Id); }), in eraseArg() 49 if ((*it)->getOption().matches(Id)) in getLastArgNoClaim() 57 if ((*it)->getOption().matches(Id0) || in getLastArgNoClaim() 58 (*it)->getOption().matches(Id1)) in getLastArgNoClaim() 67 if ((*it)->getOption().matches(Id0) || (*it)->getOption().matches(Id1) || in getLastArgNoClaim() 68 (*it)->getOption().matches(Id2)) in getLastArgNoClaim() 77 if ((*it)->getOption().matches(Id0) || (*it)->getOption().matches(Id1) || in getLastArgNoClaim() [all …]
|
| /NextBSD/contrib/llvm/tools/lldb/source/Commands/ |
| HD | CommandObjectMultiword.cpp | 45 CommandObjectMultiword::GetSubcommandSP (const char *sub_cmd, StringList *matches) in GetSubcommandSP() argument 55 if (matches) in GetSubcommandSP() 56 matches->AppendString(sub_cmd); in GetSubcommandSP() 63 if (matches == NULL) in GetSubcommandSP() 64 matches = &local_matches; in GetSubcommandSP() 65 … num_matches = CommandObject::AddNamesMatchingPartialString (m_subcommand_dict, sub_cmd, *matches); in GetSubcommandSP() 72 sub_cmd = matches->GetStringAtIndex(0); in GetSubcommandSP() 83 CommandObjectMultiword::GetSubcommandObject (const char *sub_cmd, StringList *matches) in GetSubcommandObject() argument 85 return GetSubcommandSP(sub_cmd, matches).get(); in GetSubcommandObject() 130 StringList matches; in Execute() local [all …]
|
| HD | CommandCompletions.cpp | 62 StringList &matches in InvokeCommonCompletionCallbacks() argument 84 matches); in InvokeCommonCompletionCallbacks() 99 StringList &matches in SourceFiles() argument 109 matches); in SourceFiles() 121 return matches.GetSize(); in SourceFiles() 130 StringList *matches; member 183 parameters->matches->AppendString(partial_name_copy); in DiskFilesOrDirectoriesCallback() 195 StringList &matches in DiskFilesOrDirectories() argument 204 return matches.GetSize(); in DiskFilesOrDirectories() 245 FileSpec::ResolvePartialUsername (partial_name_copy, matches); in DiskFilesOrDirectories() [all …]
|
| HD | CommandObjectHelp.cpp | 86 StringList matches; in DoExecute() local 87 cmd_obj = m_interpreter.GetCommandObject (command.GetArgumentAtIndex (0), &matches); in DoExecute() 93 StringList matches; in DoExecute() local 101 matches.Clear(); in DoExecute() 109 found_cmd = sub_cmd_obj->GetSubcommandObject(sub_command.c_str(), &matches); in DoExecute() 112 else if (matches.GetSize() > 1) in DoExecute() 123 if (matches.GetSize() >= 2) in DoExecute() 127 size_t num_matches = matches.GetSize(); in DoExecute() 130 s.Printf ("\n\t%s", matches.GetStringAtIndex(match_idx)); in DoExecute() 166 else if (matches.GetSize() > 0) in DoExecute() [all …]
|
| HD | CommandObjectSettings.cpp | 160 StringList &matches) in HandleArgumentCompletion() argument 184 matches); in HandleArgumentCompletion() 209 matches); in HandleArgumentCompletion() 214 return matches.GetSize(); in HandleArgumentCompletion() 336 StringList &matches) in HandleArgumentCompletion() argument 347 matches); in HandleArgumentCompletion() 348 return matches.GetSize(); in HandleArgumentCompletion() 428 StringList &matches) in HandleArgumentCompletion() argument 439 matches); in HandleArgumentCompletion() 440 return matches.GetSize(); in HandleArgumentCompletion() [all …]
|
| /NextBSD/sys/dev/pci/ |
| HD | pci_user.c | 67 static int pci_conf_match(struct pci_match_conf *matches, int num_matches, 108 pci_conf_match(struct pci_match_conf *matches, int num_matches, in pci_conf_match() argument 113 if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0)) in pci_conf_match() 120 if (matches[i].flags == PCI_GETCONF_NO_MATCH) in pci_conf_match() 128 if (((matches[i].flags & PCI_GETCONF_MATCH_DOMAIN) != 0) in pci_conf_match() 130 matches[i].pc_sel.pc_domain)) in pci_conf_match() 133 if (((matches[i].flags & PCI_GETCONF_MATCH_BUS) != 0) in pci_conf_match() 134 && (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus)) in pci_conf_match() 137 if (((matches[i].flags & PCI_GETCONF_MATCH_DEV) != 0) in pci_conf_match() 138 && (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev)) in pci_conf_match() [all …]
|
| /NextBSD/contrib/xz/src/liblzma/lz/ |
| HD | lz_encoder_mf.c | 23 lzma_mf_find(lzma_mf *mf, uint32_t *count_ptr, lzma_match *matches) in lzma_mf_find() argument 28 const uint32_t count = mf->find(mf, matches); in lzma_mf_find() 38 assert(matches[i].len <= mf->nice_len); in lzma_mf_find() 39 assert(matches[i].dist < mf->read_pos); in lzma_mf_find() 41 mf_ptr(mf) - matches[i].dist - 2, in lzma_mf_find() 42 matches[i].len) == 0); in lzma_mf_find() 48 len_best = matches[count - 1].len; in lzma_mf_find() 67 const uint8_t *p2 = p1 - matches[count - 1].dist - 1; in lzma_mf_find() 225 matches + matches_count, len_best) \ 226 - matches; \ [all …]
|
| HD | lz_encoder.h | 92 uint32_t (*find)(lzma_mf *mf, lzma_match *matches); 311 lzma_mf *mf, uint32_t *count, lzma_match *matches); 313 extern uint32_t lzma_mf_hc3_find(lzma_mf *dict, lzma_match *matches); 316 extern uint32_t lzma_mf_hc4_find(lzma_mf *dict, lzma_match *matches); 319 extern uint32_t lzma_mf_bt2_find(lzma_mf *dict, lzma_match *matches); 322 extern uint32_t lzma_mf_bt3_find(lzma_mf *dict, lzma_match *matches); 325 extern uint32_t lzma_mf_bt4_find(lzma_mf *dict, lzma_match *matches);
|
| /NextBSD/lib/libedit/ |
| HD | filecomplete.c | 294 size_t matches; in completion_matches() local 296 matches = 0; in completion_matches() 298 while ((retstr = (*genfunc) (text, (int)matches)) != NULL) { in completion_matches() 300 if (matches + 3 >= match_list_len) { in completion_matches() 302 while (matches + 3 >= match_list_len) in completion_matches() 313 match_list[++matches] = retstr; in completion_matches() 323 for (; which <= matches; which++) { in completion_matches() 340 match_list[matches + 1] = NULL; in completion_matches() 366 fn_display_match_list (EditLine *el, char **matches, size_t num, size_t width) in fn_display_match_list() argument 372 matches++; in fn_display_match_list() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/ASTMatchers/ |
| HD | ASTMatchers.h | 493 return InnerMatcher.matches(*Node.IgnoreImpCasts(), Finder, Builder); in AST_MATCHER_P() 514 return InnerMatcher.matches(*Node.IgnoreParenCasts(), Finder, Builder); in AST_MATCHER_P() 540 return InnerMatcher.matches(*Node.IgnoreParenImpCasts(), Finder, Builder); in AST_MATCHER_P() 564 return InnerMatcher.matches(List[N], Finder, Builder); in AST_POLYMORPHIC_MATCHER_P2() 599 return InnerMatcher.matches(Node.getAsType(), Finder, Builder); in AST_MATCHER_P() 618 return InnerMatcher.matches(*Node.getAsDecl(), Finder, Builder); in AST_MATCHER_P() 636 return InnerMatcher.matches(*Node.getAsExpr(), Finder, Builder); in AST_MATCHER_P() 669 return InnerMatcher.matches(Node.getIntegralType(), Finder, Builder); in AST_MATCHER_P() 1150 InnerMatcher.matches(*Increment, Finder, Builder)); in AST_MATCHER_P() 1164 return (Init != nullptr && InnerMatcher.matches(*Init, Finder, Builder)); in AST_MATCHER_P() [all …]
|
| /NextBSD/contrib/llvm/tools/lldb/include/lldb/Interpreter/ |
| HD | CommandCompletions.h | 40 … lldb_private::StringList &matches); // The array of matches we return. 73 StringList &matches); 85 StringList &matches); 93 StringList &matches); 102 StringList &matches); 111 lldb_private::StringList &matches); 120 lldb_private::StringList &matches); 129 lldb_private::StringList &matches); 138 lldb_private::StringList &matches); 148 lldb_private::StringList &matches); [all …]
|
| HD | CommandObjectMultiword.h | 53 GetSubcommandSP (const char *sub_cmd, StringList *matches = NULL); 56 GetSubcommandObject (const char *sub_cmd, StringList *matches = NULL); 74 StringList &matches); 125 GetSubcommandSP (const char *sub_cmd, StringList *matches = NULL); 128 GetSubcommandObject (const char *sub_cmd, StringList *matches = NULL); 157 StringList &matches); 167 StringList &matches);
|
| /NextBSD/contrib/llvm/tools/llvm-cov/ |
| HD | CoverageFilters.cpp | 20 bool NameCoverageFilter::matches(const coverage::FunctionRecord &Function) { in matches() function in NameCoverageFilter 26 NameRegexCoverageFilter::matches(const coverage::FunctionRecord &Function) { in matches() function in NameRegexCoverageFilter 30 bool RegionCoverageFilter::matches(const coverage::FunctionRecord &Function) { in matches() function in RegionCoverageFilter 35 bool LineCoverageFilter::matches(const coverage::FunctionRecord &Function) { in matches() function in LineCoverageFilter 44 bool CoverageFilters::matches(const coverage::FunctionRecord &Function) { in matches() function in CoverageFilters 46 if (Filter->matches(Function)) in matches() 53 CoverageFiltersMatchAll::matches(const coverage::FunctionRecord &Function) { in matches() function in CoverageFiltersMatchAll 55 if (!Filter->matches(Function)) in matches()
|
| HD | CoverageFilters.h | 29 virtual bool matches(const coverage::FunctionRecord &Function) { in matches() function 41 bool matches(const coverage::FunctionRecord &Function) override; 51 bool matches(const coverage::FunctionRecord &Function) override; 87 bool matches(const coverage::FunctionRecord &Function) override; 98 bool matches(const coverage::FunctionRecord &Function) override; 114 bool matches(const coverage::FunctionRecord &Function) override; 122 bool matches(const coverage::FunctionRecord &Function) override;
|
| /NextBSD/usr.sbin/mptutil/ |
| HD | mpt_cam.c | 79 ccb.cdm.matches = calloc(1, bufsize); in fetch_path_id() 96 free(ccb.cdm.matches); in fetch_path_id() 106 free(ccb.cdm.matches); in fetch_path_id() 112 ccb.cdm.matches[0].type != DEV_MATCH_BUS) { in fetch_path_id() 113 free(ccb.cdm.matches); in fetch_path_id() 116 *path_id = ccb.cdm.matches[0].result.bus_result.path_id; in fetch_path_id() 117 free(ccb.cdm.matches); in fetch_path_id() 153 ccb.cdm.matches = calloc(1, bufsize); in mpt_query_disk() 170 free(ccb.cdm.matches); in mpt_query_disk() 180 free(ccb.cdm.matches); in mpt_query_disk() [all …]
|
| /NextBSD/contrib/llvm/tools/lldb/source/Symbol/ |
| HD | Variable.cpp | 562 StringList &matches, 571 StringList &matches, 580 StringList &matches, in PrivateAutoCompleteMembers() argument 598 matches, in PrivateAutoCompleteMembers() 616 matches, in PrivateAutoCompleteMembers() 641 matches, in PrivateAutoCompleteMembers() 646 matches.AppendString (prefix_path + member_name); in PrivateAutoCompleteMembers() 658 StringList &matches, in PrivateAutoComplete() argument 684 matches.AppendString (prefix_path); in PrivateAutoComplete() 685 word_complete = matches.GetSize() == 1; in PrivateAutoComplete() [all …]
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | interps.c | 424 char **matches; in interpreter_completer() local 431 matches = (char **) xmalloc (alloced * sizeof (char *)); in interpreter_completer() 439 matches[num_matches] = in interpreter_completer() 442 strcpy (matches[num_matches], interp->name); in interpreter_completer() 446 strcpy (matches[num_matches], interp->name + (word - text)); in interpreter_completer() 451 strncpy (matches[num_matches], word, text - word); in interpreter_completer() 452 matches[num_matches][text - word] = '\0'; in interpreter_completer() 453 strcat (matches[num_matches], interp->name); in interpreter_completer() 461 xfree (matches); in interpreter_completer() 462 matches = NULL; in interpreter_completer() [all …]
|
| /NextBSD/contrib/xz/src/liblzma/lzma/ |
| HD | lzma_encoder_optimum_fast.c | 29 len_main = mf_find(mf, &matches_count, coder->matches); in lzma_lzma_optimum_fast() 82 *back_res = coder->matches[matches_count - 1].dist + REPS; in lzma_lzma_optimum_fast() 90 back_main = coder->matches[matches_count - 1].dist; in lzma_lzma_optimum_fast() 93 coder->matches[matches_count - 2].len + 1) { in lzma_lzma_optimum_fast() 94 if (!change_pair(coder->matches[ in lzma_lzma_optimum_fast() 100 len_main = coder->matches[matches_count - 1].len; in lzma_lzma_optimum_fast() 101 back_main = coder->matches[matches_count - 1].dist; in lzma_lzma_optimum_fast() 130 &coder->matches_count, coder->matches); in lzma_lzma_optimum_fast() 133 const uint32_t new_dist = coder->matches[ in lzma_lzma_optimum_fast()
|
| /NextBSD/contrib/llvm/tools/clang/lib/Driver/ |
| HD | SanitizerArgs.cpp | 125 if (Arg->getOption().matches(options::OPT_fsanitize_trap_EQ)) { in parseSanitizeTrapArgs() 136 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_trap_EQ)) { in parseSanitizeTrapArgs() 139 } else if (Arg->getOption().matches( in parseSanitizeTrapArgs() 144 } else if (Arg->getOption().matches( in parseSanitizeTrapArgs() 210 if (Arg->getOption().matches(options::OPT_fsanitize_EQ)) { in SanitizerArgs() 267 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_EQ)) { in SanitizerArgs() 336 if (Arg->getOption().matches(options::OPT_fsanitize_recover)) { in SanitizerArgs() 340 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_recover)) { in SanitizerArgs() 344 } else if (Arg->getOption().matches(options::OPT_fsanitize_recover_EQ)) { in SanitizerArgs() 358 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_recover_EQ)) { in SanitizerArgs() [all …]
|
| /NextBSD/sys/isa/ |
| HD | isahint.c | 107 int line, matches, unit; in isa_hint_device_unit() local 129 matches = 0; in isa_hint_device_unit() 147 matches++; in isa_hint_device_unit() 154 matches++; in isa_hint_device_unit() 158 if (matches > 0) in isa_hint_device_unit() 162 matches++; in isa_hint_device_unit() 168 matches++; in isa_hint_device_unit() 174 if (matches > 0) { in isa_hint_device_unit()
|
| /NextBSD/contrib/libarchive/tar/ |
| HD | subst.c | 213 regmatch_t matches[10]; in apply_substitution() local 239 if (regexec(&rule->re, name, 10, matches, 0)) in apply_substitution() 244 realloc_strncat(result, name, matches[0].rm_so); in apply_substitution() 250 name + matches[0].rm_so, in apply_substitution() 251 matches[0].rm_eo - matches[0].rm_so); in apply_substitution() 281 …realloc_strncat(result, name + matches[c - '0'].rm_so, matches[c - '0'].rm_eo - matches[c - '0'].r… in apply_substitution() 293 name += matches[0].rm_eo; in apply_substitution()
|
| /NextBSD/contrib/netbsd-tests/lib/libc/regex/ |
| HD | t_regex_att.c | 359 checkmatches(const char *matches, size_t nm, const regmatch_t *pm, in checkmatches() argument 366 size_t len = strlen(matches) + 1, off = 0; in checkmatches() 368 ATF_REQUIRE((res = strdup(matches)) != NULL); in checkmatches() 381 ATF_CHECK_STREQ_MSG(res, matches, " at line %zu", lineno); in checkmatches() 383 ATF_REQUIRE_STREQ_MSG(res, matches, " at line %zu", lineno); in checkmatches() 406 char *name, *pattern, *input, *matches, *comment; in att_test() local 458 ATF_REQUIRE_MSG((matches = strtok(NULL, sep)) != NULL, in att_test() 491 if (*matches != '(') { in att_test() 492 geterror(matches, &comp, &exec); in att_test() 497 nm = getmatches(matches); in att_test() [all …]
|
| /NextBSD/contrib/gdb/gdb/cli/ |
| HD | cli-decode.c | 1401 int matches; in complete_on_cmdlist() local 1406 matches = 0; in complete_on_cmdlist() 1414 if (matches == sizeof_matchlist) in complete_on_cmdlist() 1422 matchlist[matches] = (char *) in complete_on_cmdlist() 1425 strcpy (matchlist[matches], ptr->name); in complete_on_cmdlist() 1429 strcpy (matchlist[matches], ptr->name + (word - text)); in complete_on_cmdlist() 1434 strncpy (matchlist[matches], word, text - word); in complete_on_cmdlist() 1435 matchlist[matches][text - word] = '\0'; in complete_on_cmdlist() 1436 strcat (matchlist[matches], ptr->name); in complete_on_cmdlist() 1438 ++matches; in complete_on_cmdlist() [all …]
|
| /NextBSD/lib/libdevstat/ |
| HD | devstat.c | 553 int numdevs, struct devstat_match *matches, int num_matches, in devstat_selectdevs() argument 732 if ((matches[i].match_fields == DEVSTAT_MATCH_NONE) in devstat_selectdevs() 733 || (matches[i].num_match_categories <= 0)) in devstat_selectdevs() 739 num_match_categories = matches[i].num_match_categories; in devstat_selectdevs() 754 if ((((matches[i].match_fields & DEVSTAT_MATCH_TYPE)!=0) in devstat_selectdevs() 756 (matches[i].device_type & DEVSTAT_TYPE_MASK)) in devstat_selectdevs() 757 &&(((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0) in devstat_selectdevs() 758 || (((matches[i].match_fields & in devstat_selectdevs() 763 || (((matches[i].match_fields & DEVSTAT_MATCH_IF) != 0) in devstat_selectdevs() 765 (matches[i].device_type & DEVSTAT_TYPE_IF_MASK)) in devstat_selectdevs() [all …]
|