Changeset 307 for trunk/stack.h


Ignore:
Timestamp:
2006-12-09T04:42:09+01:00 (8 years ago)
Author:
moo
Message:

stack interface changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stack.h

    r1 r307  
    77
    88#define S xc_stack_t*
    9 void xc_stack_init(S stack);
     9void xc_stack_init_ex(S stack, int initsize);
     10#define xc_stack_init(stack) xc_stack_init_ex(stack, 8)
    1011void xc_stack_destroy(S stack);
    1112void xc_stack_push(S stack, void *item);
     
    1314void *xc_stack_top(S stack);
    1415void *xc_stack_get(S stack, int n);
    15 int xc_stack_size(S stack);
     16int xc_stack_count(S stack);
    1617void xc_stack_reverse(S stack);
    1718#undef S
Note: See TracChangeset for help on using the changeset viewer.