Changeset 307 in svn for trunk/stack.c


Ignore:
Timestamp:
2006-12-09T03:42:09Z (9 years ago)
Author:
Xuefer
Message:

stack interface changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stack.c

    r11 r307  
    44typedef xc_stack_t* S;
    55
    6 void xc_stack_init(S stack)
     6void xc_stack_init_ex(S stack, int initsize)
    77{
    88    stack->cnt = 0;
    9     stack->size = 8;
     9    stack->size = initsize;
    1010    stack->data = malloc(sizeof(void *) * stack->size);
    1111}
     
    4343}
    4444
    45 int xc_stack_size(S stack)
     45int xc_stack_count(S stack)
    4646{
    4747    assert(stack != NULL);
Note: See TracChangeset for help on using the changeset viewer.