annotate src/interface/Stack.h @ 323:f0b337cb6024 default tip

use goto err->panic
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sat, 08 Feb 2020 20:37:42 +0900
parents 96fd8e1db32f
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 __code whenEmpty(...);
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
3 __code clear(Impl* stack,__code next(...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
4 __code push(Impl* stack,Type* data, __code next(...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
5 __code pop(Impl* stack, __code next(Type* data, ...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
6 __code pop2(Impl* stack, __code next(Type* data, Type* data1, ...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
7 __code isEmpty(Impl* stack, __code next(...), __code whenEmpty(...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
8 __code get(Impl* stack, __code next(Type* data, ...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
9 __code get2(Impl* stack, __code next(Type* data, Type* data1, ...));
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
10 __code next(...);
c976a8bbe8c5 add stac.h and Stac.cbc
tobaru
parents:
diff changeset
11 } Stack;