Skip to content
Snippets Groups Projects
Commit 498f90fc authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Reinserted function pointer conversion for Cygwin (Bug 565893)


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