diff options
Diffstat (limited to 'stack.h')
| -rw-r--r-- | stack.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ #ifndef STACK_H_ #define STACK_H_ +#include <stddef.h> #include "structs.h" /* So, the implementation of the stack is array-based, for hyperspeed. @@ -15,8 +16,8 @@ struct PositionStack_s { typedef struct PositionStack_s PositionStack; PositionStack ps_new(void); /* Returns an empty position stack */ -int ps_push(PositionStack ps, Position pos); /* Returns -1 if overflow */ -Position ps_pop(PositionStack ps); +int ps_push(PositionStack *ps, Position pos); /* Returns -1 if overflow */ +Position ps_pop(PositionStack *ps); Position ps_peek(PositionStack ps); #endif /* STACK_H_ */ |
