ucx/stack.h

changeset 217
e056e4e0b08e
parent 192
1e51558b9d09
child 225
a1a068c2c4ef
equal deleted inserted replaced
216:dee5a88c4db7 217:e056e4e0b08e
37 37
38 #ifndef UCX_STACK_H 38 #ifndef UCX_STACK_H
39 #define UCX_STACK_H 39 #define UCX_STACK_H
40 40
41 #include "ucx.h" 41 #include "ucx.h"
42 #include <stdint.h>
43 #include "allocator.h" 42 #include "allocator.h"
44 43
45 #ifdef __cplusplus 44 #ifdef __cplusplus
46 extern "C" { 45 extern "C" {
47 #endif 46 #endif
177 * @param dest the location where the contents shall be written to, or <code> 176 * @param dest the location where the contents shall be written to, or <code>
178 * NULL</code>, if the element shall only be removed. 177 * NULL</code>, if the element shall only be removed.
179 * @see ucx_stack_free 178 * @see ucx_stack_free
180 * @see ucx_stack_popn 179 * @see ucx_stack_popn
181 */ 180 */
182 #define ucx_stack_pop(stack, dest) ucx_stack_popn(stack, dest, SIZE_MAX) 181 #define ucx_stack_pop(stack, dest) ucx_stack_popn(stack, dest, (size_t)-1)
183 182
184 /** 183 /**
185 * Removes the top most element from the stack and copies the content to <code> 184 * Removes the top most element from the stack and copies the content to <code>
186 * dest</code>. 185 * dest</code>.
187 * 186 *

mercurial