Mercurial > hg > Papers > 2021 > anatofuz-master
annotate paper/src/pop2.cbc @ 158:d2be76d48b00 default tip
update
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 17 Feb 2021 14:37:21 +0900 |
parents | a5e840dede1b |
children |
rev | line source |
---|---|
43 | 1 __code pop2SingleLinkedStack(struct SingleLinkedStack* stack, __code next(union Data* data, union Data* data1, ...)) { |
2 if (stack->top) { | |
3 data = stack->top->data; | |
4 stack->top = stack->top->next; | |
5 } else { | |
6 data = NULL; | |
7 } | |
8 if (stack->top) { | |
9 data1 = stack->top->data; | |
10 stack->top = stack->top->next; | |
11 } else { | |
12 data1 = NULL; | |
13 } | |
14 goto next(data, data1, ...); | |
15 } | |
16 |