From 252df6c74c7be9b82aa89cdb4972f91c87b06184 Mon Sep 17 00:00:00 2001 From: Comrade Martin Miroslavovich Michalec Date: Mon, 27 Nov 2023 00:34:11 +0300 Subject: publish --- src/stack.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/stack.h (limited to 'src/stack.h') diff --git a/src/stack.h b/src/stack.h new file mode 100644 index 0000000..d30f81b --- /dev/null +++ b/src/stack.h @@ -0,0 +1,17 @@ +#ifndef STACK_H +#define STACK_H + +#include "utils.h" + +void stack_init (int alignment_mask); +void stack_free (void); +int stack_count_u32 (void); +void stack_push_u32 (u32 num); +u32 stack_pop_u32 (void); +void stack_discard_u32 (void); +void stack_clear (void); +u32 stack_top_u32 (void); +void *stack_base (void); +void *stack_end (void); + +#endif -- cgit v1.3.1