Lines Matching refs:cand
960 CandidateSearcher_Add(CandidateSearcher *cs, Candidate *cand)
963 Lst_Append(&cs->list, cand);
967 CandidateSearcher_AddIfNew(CandidateSearcher *cs, Candidate *cand)
970 if (Lst_FindDatum(&cs->list, cand) == NULL)
971 Lst_Append(&cs->list, cand);
989 Candidate *cand = ln->datum;
990 debug_printf(" %p:%s", cand, cand->file);
1000 Candidate *cand = bmake_malloc(sizeof *cand);
1002 cand->file = name;
1003 cand->prefix = prefix;
1004 cand->suff = Suffix_Ref(suff);
1005 cand->parent = parent;
1006 cand->node = gn;
1007 cand->numChildren = 0;
1009 Lst_Init(&cand->childrenList);
1012 return cand;
1021 Candidate *cand = Candidate_New(srcName, targ->prefix, suff, targ,
1024 Lst_Append(list, cand);
1027 Lst_Append(&targ->childrenList, cand);
1029 debug_tag, targ, targ->file, cand, cand->file, list);
1039 CandidateList_AddCandidatesFor(CandidateList *list, Candidate *cand)
1042 for (ln = cand->suff->children.first; ln != NULL; ln = ln->next) {
1051 CandidateList_Add(list, bmake_strdup(cand->prefix),
1052 cand, suff, "1");
1055 CandidateList_Add(list, str_concat2(cand->prefix, suff->name),
1056 cand, suff, "2");