diff options
author | Evan Huus <eapache@gmail.com> | 2013-12-24 03:39:19 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-12-24 03:39:19 +0000 |
commit | 18f94609d890abebedc91fc2f7b2c6a963d3c022 (patch) | |
tree | c60b720197b4f534065670a4e6147946db0f49e0 /epan/emem.h | |
parent | 7151a4d99e615664158543d7caf8cadf7f82f069 (diff) |
Remove now-unused ephemeral stack code. And another one bites the dust...
svn path=/trunk/; revision=54436
Diffstat (limited to 'epan/emem.h')
-rw-r--r-- | epan/emem.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/epan/emem.h b/epan/emem.h index 4d10dcc1b6..34461ec73c 100644 --- a/epan/emem.h +++ b/epan/emem.h @@ -102,41 +102,6 @@ gchar** ep_strsplit(const gchar* string, const gchar* delimiter, int max_tokens) /** release all memory allocated in the previous packet dissection */ void ep_free_all(void); - -/** a stack implemented using ephemeral allocators */ - -typedef struct _ep_stack_frame_t** ep_stack_t; - -struct _ep_stack_frame_t { - void* payload; - struct _ep_stack_frame_t* below; - struct _ep_stack_frame_t* above; -}; - -/** - * creates an empty stack with a packet lifetime scope - */ -WS_DLL_PUBLIC -ep_stack_t ep_stack_new(void) G_GNUC_MALLOC; - -/** - * pushes item into stack, returns item - */ -WS_DLL_PUBLIC -void* ep_stack_push(ep_stack_t stack, void* item); - -/** - * pops an item from the stack - */ -WS_DLL_PUBLIC -void* ep_stack_pop(ep_stack_t stack); - -/** - * returns the item on top of the stack without popping it - */ -#define ep_stack_peek(stack) ((*(stack))->payload) - - /* Functions for handling memory allocation and garbage collection with * a capture lifetime scope. * These functions are used to allocate memory that will only remain persistent |