[Scummvm-cvs-logs] SF.net SVN: scummvm:[40490] scummvm/trunk/engines/kyra/script.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue May 12 16:43:57 CEST 2009
Revision: 40490
http://scummvm.svn.sourceforge.net/scummvm/?rev=40490&view=rev
Author: lordhoto
Date: 2009-05-12 14:43:57 +0000 (Tue, 12 May 2009)
Log Message:
-----------
Formatting.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/script.cpp
Modified: scummvm/trunk/engines/kyra/script.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script.cpp 2009-05-12 14:35:50 UTC (rev 40489)
+++ scummvm/trunk/engines/kyra/script.cpp 2009-05-12 14:43:57 UTC (rev 40490)
@@ -215,15 +215,15 @@
#pragma mark - Command implementations
#pragma mark -
-void EMCInterpreter::op_jmp(EMCState* script) {
+void EMCInterpreter::op_jmp(EMCState *script) {
script->ip = script->dataPtr->data + _parameter;
}
-void EMCInterpreter::op_setRetValue(EMCState* script) {
+void EMCInterpreter::op_setRetValue(EMCState *script) {
script->retValue = _parameter;
}
-void EMCInterpreter::op_pushRetOrPos(EMCState* script) {
+void EMCInterpreter::op_pushRetOrPos(EMCState *script) {
switch (_parameter) {
case 0:
script->stack[--script->sp] = script->retValue;
@@ -241,23 +241,23 @@
}
}
-void EMCInterpreter::op_push(EMCState* script) {
+void EMCInterpreter::op_push(EMCState *script) {
script->stack[--script->sp] = _parameter;
}
-void EMCInterpreter::op_pushReg(EMCState* script) {
+void EMCInterpreter::op_pushReg(EMCState *script) {
script->stack[--script->sp] = script->regs[_parameter];
}
-void EMCInterpreter::op_pushBPNeg(EMCState* script) {
+void EMCInterpreter::op_pushBPNeg(EMCState *script) {
script->stack[--script->sp] = script->stack[(-(int32)(_parameter + 2)) + script->bp];
}
-void EMCInterpreter::op_pushBPAdd(EMCState* script) {
+void EMCInterpreter::op_pushBPAdd(EMCState *script) {
script->stack[--script->sp] = script->stack[(_parameter - 1) + script->bp];
}
-void EMCInterpreter::op_popRetOrPos(EMCState* script) {
+void EMCInterpreter::op_popRetOrPos(EMCState *script) {
switch (_parameter) {
case 0:
script->retValue = script->stack[script->sp++];
@@ -278,27 +278,27 @@
}
}
-void EMCInterpreter::op_popReg(EMCState* script) {
+void EMCInterpreter::op_popReg(EMCState *script) {
script->regs[_parameter] = script->stack[script->sp++];
}
-void EMCInterpreter::op_popBPNeg(EMCState* script) {
+void EMCInterpreter::op_popBPNeg(EMCState *script) {
script->stack[(-(int32)(_parameter + 2)) + script->bp] = script->stack[script->sp++];
}
-void EMCInterpreter::op_popBPAdd(EMCState* script) {
+void EMCInterpreter::op_popBPAdd(EMCState *script) {
script->stack[(_parameter - 1) + script->bp] = script->stack[script->sp++];
}
-void EMCInterpreter::op_addSP(EMCState* script) {
+void EMCInterpreter::op_addSP(EMCState *script) {
script->sp += _parameter;
}
-void EMCInterpreter::op_subSP(EMCState* script) {
+void EMCInterpreter::op_subSP(EMCState *script) {
script->sp -= _parameter;
}
-void EMCInterpreter::op_sysCall(EMCState* script) {
+void EMCInterpreter::op_sysCall(EMCState *script) {
const uint8 id = _parameter;
assert(script->dataPtr->sysFuncs);
@@ -312,14 +312,14 @@
}
}
-void EMCInterpreter::op_ifNotJmp(EMCState* script) {
+void EMCInterpreter::op_ifNotJmp(EMCState *script) {
if (!script->stack[script->sp++]) {
_parameter &= 0x7FFF;
script->ip = script->dataPtr->data + _parameter;
}
}
-void EMCInterpreter::op_negate(EMCState* script) {
+void EMCInterpreter::op_negate(EMCState *script) {
int16 value = script->stack[script->sp];
switch (_parameter) {
case 0:
@@ -344,7 +344,7 @@
}
}
-void EMCInterpreter::op_eval(EMCState* script) {
+void EMCInterpreter::op_eval(EMCState *script) {
int16 ret = 0;
bool error = false;
@@ -436,7 +436,7 @@
script->stack[--script->sp] = ret;
}
-void EMCInterpreter::op_setRetAndJmp(EMCState* script) {
+void EMCInterpreter::op_setRetAndJmp(EMCState *script) {
if (script->sp >= EMCState::kStackLastEntry) {
script->ip = 0;
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list