diff options
author | Paul Gilbert | 2019-06-20 22:20:59 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-22 14:40:50 -0700 |
commit | 8f75589971d70b2ca749d5389a332e6761213a5b (patch) | |
tree | 4ddb7bba2a1040c5b563b89b75ae823182c08a91 /engines/glk/alan2/stack.cpp | |
parent | ad1cecaeac5d54b0973d6c7edce8181cb965ff68 (diff) | |
download | scummvm-rg350-8f75589971d70b2ca749d5389a332e6761213a5b.tar.gz scummvm-rg350-8f75589971d70b2ca749d5389a332e6761213a5b.tar.bz2 scummvm-rg350-8f75589971d70b2ca749d5389a332e6761213a5b.zip |
GLK: ALAN2: Remove all prototype ifdef blocks
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]); } |