Mercurial > hg > Members > Moririn
annotate src/llrb/stack.h @ 72:5c4b9d116eda
use stack for code segment
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 10 Nov 2015 01:59:04 +0900 |
parents | 368306e1bfed |
children |
rev | line source |
---|---|
69
368306e1bfed
llrb deletion(not work).
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
25
diff
changeset
|
1 #include <stdlib.h> |
25 | 2 |
3 typedef struct { | |
4 size_t size; | |
5 int max; | |
6 int num; | |
7 void* data; | |
8 } stack, *stack_ptr; | |
9 | |
69
368306e1bfed
llrb deletion(not work).
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
25
diff
changeset
|
10 extern stack_ptr stack_init(); |
368306e1bfed
llrb deletion(not work).
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
25
diff
changeset
|
11 extern stack_ptr stack_realloc(); |
368306e1bfed
llrb deletion(not work).
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
25
diff
changeset
|
12 extern void stack_free(); |
368306e1bfed
llrb deletion(not work).
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
25
diff
changeset
|
13 extern int stack_push(); |
368306e1bfed
llrb deletion(not work).
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
25
diff
changeset
|
14 extern int stack_pop(); |
368306e1bfed
llrb deletion(not work).
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
25
diff
changeset
|
15 extern int isMax(); |
368306e1bfed
llrb deletion(not work).
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
25
diff
changeset
|
16 extern int isEmpty(); |