Mercurial > hg > Papers > 2017 > mitsuki-sigos
view paper/src/ex_stack.cbc @ 19:f311c7a14a62 default tip
add src
author | mir3636 |
---|---|
date | Mon, 15 May 2017 18:50:34 +0900 |
parents | |
children |
line wrap: on
line source
__code clearSingleLinkedStack(struct SingleLinkedStack* stack,__code next(...)) { stack->top = NULL; goto next(...); } __code pushSingleLinkedStack(struct SingleLinkedStack* stack,union Data* data, __code next(...)) { Element* element = new Element(); element->next = stack->top; element->data = data; stack->top = element; goto next(...); }