Changeset 593 for branches/1.3/stack.c


Ignore:
Timestamp:
2009-07-05T06:06:15+02:00 (5 years ago)
Author:
moo
Message:

merged r304,r305,r306,r307 from trunk

Location:
branches/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

  • branches/1.3/stack.c

    r394 r593  
    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.