Lines Matching refs:newItem
35 static void ulist_addFirstItem(UList *list, UListNode *newItem);
63 static void ulist_addFirstItem(UList *list, UListNode *newItem) {
64 newItem->next = NULL;
65 newItem->previous = NULL;
66 list->head = newItem;
67 list->tail = newItem;
93 UListNode *newItem = NULL;
102 newItem = (UListNode *)uprv_malloc(sizeof(UListNode));
103 if (newItem == NULL) {
110 newItem->data = (void *)(data);
111 newItem->forceDelete = forceDelete;
114 ulist_addFirstItem(list, newItem);
116 newItem->next = NULL;
117 newItem->previous = list->tail;
118 list->tail->next = newItem;
119 list->tail = newItem;
126 UListNode *newItem = NULL;
135 newItem = (UListNode *)uprv_malloc(sizeof(UListNode));
136 if (newItem == NULL) {
143 newItem->data = (void *)(data);
144 newItem->forceDelete = forceDelete;
147 ulist_addFirstItem(list, newItem);
149 newItem->previous = NULL;
150 newItem->next = list->head;
151 list->head->previous = newItem;
152 list->head = newItem;