ucx/stack.h

changeset 188
63f87e2884c1
parent 185
a48428642b4e
child 192
1e51558b9d09
     1.1 --- a/ucx/stack.h	Mon Jul 28 15:02:17 2014 +0200
     1.2 +++ b/ucx/stack.h	Mon Jul 28 15:10:22 2014 +0200
     1.3 @@ -104,7 +104,7 @@
     1.4   * @return a pointer to the allocated memory
     1.5   * @see ucx_stack_malloc
     1.6   */
     1.7 -#define ucx_stack_push(s, n) ucx_stack_malloc(s, n)
     1.8 +#define ucx_stack_push(stack, n) ucx_stack_malloc(stack, n)
     1.9  
    1.10  /**
    1.11   * Allocates an array of stack memory
    1.12 @@ -123,12 +123,12 @@
    1.13   * Alias for #ucx_stack_calloc().
    1.14   * 
    1.15   * @param stack a pointer to the stack
    1.16 - * @param nelem amount of elements to allocate
    1.17 + * @param n amount of elements to allocate
    1.18   * @param elsize amount of memory per element
    1.19   * @return a pointer to the allocated memory
    1.20   * @see ucx_stack_calloc
    1.21   */
    1.22 -#define ucx_stack_pusharr(st,n,es) ucx_stack_calloc(st,n,es)
    1.23 +#define ucx_stack_pusharr(stack,n,elsize) ucx_stack_calloc(stack,n,elssize)
    1.24  
    1.25  /**
    1.26   * Reallocates memory on the stack.

mercurial