Mercurial > hg > CbC > CbC_xv6
view src/interface/Stack.h @ 166:a70c436936e4
impl cbc_sleep
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 16 Jan 2020 15:52:47 +0900 |
parents | d4e22a45a575 |
children | 96fd8e1db32f |
line wrap: on
line source
typedef struct Stack<Type, Impl>{ union Data* stack; union Data* data; union Data* data1; /* Type* stack; */ /* Type* data; */ /* Type* data1; */ __code whenEmpty(...); __code clear(Impl* stack,__code next(...)); __code push(Impl* stack,Type* data, __code next(...)); __code pop(Impl* stack, __code next(Type* data, ...)); __code pop2(Impl* stack, __code next(Type* data, Type* data1, ...)); __code isEmpty(Impl* stack, __code next(...), __code whenEmpty(...)); __code get(Impl* stack, __code next(Type* data, ...)); __code get2(Impl* stack, __code next(Type* data, Type* data1, ...)); __code next(...); } Stack;