comparison paper/src/pop2.cbc @ 43:a5e840dede1b

add src
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Mon, 01 Feb 2021 11:39:12 +0900
parents
children
comparison
equal deleted inserted replaced
42:8d779a8c8029 43:a5e840dede1b
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