Lines Matching refs:st0
111 Stack *st0, *st1, *st2;
115 st0 = stacks;
119 if (st0 == NULL || st0 == st) break;
121 st1 = st0;
122 st0 = st0->next;
124 vg_assert(st0 == st);
125 if (st0 != NULL && st1 != NULL && st2 != NULL) {
127 /* st0 points to st, st1 to its predecessor, and st2 to st1's
128 predecessor. Swap st0 and st1, that is, move st0 one step
131 vg_assert(st1->next == st0);
132 tmp = st0->next;
133 st2->next = st0;
134 st0->next = st1;
138 if (st0 != NULL && st1 != NULL && st2 == NULL) {
141 vg_assert(st1->next == st0);
142 st1->next = st0->next;
143 st0->next = st1;
144 stacks = st0;