annotate paper/src/ex_code2 @ 19:f311c7a14a62 default tip

add src
author mir3636
date Mon, 15 May 2017 18:50:34 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
f311c7a14a62 add src
mir3636
parents:
diff changeset
1 __code pushSingleLinkedStack_stub(struct Context* context) {
f311c7a14a62 add src
mir3636
parents:
diff changeset
2 SingleLinkedStack* stack = (SingleLinkedStack*)GearImpl(context, Stack, stack);
f311c7a14a62 add src
mir3636
parents:
diff changeset
3 Data* data = Gearef(context, Stack)->data;
f311c7a14a62 add src
mir3636
parents:
diff changeset
4 enum Code next = Gearef(context, Stack)->next;
f311c7a14a62 add src
mir3636
parents:
diff changeset
5 goto pushSingleLinkedStack(context, stack, data, next);
f311c7a14a62 add src
mir3636
parents:
diff changeset
6 }
f311c7a14a62 add src
mir3636
parents:
diff changeset
7