From 5870635ba6694807adee8009b7b7b8517b6763d2 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 26 Jul 2009 07:07:35 +0000 Subject: [PATCH] Formatting. svn-id: r42792 --- gui/debugger.cpp | 10 +++++----- gui/debugger.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gui/debugger.cpp b/gui/debugger.cpp index a7dd9b24114..78ada04cd68 100644 --- a/gui/debugger.cpp +++ b/gui/debugger.cpp @@ -121,12 +121,13 @@ void Debugger::onFrame() { } #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 @@ bool Debugger::tabComplete(const char *input, Common::String &completion) const } #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, diff --git a/gui/debugger.h b/gui/debugger.h index 81a85a72436..07fdddb808e 100644 --- a/gui/debugger.h +++ b/gui/debugger.h @@ -123,7 +123,7 @@ private: 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 };