Mercurial > hg > Members > anatofuz > CbC_xv6
diff src/SingleLinkedStack.cbc @ 82:d419660ad71d
tweak generate_stub.pl
author | anatofuz |
---|---|
date | Fri, 11 Oct 2019 19:32:16 +0900 |
parents | c976a8bbe8c5 |
children |
line wrap: on
line diff
--- a/src/SingleLinkedStack.cbc Wed Oct 09 20:43:04 2019 +0900 +++ b/src/SingleLinkedStack.cbc Fri Oct 11 19:32:16 2019 +0900 @@ -1,11 +1,7 @@ #include "../context.h" #interface "Stack.h" -// typedef struct SingleLinkedStack { -// struct Element* top; -// } SingleLinkedStack; - -Stack* createSingleLinkedStack(struct Context* context) { +Stack* createSingleLinkedStack(struct Context* cbc_context) { struct Stack* stack = new Stack(); struct SingleLinkedStack* singleLinkedStack = new SingleLinkedStack(); stack->stack = (union Data*)singleLinkedStack;