Lines Matching refs:elements
38 ListElement elements[4]) {
44 REPORTER_ASSERT(reporter, in0 == list.isInList(&elements[0]));
45 REPORTER_ASSERT(reporter, in1 == list.isInList(&elements[1]));
46 REPORTER_ASSERT(reporter, in2 == list.isInList(&elements[2]));
47 REPORTER_ASSERT(reporter, in3 == list.isInList(&elements[3]));
53 ListElement elements[4] = {
61 check_list(list, reporter, true, 0, false, false, false, false, elements);
63 list.addToHead(&elements[0]);
65 check_list(list, reporter, false, 1, true, false, false, false, elements);
67 list.addToHead(&elements[1]);
68 list.addToHead(&elements[2]);
69 list.addToHead(&elements[3]);
71 check_list(list, reporter, false, 4, true, true, true, true, elements);
88 list.remove(&elements[1]);
89 list.remove(&elements[3]);
90 list.remove(&elements[0]);
92 check_list(list, reporter, false, 1, false, false, true, false, elements);
95 list.remove(&elements[2]);
98 check_list(list, reporter, true, 0, false, false, false, false, elements);
101 list.addAfter(&elements[1], NULL);
102 check_list(list, reporter, false, 1, false, true, false, false, elements);
104 list.remove(&elements[1]);
106 list.addBefore(&elements[1], NULL);
107 check_list(list, reporter, false, 1, false, true, false, false, elements);
109 list.addBefore(&elements[0], &elements[1]);
110 check_list(list, reporter, false, 2, true, true, false, false, elements);
112 list.addAfter(&elements[3], &elements[1]);
113 check_list(list, reporter, false, 3, true, true, false, true, elements);
115 list.addBefore(&elements[2], &elements[3]);
116 check_list(list, reporter, false, 4, true, true, true, true, elements);
224 // remember the elements before/after the insertion point.
286 // remember the prev and next elements from the element to be removed