diff options
author | HampusM <hampus@hampusmat.com> | 2022-01-09 21:47:23 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-01-09 21:47:23 +0100 |
commit | 8ceb79db1d0687bba005cef4a77bb889bf7ec3c3 (patch) | |
tree | b7c13359f652506d60c8556ea386ae8d50bfc5bc /src/position_stack.h | |
parent | 097aa95c1f0cb159e7d9d0a3edf9284c421ee298 (diff) |
refactor: rewrite to c++
Diffstat (limited to 'src/position_stack.h')
-rw-r--r-- | src/position_stack.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/position_stack.h b/src/position_stack.h deleted file mode 100644 index 674da23..0000000 --- a/src/position_stack.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef POSITION_STACK_H -#define POSITION_STACK_H - -#include "position.h" - -#define STACK_ERR_OVERFLOW 0xFFF01 -#define STACK_ERR_UNDERFLOW 0xFFF02 - -typedef struct PositionStack -{ - unsigned int capacity; - int top; - Position *items; -} PositionStack; - -PositionStack *pos_stack_create(unsigned int capacity); - -void pos_stack_destroy(PositionStack *pos_stack); - -void pos_stack_push(PositionStack *pos_stack, Position pos); - -Position pos_stack_peek(PositionStack *pos_stack); - -Position pos_stack_pop(PositionStack *pos_stack); - -#endif |