aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan2/stack.cpp
diff options
context:
space:
mode:
authordreammaster2019-06-22 03:43:17 +0100
committerPaul Gilbert2019-06-22 14:40:50 -0700
commit2450df501c152249fe1002a7dee70642563d40a3 (patch)
tree226adf311a755ca71d2c18317199a74b2c130864 /engines/glk/alan2/stack.cpp
parenta3fa9d12a94494f86134f56df6c064d7e48e8580 (diff)
downloadscummvm-rg350-2450df501c152249fe1002a7dee70642563d40a3.tar.gz
scummvm-rg350-2450df501c152249fe1002a7dee70642563d40a3.tar.bz2
scummvm-rg350-2450df501c152249fe1002a7dee70642563d40a3.zip
GLK: ALAN2: astyle formatting
Diffstat (limited to 'engines/glk/alan2/stack.cpp')
-rw-r--r--engines/glk/alan2/stack.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/glk/alan2/stack.cpp b/engines/glk/alan2/stack.cpp
index 98423f02cd..6695fedf07 100644
--- a/engines/glk/alan2/stack.cpp
+++ b/engines/glk/alan2/stack.cpp
@@ -37,19 +37,19 @@ static int stackp = 0;
void push(Aptr i) {
- if (stackp == STACKSIZE)
- syserr("Out of stack space.");
- stack[stackp++] = i;
+ if (stackp == STACKSIZE)
+ syserr("Out of stack space.");
+ stack[stackp++] = i;
}
Aptr pop() {
- if (stackp == 0)
- syserr("Stack underflow.");
- return(stack[--stackp]);
+ if (stackp == 0)
+ syserr("Stack underflow.");
+ return (stack[--stackp]);
}
Aptr top() {
- return(stack[stackp-1]);
+ return (stack[stackp - 1]);
}
} // End of namespace Alan2