From 64feef1b9ea72adf7ba32998e9dca7d507607498 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 2 Jan 2023 22:31:49 -0800 Subject: a lot of stuff. --- src/include/stack.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/include/stack.h (limited to 'src/include/stack.h') diff --git a/src/include/stack.h b/src/include/stack.h new file mode 100644 index 0000000..e8047c8 --- /dev/null +++ b/src/include/stack.h @@ -0,0 +1,16 @@ +#ifndef STACK_H +#define STACK_H +#include "./hash_table.h" +typedef struct { + hash_table_t **stack; + int cur; +} stack_t; + +stack_t *init_stack(int ht_size); + +void stack_push(stack_t *s, hash_table_t *h); + +hash_table_t *stack_peek(stack_t *s); + +hash_table_t *stack_pop(stack_t *s); +#endif -- cgit