Lines Matching refs:cand
926 CandidateSearcher_Add(CandidateSearcher *cs, Candidate *cand)
929 Lst_Append(&cs->list, cand);
933 CandidateSearcher_AddIfNew(CandidateSearcher *cs, Candidate *cand)
936 if (Lst_FindDatum(&cs->list, cand) == NULL)
937 Lst_Append(&cs->list, cand);
955 Candidate *cand = ln->datum;
956 debug_printf(" %p:%s", cand, cand->file);
966 Candidate *cand = bmake_malloc(sizeof *cand);
968 cand->file = name;
969 cand->prefix = prefix;
970 cand->suff = Suffix_Ref(suff);
971 cand->parent = parent;
972 cand->node = gn;
973 cand->numChildren = 0;
975 Lst_Init(&cand->childrenList);
978 return cand;
987 Candidate *cand = Candidate_New(srcName, targ->prefix, suff, targ,
990 Lst_Append(list, cand);
993 Lst_Append(&targ->childrenList, cand);
995 debug_tag, targ, targ->file, cand, cand->file, list);
1005 CandidateList_AddCandidatesFor(CandidateList *list, Candidate *cand)
1008 for (ln = cand->suff->children.first; ln != NULL; ln = ln->next) {
1017 CandidateList_Add(list, bmake_strdup(cand->prefix),
1018 cand, suff, "1");
1021 CandidateList_Add(list, str_concat2(cand->prefix, suff->name),
1022 cand, suff, "2");