• Home
  • Raw
  • Download

Lines Matching refs:newItem

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