diff options
author | Evan Huus <eapache@gmail.com> | 2013-07-21 21:13:30 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-07-21 21:13:30 +0000 |
commit | 037fc022dacea10c13289bc5eb16bf8a52bf984e (patch) | |
tree | 1c9208e9f61fc1debb1a6b3609a6aeff2182af99 /epan/wmem/wmem_stack.h | |
parent | 9e1b53539ab34e03a85c06d4bbc8047c9f0202d4 (diff) |
Add wmem queue 'implementation' by wrapping wmem_list and wmem_stack.
Also a bit of misc. refactoring of the stack while I was there, and doc tweaks.
svn path=/trunk/; revision=50769
Diffstat (limited to 'epan/wmem/wmem_stack.h')
-rw-r--r-- | epan/wmem/wmem_stack.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/wmem/wmem_stack.h b/epan/wmem/wmem_stack.h index 569ae9455a..e2435c9b96 100644 --- a/epan/wmem/wmem_stack.h +++ b/epan/wmem/wmem_stack.h @@ -58,9 +58,7 @@ WS_DLL_PUBLIC void * wmem_stack_pop(wmem_stack_t *stack); -WS_DLL_PUBLIC -void -wmem_stack_push(wmem_stack_t *stack, void *data); +#define wmem_stack_push(STACK, DATA) wmem_list_prepend((STACK), (DATA)) #define wmem_stack_new(ALLOCATOR) wmem_list_new(ALLOCATOR) |