source: svn/trunk/stack.h @ 413

Last change on this file since 413 was 393, checked in by Xuefer, 13 years ago

set svn:eol-style

  • Property svn:eol-style set to native
File size: 429 bytes
2typedef struct {
3    void **data;
4    int cnt;
5    int size;
6} xc_stack_t;
8#define S xc_stack_t*
9void xc_stack_init_ex(S stack, int initsize);
10#define xc_stack_init(stack) xc_stack_init_ex(stack, 8)
11void xc_stack_destroy(S stack);
12void xc_stack_push(S stack, void *item);
13void *xc_stack_pop(S stack);
14void *xc_stack_top(S stack);
15void *xc_stack_get(S stack, int n);
16int xc_stack_count(S stack);
17void xc_stack_reverse(S stack);
18#undef S
Note: See TracBrowser for help on using the repository browser.