Mercurial > hg > Papers > 2021 > anatofuz-master
view paper/src/StackPush.c @ 91:4232c9dc1431
update
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 05 Feb 2021 19:09:08 +0900 |
parents | 951cb9681030 |
children |
line wrap: on
line source
__code pushSingleLinkedStack(struct Context *context,struct SingleLinkedStack* stack, union Data* data, enum Code next) { Element* element = &ALLOCATE(context, Element)->Element; element->next = stack->top; element->data = data; stack->top = element; goto meta(context, next); } __code pushSingleLinkedStack_stub(struct Context* context) { SingleLinkedStack* stack = (SingleLinkedStack*)GearImpl(context, Stack, stack); Data* data = Gearef(context, Stack)->data; enum Code next = Gearef(context, Stack)->next; goto pushSingleLinkedStack(context, stack, data, next); }