From 88d8be06f3e5411db6faa59db12210b6079f7d21 Mon Sep 17 00:00:00 2001 From: Hampus Date: Tue, 14 Dec 2021 00:01:35 +0100 Subject: refactor: restructure project --- position_stack.h | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 position_stack.h (limited to 'position_stack.h') diff --git a/position_stack.h b/position_stack.h deleted file mode 100644 index fe93e8c..0000000 --- a/position_stack.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef POSITION_STACK_H -#define POSITION_STACK_H - -#define STACK_ERR_OVERFLOW 0xFFF01 -#define STACK_ERR_UNDERFLOW 0xFFF02 - -struct Position -{ - int x; - int y; -}; - -struct PositionStack -{ - int max_size; - int top; - struct Position *items; -}; - -struct PositionStack *create_pos_stack(int capacity); - -void pos_stack_push(struct PositionStack *stack_pt, struct Position pos); - -struct Position pos_stack_peek(struct PositionStack *stack_pt); - -struct Position pos_stack_pop(struct PositionStack *stack_pt); - -#endif \ No newline at end of file -- cgit v1.2.3-18-g5258