Mercurial > hg > Papers > 2018 > nozomi-master
comparison paper/src/SingleLinkedStack.cbc @ 87:21cc0181b4cc
Update fig
author | atton <atton@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 09 Feb 2017 16:34:07 +0900 |
parents | fd984cfd5425 |
children |
comparison
equal
deleted
inserted
replaced
86:e437746d6038 | 87:21cc0181b4cc |
---|---|
39 __code clearSingleLinkedStack(struct SingleLinkedStack* stack,__code next(...)) { | 39 __code clearSingleLinkedStack(struct SingleLinkedStack* stack,__code next(...)) { |
40 stack->top = NULL; | 40 stack->top = NULL; |
41 goto next(...); | 41 goto next(...); |
42 } | 42 } |
43 | 43 |
44 // TODO | |
45 __code pushSingleLinkedStack(struct SingleLinkedStack* stack,union Data* data, __code next(...)) { | 44 __code pushSingleLinkedStack(struct SingleLinkedStack* stack,union Data* data, __code next(...)) { |
46 Element* element = new Element(); | 45 Element* element = new Element(); |
47 element->next = stack->top; | 46 element->next = stack->top; |
48 element->data = data; | 47 element->data = data; |
49 stack->top = element; | 48 stack->top = element; |