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

Added new Makefile switch for older versions of libedit (Bug 565893)


Signed-off-by: default avatarBotond Baranyi <botond.baranyi@ericsson.com>
Change-Id: If390fe6a5b331513b4b2316e97d3221360659a6d
Signed-off-by: default avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent d3837f4a
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,10 @@ COVERAGE := no
# Set it to 'no' to use a simplified debugger UI.
ADVANCED_DEBUGGER_UI := no
# Should be set to 'yes' if the version of the 'editline' library is 2.0.53 or older
# (i.e. 'readline.h' v1.34 or older).
OLD_LIBEDIT := no
# Your platform. Allowed values: SOLARIS, SOLARIS8, LINUX, FREEBSD,
# WIN32. Decided automagically if not defined (recommended).
# PLATFORM :=
......@@ -239,6 +243,10 @@ ifeq ($(ADVANCED_DEBUGGER_UI), yes)
CPPFLAGS += -DADVANCED_DEBUGGER_UI
endif
ifeq ($(OLD_LIBEDIT), yes)
CPPFLAGS += -DOLD_LIBEDIT
endif
# Directory which contains the code for POSIX regular expression handling.
# It is needed on platforms where the system's libc does not support POSIX
# regexps. This is the case for Mingw.
......
......@@ -221,7 +221,7 @@ 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
#ifdef OLD_LIBEDIT
rl_completion_entry_function = (Function*)complete_command;
#else
rl_completion_entry_function = complete_command;
......
......@@ -372,7 +372,7 @@ 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
#ifdef OLD_LIBEDIT
rl_completion_entry_function = (Function*)completeCommand;
#else
rl_completion_entry_function = completeCommand;
......
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