aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem/wmem_stack.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-07-21 21:13:30 +0000
committerEvan Huus <eapache@gmail.com>2013-07-21 21:13:30 +0000
commit037fc022dacea10c13289bc5eb16bf8a52bf984e (patch)
tree1c9208e9f61fc1debb1a6b3609a6aeff2182af99 /epan/wmem/wmem_stack.h
parent9e1b53539ab34e03a85c06d4bbc8047c9f0202d4 (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.h4
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)