source: branches/1.2/stack.h @ 394

Last change on this file since 394 was 394, checked in by moo, 7 years ago

merged [393] from trunk: svn:eol-style

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