|
Last change
on this file since 1 was
1,
checked in by moo, 7 years ago
|
|
initial import to online
|
|
File size:
355 bytes
|
| Line | |
|---|
| 1 | |
|---|
| 2 | typedef struct { |
|---|
| 3 | void **data; |
|---|
| 4 | int cnt; |
|---|
| 5 | int size; |
|---|
| 6 | } xc_stack_t; |
|---|
| 7 | |
|---|
| 8 | #define S xc_stack_t* |
|---|
| 9 | void xc_stack_init(S stack); |
|---|
| 10 | void xc_stack_destroy(S stack); |
|---|
| 11 | void xc_stack_push(S stack, void *item); |
|---|
| 12 | void *xc_stack_pop(S stack); |
|---|
| 13 | void *xc_stack_top(S stack); |
|---|
| 14 | void *xc_stack_get(S stack, int n); |
|---|
| 15 | int xc_stack_size(S stack); |
|---|
| 16 | void xc_stack_reverse(S stack); |
|---|
| 17 | #undef S |
|---|
Note: See
TracBrowser
for help on using the repository browser.