3
|
1 typedef struct Stack<Type, Impl>{
|
|
2 union Data* stack;
|
|
3 union Data* data;
|
|
4 union Data* data1;
|
|
5
|
|
6 __code whenEmpty(...);
|
|
7 __code clear(Impl* stack,__code next(...));
|
|
8 __code push(Impl* stack,Type* data, __code next(...));
|
|
9 __code pop(Impl* stack, __code next(Type* data, ...));
|
|
10 __code pop2(Impl* stack, __code next(Type* data, Type* data1, ...));
|
|
11 __code isEmpty(Impl* stack, __code next(...), __code whenEmpty(...));
|
|
12 __code get(Impl* stack, __code next(Type* data, ...));
|
|
13 __code get2(Impl* stack, __code next(Type* data, Type* data1, ...));
|
|
14 __code next(...);
|
|
15 } Stack;
|