removed dependency to stdint.h in stack header

Fri, 26 Feb 2016 16:22:20 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 26 Feb 2016 16:22:20 +0100
changeset 217
e056e4e0b08e
parent 216
dee5a88c4db7
child 218
b20d6088795c

removed dependency to stdint.h in stack header

ucx/stack.h file | annotate | diff | comparison | revisions
     1.1 --- a/ucx/stack.h	Fri Feb 26 16:00:18 2016 +0100
     1.2 +++ b/ucx/stack.h	Fri Feb 26 16:22:20 2016 +0100
     1.3 @@ -39,7 +39,6 @@
     1.4  #define	UCX_STACK_H
     1.5  
     1.6  #include "ucx.h"
     1.7 -#include <stdint.h>
     1.8  #include "allocator.h"
     1.9  
    1.10  #ifdef	__cplusplus
    1.11 @@ -179,7 +178,7 @@
    1.12   * @see ucx_stack_free
    1.13   * @see ucx_stack_popn
    1.14   */
    1.15 -#define ucx_stack_pop(stack, dest) ucx_stack_popn(stack, dest, SIZE_MAX)
    1.16 +#define ucx_stack_pop(stack, dest) ucx_stack_popn(stack, dest, (size_t)-1)
    1.17  
    1.18  /**
    1.19   * Removes the top most element from the stack and copies the content to <code>

mercurial