2013-09-19 21:51:49 +00:00
|
|
|
#ifndef ZMAP_STACK_H
|
|
|
|
#define ZMAP_STACK_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
struct stack;
|
|
|
|
typedef struct stack stack_t;
|
|
|
|
|
|
|
|
stack_t* alloc_stack(size_t size);
|
|
|
|
void free_stack(stack_t* stack);
|
|
|
|
|
2013-10-11 21:10:20 +00:00
|
|
|
void push(stack_t* stack, void* elt);
|
|
|
|
void* pop(stack_t* stack);
|
2013-09-19 21:51:49 +00:00
|
|
|
|
|
|
|
#endif /* ZMAP_STACK_H */
|