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 /gui/debugger.cpp | |
parent | dc3d0549ff31ed910fd7466620f0ee26bd0cf282 (diff) | |
download | scummvm-rg350-5870635ba6694807adee8009b7b7b8517b6763d2.tar.gz scummvm-rg350-5870635ba6694807adee8009b7b7b8517b6763d2.tar.bz2 scummvm-rg350-5870635ba6694807adee8009b7b7b8517b6763d2.zip |
Formatting.
svn-id: r42792
Diffstat (limited to 'gui/debugger.cpp')
-rw-r--r-- | gui/debugger.cpp | 10 |
1 files changed, 5 insertions, 5 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, |