diff options
Diffstat (limited to 'engines/glk/alan2/stack.cpp')
| -rw-r--r-- | engines/glk/alan2/stack.cpp | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/engines/glk/alan2/stack.cpp b/engines/glk/alan2/stack.cpp index ccce1475d1..98423f02cd 100644 --- a/engines/glk/alan2/stack.cpp +++ b/engines/glk/alan2/stack.cpp @@ -36,37 +36,19 @@ static Aptr stack[STACKSIZE]; static int stackp = 0; -#ifdef _PROTOTYPES_ -void push(Aptr i) -#else -void push(i) - Aptr i; -#endif -{ +void push(Aptr i) { if (stackp == STACKSIZE) syserr("Out of stack space."); stack[stackp++] = i; } - -#ifdef _PROTOTYPES_ -Aptr pop(void) -#else -Aptr pop() -#endif -{ +Aptr pop() { if (stackp == 0) syserr("Stack underflow."); return(stack[--stackp]); } - -#ifdef _PROTOTYPES_ -Aptr top(void) -#else -Aptr top() -#endif -{ +Aptr top() { return(stack[stackp-1]); } |
