[Scummvm-cvs-logs] SF.net SVN: scummvm:[42792] scummvm/trunk/gui

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Jul 26 09:07:35 CEST 2009


Revision: 42792
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42792&view=rev
Author:   lordhoto
Date:     2009-07-26 07:07:35 +0000 (Sun, 26 Jul 2009)

Log Message:
-----------
Formatting.

Modified Paths:
--------------
    scummvm/trunk/gui/debugger.cpp
    scummvm/trunk/gui/debugger.h

Modified: scummvm/trunk/gui/debugger.cpp
===================================================================
--- scummvm/trunk/gui/debugger.cpp	2009-07-26 00:31:28 UTC (rev 42791)
+++ scummvm/trunk/gui/debugger.cpp	2009-07-26 07:07:35 UTC (rev 42792)
@@ -121,12 +121,13 @@
 }
 
 #if defined(USE_TEXT_CONSOLE) && defined(USE_READLINE)
-static Debugger* g_readline_debugger;
+namespace {
+Debugger *g_readline_debugger;
 
-char * readline_completionFunction (const char *text, int state)
-{
+char *readline_completionFunction(const char *text, int state) {
 	return g_readline_debugger->readlineComplete(text, state);
 }
+} // end of anonymous namespace
 #endif
 
 // Main Debugger Loop
@@ -358,8 +359,7 @@
 }
 
 #if defined(USE_TEXT_CONSOLE) && defined(USE_READLINE)
-char* Debugger::readlineComplete(const char *input, int state)
-{
+char *Debugger::readlineComplete(const char *input, int state) {
 	static CommandsMap::const_iterator iter;
 
 	// We assume that _cmds isn't changed between calls to readlineComplete,

Modified: scummvm/trunk/gui/debugger.h
===================================================================
--- scummvm/trunk/gui/debugger.h	2009-07-26 00:31:28 UTC (rev 42791)
+++ scummvm/trunk/gui/debugger.h	2009-07-26 07:07:35 UTC (rev 42792)
@@ -123,7 +123,7 @@
 	static bool debuggerCompletionCallback(GUI::ConsoleDialog *console, const char *input, Common::String &completion, void *refCon);
 #elif defined(USE_READLINE)
 public:
-	char* readlineComplete(const char *input, int state);
+	char *readlineComplete(const char *input, int state);
 #endif
 
 };


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