[Scummvm-cvs-logs] SF.net SVN: scummvm: [23538] tools/trunk/dekyra_v1.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Thu Jul 20 22:52:34 CEST 2006
Revision: 23538
http://svn.sourceforge.net/scummvm/?rev=23538&view=rev
Author: lordhoto
Date: 2006-07-19 20:05:20 -0700 (Wed, 19 Jul 2006)
Log Message:
-----------
- c1_setRetAndJmp has no arguments
Modified Paths:
--------------
tools/trunk/dekyra_v1.cpp
Modified: tools/trunk/dekyra_v1.cpp
===================================================================
--- tools/trunk/dekyra_v1.cpp 2006-07-19 17:09:26 UTC (rev 23537)
+++ tools/trunk/dekyra_v1.cpp 2006-07-20 03:05:20 UTC (rev 23538)
@@ -246,7 +246,7 @@
}
void c1_setRetAndJmp(ScriptData *script, int argument) {
- fprintf(outputFile, "c1_setRetAndJmp %d\n", argument);
+ fprintf(outputFile, "c1_setRetAndJmp\n");
}
void setupCommandsV1(Script *myScript) {
@@ -328,32 +328,6 @@
}
}
-void c1_traceSetRetAndJmp(ScriptData *script, int argument) {
- Function *call = script->getFunction(((uint)argument) << 1);
- if (call) {
- for (int i = 0; i < call->refs; ++i) {
- if (call->refOffs[i] == script->curOffset)
- return;
- }
-
- if (call->refs < MAX_REFS) {
- call->refOffs[call->refs++] = script->curOffset;
- } else {
- warning("losing ref");
- }
- } else {
- if (script->numFunctions < MAX_FUNCTIONS) {
- call = &script->functions[script->numFunctions];
- call->id = -1;
- call->startOffset = ((uint)argument) << 1;
- call->refOffs[call->refs++] = script->curOffset;
- ++script->numFunctions;
- } else {
- warning("losing function");
- }
- }
-}
-
void setupTraceCommandsV1(Script *myScript) {
static CommandProc commands[] = {
&c1_traceJumpTo,
@@ -374,7 +348,7 @@
&c1_traceIfNotJmp,
0,
0,
- &c1_traceSetRetAndJmp
+ 0
};
myScript->setCommands(commands, ARRAYSIZE(commands));
More information about the Scummvm-git-logs
mailing list