Lines Matching refs:newItem

34 static void ulist_addFirstItem(UList *list, UListNode *newItem);
61 static void ulist_addFirstItem(UList *list, UListNode *newItem) { in ulist_addFirstItem() argument
62 newItem->next = NULL; in ulist_addFirstItem()
63 newItem->previous = NULL; in ulist_addFirstItem()
64 list->head = newItem; in ulist_addFirstItem()
65 list->tail = newItem; in ulist_addFirstItem()
92 UListNode *newItem = NULL; in ulist_addItemEndList() local
101 newItem = (UListNode *)uprv_malloc(sizeof(UListNode)); in ulist_addItemEndList()
102 if (newItem == NULL) { in ulist_addItemEndList()
109 newItem->data = (void *)(data); in ulist_addItemEndList()
110 newItem->forceDelete = forceDelete; in ulist_addItemEndList()
113 ulist_addFirstItem(list, newItem); in ulist_addItemEndList()
115 newItem->next = NULL; in ulist_addItemEndList()
116 newItem->previous = list->tail; in ulist_addItemEndList()
117 list->tail->next = newItem; in ulist_addItemEndList()
118 list->tail = newItem; in ulist_addItemEndList()
125 UListNode *newItem = NULL; in ulist_addItemBeginList() local
134 newItem = (UListNode *)uprv_malloc(sizeof(UListNode)); in ulist_addItemBeginList()
135 if (newItem == NULL) { in ulist_addItemBeginList()
142 newItem->data = (void *)(data); in ulist_addItemBeginList()
143 newItem->forceDelete = forceDelete; in ulist_addItemBeginList()
146 ulist_addFirstItem(list, newItem); in ulist_addItemBeginList()
148 newItem->previous = NULL; in ulist_addItemBeginList()
149 newItem->next = list->head; in ulist_addItemBeginList()
150 list->head->previous = newItem; in ulist_addItemBeginList()
151 list->head = newItem; in ulist_addItemBeginList()