Lines Matching refs:st0
110 Stack *st0, *st1, *st2;
114 st0 = stacks;
118 if (st0 == NULL || st0 == st) break;
120 st1 = st0;
121 st0 = st0->next;
123 vg_assert(st0 == st);
124 if (st0 != NULL && st1 != NULL && st2 != NULL) {
126 /* st0 points to st, st1 to its predecessor, and st2 to st1's
127 predecessor. Swap st0 and st1, that is, move st0 one step
130 vg_assert(st1->next == st0);
131 tmp = st0->next;
132 st2->next = st0;
133 st0->next = st1;
137 if (st0 != NULL && st1 != NULL && st2 == NULL) {
140 vg_assert(st1->next == st0);
141 st1->next = st0->next;
142 st0->next = st1;
143 stacks = st0;