Commit 498f90fc authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Reinserted function pointer conversion for Cygwin (Bug 565893)


Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
Change-Id: Ic84c01eeb47d4d93559154d7d24a65b334501657
parent 6d55afc8
......@@ -221,8 +221,12 @@ void TTCN_Debugger_UI::init()
// read history from file, don't bother if it does not exist
read_history(ttcn3_history_filename);
// set our own command completion function
#ifdef WIN32
rl_completion_entry_function = (Function*)complete_command;
#else
rl_completion_entry_function = complete_command;
#endif
#endif
}
void TTCN_Debugger_UI::clean_up()
......
......@@ -372,7 +372,11 @@ int Cli::interactiveMode()
// Read history from file, don't bother if it does not exist!
read_history(ttcn3_history_filename);
// Set our own command completion function
#ifdef WIN32
rl_completion_entry_function = (Function*)completeCommand;
#else
rl_completion_entry_function = completeCommand;
#endif
// Override rl_getc() in order to detect shell mode
rl_getc_function = getcWithShellDetection;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment