add_def
add_def(&def, list, index);
void add_def(struct defect_entry *def, struct defect_list *list,
add_def(&def, &work_list, index);