Formatting.

svn-id: r42792
This commit is contained in:
Johannes Schickel 2009-07-26 07:07:35 +00:00
parent dc3d0549ff
commit 5870635ba6
2 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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
};