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

pidgeot at users.sourceforge.net pidgeot at users.sourceforge.net
Wed Aug 4 14:18:39 CEST 2010


Revision: 51732
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51732&view=rev
Author:   pidgeot
Date:     2010-08-04 12:18:38 +0000 (Wed, 04 Aug 2010)

Log Message:
-----------
Add missing file

Added Paths:
-----------
    tools/branches/gsoc2010-decompiler/decompiler/graph.cpp

Added: tools/branches/gsoc2010-decompiler/decompiler/graph.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/graph.cpp	                        (rev 0)
+++ tools/branches/gsoc2010-decompiler/decompiler/graph.cpp	2010-08-04 12:18:38 UTC (rev 51732)
@@ -0,0 +1,33 @@
+/* ScummVM Tools
+ * Copyright (C) 2010 The ScummVM project
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#include "graph.h"
+#include "engine.h"
+
+void GraphProperties::operator()(std::ostream& out) const {
+	out << "node [shape=record]" << std::endl;
+	for (FuncMap::iterator fn = _engine->_functions.begin(); fn != _engine->_functions.end(); ++fn) {
+		int index = (boost::get(boost::vertex_index, _g, fn->second._v));
+		out << "XXX" << index << " [shape=none, label=\"\", height=0]" << std::endl;
+		out << "XXX" << index << " -> " << index << std::endl;
+	}
+}


Property changes on: tools/branches/gsoc2010-decompiler/decompiler/graph.cpp
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Date Rev Author URL Id
Added: svn:eol-style
   + native


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