Lines Matching refs:copy
244 list *copy; in listDup() local
248 if ((copy = listCreate()) == NULL) in listDup()
250 copy->dup = orig->dup; in listDup()
251 copy->free = orig->free; in listDup()
252 copy->match = orig->match; in listDup()
257 if (copy->dup) { in listDup()
258 value = copy->dup(node->value); in listDup()
260 listRelease(copy); in listDup()
265 if (listAddNodeTail(copy, value) == NULL) { in listDup()
266 listRelease(copy); in listDup()
270 return copy; in listDup()