diff options
author | Johannes Schickel | 2009-07-26 07:07:35 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-07-26 07:07:35 +0000 |
commit | 5870635ba6694807adee8009b7b7b8517b6763d2 (patch) | |
tree | b4ae54cfed7eac773591877c4d0e7b5151595f55 | |
parent | dc3d0549ff31ed910fd7466620f0ee26bd0cf282 (diff) | |
download | scummvm-rg350-5870635ba6694807adee8009b7b7b8517b6763d2.tar.gz scummvm-rg350-5870635ba6694807adee8009b7b7b8517b6763d2.tar.bz2 scummvm-rg350-5870635ba6694807adee8009b7b7b8517b6763d2.zip |
Formatting.
svn-id: r42792
-rw-r--r-- | gui/debugger.cpp | 10 | ||||
-rw-r--r-- | gui/debugger.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp index a7dd9b2411..78ada04cd6 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 81a85a7243..07fdddb808 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 }; |