Mercurial > hg > Papers > 2017 > mitsuki-sigos
diff paper/src/ex_stub @ 19:f311c7a14a62 default tip
add src
author | mir3636 |
---|---|
date | Mon, 15 May 2017 18:50:34 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paper/src/ex_stub Mon May 15 18:50:34 2017 +0900 @@ -0,0 +1,11 @@ +__code clearSingleLinkedStack(struct Context *context,struct SingleLinkedStack* stack,enum Code next) { + stack->top = NULL; + goto meta(context, next); +} + +__code clearSingleLinkedStack_stub(struct Context* context) { + SingleLinkedStack* stack = (SingleLinkedStack*)GearImpl(context, Stack, stack); + enum Code next = Gearef(context, Stack)->next; + goto clearSingleLinkedStack(context, stack, next); +} +