jean-pierre charras d17cef95fd Add an other markdown to html converter (sundown), better to convert markdown.
The previous converter (maddy) is still available, during some time.
We therefore have the time to choose between them.
sundown is better to convert a md text, but is written to C
maddy has a few issues to convert a md text, but is written to C++
Both have no dependency.
2019-10-01 18:53:23 +02:00

32 lines
440 B
C

#ifndef STACK_H__
#define STACK_H__
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
struct stack
{
void** item;
size_t size;
size_t asize;
};
void stack_free( struct stack* );
int stack_grow( struct stack*, size_t );
int stack_init( struct stack*, size_t );
int stack_push( struct stack*, void* );
void* stack_pop( struct stack* );
void* stack_top( struct stack* );
#ifdef __cplusplus
}
#endif
#endif