#ifndef STACK_H__ #define STACK_H__ #include #ifdef __cplusplus extern "C" { #endif struct stack { void **item; size_t size; size_t asize; }; void redcarpet_stack_free(struct stack *); int redcarpet_stack_grow(struct stack *, size_t); int redcarpet_stack_init(struct stack *, size_t); int redcarpet_stack_push(struct stack *, void *); void *redcarpet_stack_pop(struct stack *); void *redcarpet_stack_top(struct stack *); #ifdef __cplusplus } #endif #endif