• Home
  • Raw
  • Download

Lines Matching refs:list

34 	struct wl_list list;  in TEST()  local
36 wl_list_init(&list); in TEST()
37 assert(list.next == &list); in TEST()
38 assert(list.prev == &list); in TEST()
39 assert(wl_list_empty(&list)); in TEST()
49 struct wl_list list; in TEST() local
52 wl_list_init(&list); in TEST()
53 wl_list_insert(&list, &e.link); in TEST()
54 assert(list.next == &e.link); in TEST()
55 assert(list.prev == &e.link); in TEST()
56 assert(e.link.next == &list); in TEST()
57 assert(e.link.prev == &list); in TEST()
62 struct wl_list list; in TEST() local
65 wl_list_init(&list); in TEST()
66 assert(wl_list_length(&list) == 0); in TEST()
67 wl_list_insert(&list, &e.link); in TEST()
68 assert(wl_list_length(&list) == 1); in TEST()
70 assert(wl_list_length(&list) == 0); in TEST()
75 struct wl_list list; in TEST() local
85 wl_list_init(&list); in TEST()
86 wl_list_insert(list.prev, &e1.link); in TEST()
87 wl_list_insert(list.prev, &e2.link); in TEST()
88 wl_list_insert(list.prev, &e3.link); in TEST()
89 wl_list_insert(list.prev, &e4.link); in TEST()
92 wl_list_for_each(e, &list, link) { in TEST()
100 wl_list_for_each_reverse(e, &list, link) { in TEST()
109 validate_list(struct wl_list *list, int *reference, int length) in validate_list() argument
115 wl_list_for_each(e, list, link) { in validate_list()
131 struct wl_list list; in TEST() local
139 wl_list_init(&list); in TEST()
140 wl_list_insert(&list, &e1.link); in TEST()
141 wl_list_insert(list.prev, &e2.link); in TEST()
142 wl_list_insert(list.prev, &e3.link); in TEST()
143 assert(validate_list(&list, reference1, ARRAY_LENGTH(reference1))); in TEST()
146 assert(validate_list(&list, reference2, ARRAY_LENGTH(reference2))); in TEST()
151 struct wl_list list, other; in TEST() local
161 wl_list_init(&list); in TEST()
162 wl_list_insert(&list, &e1.link); in TEST()
163 wl_list_insert(list.prev, &e2.link); in TEST()
164 wl_list_insert(list.prev, &e3.link); in TEST()
165 assert(validate_list(&list, reference1, ARRAY_LENGTH(reference1))); in TEST()
177 wl_list_insert_list(list.next, &other); in TEST()
178 assert(validate_list(&list, reference3, ARRAY_LENGTH(reference3))); in TEST()