Lines Matching refs:list
26 /* A generic implementation of a list of void-pointers. */
52 _xcb_map *list;
53 list = malloc(sizeof(_xcb_map));
54 if(!list)
56 list->head = 0;
57 list->tail = &list->head;
58 return list;
61 void _xcb_map_delete(_xcb_map *list, xcb_list_free_func_t do_free)
63 if(!list)
65 while(list->head)
67 node *cur = list->head;
70 list->head = cur->next;
73 free(list);
76 int _xcb_map_put(_xcb_map *list, uint64_t key, void *data)
84 *list->tail = cur;
85 list->tail = &cur->next;
89 void *_xcb_map_remove(_xcb_map *list, uint64_t key)
92 for(cur = &list->head; *cur; cur = &(*cur)->next)
99 list->tail = cur;