diff options
author | Vladimir Menshakov | 2011-06-09 23:47:32 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:33:48 +0200 |
commit | d2688a520bf58bb5aef751ce7a331fc900532c98 (patch) | |
tree | b04db0ab76333a2856869eaa53dbc77ae6f0420e /devtools/tasmrecover | |
parent | 4cea3245fe90b7e09d5e55e8dbf598045b525b95 (diff) | |
download | scummvm-rg350-d2688a520bf58bb5aef751ce7a331fc900532c98.tar.gz scummvm-rg350-d2688a520bf58bb5aef751ce7a331fc900532c98.tar.bz2 scummvm-rg350-d2688a520bf58bb5aef751ce7a331fc900532c98.zip |
DREAMWEB: removed static from functions for now (allowing external usage)
Diffstat (limited to 'devtools/tasmrecover')
-rw-r--r-- | devtools/tasmrecover/tasm/cpp.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py index 36bc192219..f5f7057211 100644 --- a/devtools/tasmrecover/tasm/cpp.py +++ b/devtools/tasmrecover/tasm/cpp.py @@ -433,7 +433,7 @@ namespace %s { self.proc_addr.append((name, self.proc.offset)) self.body = str() - self.body += "static void %s(Context & context) {\n" %name; + self.body += "void %s(Context & context) {\n" %name; self.proc.optimize() self.unbounded = [] self.proc.visit(self, skip) @@ -502,9 +502,11 @@ namespace %s { self.__proc(name) self.write_stubs("_stubs.cpp", self.failed) done, failed = len(self.proc_done), len(self.failed) + for f in self.forwards: if f not in self.failed: - self.fd.write("static void %s(Context &context);\n" %f) + self.fd.write("void %s(Context &context);\n" %f) + self.fd.write("\n") self.fd.write("\n".join(self.translated)) self.fd.write("\n\n") |