Mercurial > hg > Members > anatofuz > CbC_xv6
comparison src/interface/Stack.h @ 83:d4e22a45a575
mod copy to interface/*.h to *.dir
author | anatofuz |
---|---|
date | Sat, 12 Oct 2019 15:22:33 +0900 |
parents | src/Stack.h@c976a8bbe8c5 |
children |
comparison
equal
deleted
inserted
replaced
82:d419660ad71d | 83:d4e22a45a575 |
---|---|
1 typedef struct Stack<Type, Impl>{ | |
2 union Data* stack; | |
3 union Data* data; | |
4 union Data* data1; | |
5 /* Type* stack; */ | |
6 /* Type* data; */ | |
7 /* Type* data1; */ | |
8 __code whenEmpty(...); | |
9 __code clear(Impl* stack,__code next(...)); | |
10 __code push(Impl* stack,Type* data, __code next(...)); | |
11 __code pop(Impl* stack, __code next(Type* data, ...)); | |
12 __code pop2(Impl* stack, __code next(Type* data, Type* data1, ...)); | |
13 __code isEmpty(Impl* stack, __code next(...), __code whenEmpty(...)); | |
14 __code get(Impl* stack, __code next(Type* data, ...)); | |
15 __code get2(Impl* stack, __code next(Type* data, Type* data1, ...)); | |
16 __code next(...); | |
17 } Stack; |