From 2af9351db3aa97da9b0d3f23d53a593bc96c8a8e Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 2 Feb 2018 18:33:22 -0500 Subject: does potts now, no external libraries --- lib/stack.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lib/stack.h (limited to 'lib/stack.h') diff --git a/lib/stack.h b/lib/stack.h new file mode 100644 index 0000000..a354ab5 --- /dev/null +++ b/lib/stack.h @@ -0,0 +1,26 @@ + +#pragma once + +#include +#include +#include +#include + +#include "types.h" + +typedef struct ll_tag { + v_t x; + struct ll_tag *next; +} ll_t; + +typedef struct dll_tag { + double x; + struct dll_tag *next; +} dll_t; + +void stack_push(ll_t **q, v_t x); +void stack_push_d(dll_t **q, double x); + +v_t stack_pop(ll_t **q); +double stack_pop_d(dll_t **q); + -- cgit v1.2.3-70-g09d2