[Scummvm-cvs-logs] SF.net SVN: scummvm:[51141] tools/branches/gsoc2010-decompiler/decompiler

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu Jul 22 14:42:36 CEST 2010


Revision: 51141
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51141&view=rev
Author:   fingolfin
Date:     2010-07-22 12:42:35 +0000 (Thu, 22 Jul 2010)

Log Message:
-----------
code formatting

Modified Paths:
--------------
    tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp
    tools/branches/gsoc2010-decompiler/decompiler/scummv6/codegen.cpp

Modified: tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp	2010-07-22 12:38:48 UTC (rev 51140)
+++ tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp	2010-07-22 12:42:35 UTC (rev 51141)
@@ -180,8 +180,7 @@
 					std::stringstream s;
 					switch (_curGroup->_type) {
 					case kIfCond:
-						if (_curGroup->_startElse)
-						{
+						if (_curGroup->_startElse) {
 							_indentLevel--;
 							s << "} else ";
 						}

Modified: tools/branches/gsoc2010-decompiler/decompiler/scummv6/codegen.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/scummv6/codegen.cpp	2010-07-22 12:38:48 UTC (rev 51140)
+++ tools/branches/gsoc2010-decompiler/decompiler/scummv6/codegen.cpp	2010-07-22 12:42:35 UTC (rev 51141)
@@ -37,8 +37,10 @@
 void Scumm::v6::CodeGenerator::processInst(const Instruction inst) {
 	// TODO
 
-	// This is just to keep some order in this code and have related opcodes near each other.
-	// It's not strictly necessary, because we can just look directly at the opcode, but this should be easier to read.
+	// This is just to keep some order in this code and have related
+	// opcodes near each other. It's not strictly necessary, because we
+	// can just look directly at the opcode, but this should be easier
+	// to read.
 	switch (inst._type) {
 	case kLoad:
 		switch (inst._opcode) {
@@ -416,7 +418,7 @@
 
 std::string Scumm::v6::CodeGenerator::decodeArrayName(uint16 arrID) {
 	std::stringstream s;
-	const char* varName;
+	const char *varName;
 	if (!(arrID & 0xF000) && (varName = getVarName(arrID & 0xFFF)) != NULL)
 		return varName;
 	s << boost::format("array%d") % arrID;


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