Lines Matching refs:l2
13 struct dllist *head = NULL, *l4, *l3, *l2, *l1;
18 l2 = t_new(struct dllist, 1);
29 DLLIST_PREPEND(&head, l2);
32 DLLIST_REMOVE(&head, l2);
33 test_assert(l2->prev == NULL && l2->next == NULL);
66 struct dllist *head = NULL, *tail = NULL, *l4, *l3, *l2, *l1;
71 l2 = t_new(struct dllist, 1);
88 DLLIST2_PREPEND(&head, &tail, l2);
89 test_assert(head == l2 && tail == l3);
90 test_assert(l2->prev == NULL && l2->next == l3);
91 test_assert(l3->prev == l2 && l3->next == NULL);
94 test_assert(head == l2 && tail == l4);
95 test_assert(l2->prev == NULL && l2->next == l3);
96 test_assert(l3->prev == l2 && l3->next == l4);
101 DLLIST2_REMOVE(&head, &tail, l2);
102 test_assert(l2->prev == NULL && l2->next == NULL);