annotate src/Stack.h @ 80:c976a8bbe8c5

add stac.h and Stac.cbc
author tobaru
date Wed, 09 Oct 2019 20:41:51 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
80
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
1 typedef struct Stack<Type, Impl>{
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
2 union Data* stack;
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
3 union Data* data;
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
4 union Data* data1;
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
5 /* Type* stack; */
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
6 /* Type* data; */
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
7 /* Type* data1; */
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
8 __code whenEmpty(...);
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
9 __code clear(Impl* stack,__code next(...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
10 __code push(Impl* stack,Type* data, __code next(...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
11 __code pop(Impl* stack, __code next(Type* data, ...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
12 __code pop2(Impl* stack, __code next(Type* data, Type* data1, ...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
13 __code isEmpty(Impl* stack, __code next(...), __code whenEmpty(...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
14 __code get(Impl* stack, __code next(Type* data, ...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
15 __code get2(Impl* stack, __code next(Type* data, Type* data1, ...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
16 __code next(...);
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
17 } Stack;