2021-02-01 22:06:37 +00:00
|
|
|
#ifndef LIBFLINT_STACK_H
|
|
|
|
#define LIBFLINT_STACK_H
|
|
|
|
|
2021-12-21 14:48:29 +00:00
|
|
|
#include "lflinkedlist.h"
|
2021-02-01 22:06:37 +00:00
|
|
|
|
|
|
|
#define Stack List
|
|
|
|
|
2021-02-01 22:27:01 +00:00
|
|
|
void stack_init(Stack* stack, void (*destroy)(void* data));
|
|
|
|
void stack_destroy(Stack* stack);
|
|
|
|
int stack_push(Stack* stack, void *data);
|
|
|
|
void *stack_peek(Stack *stack);
|
|
|
|
int stack_pop(Stack *stack, void **data);
|
2021-02-01 22:06:37 +00:00
|
|
|
|
|
|
|
#endif
|