From 5041748e650b3a2da73ae6128c83f88698d38dcf Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Wed, 8 Aug 2001 14:47:38 +0000 Subject: [PATCH] should work with readline 4.1 again --- ginsh/ginsh_parser.yy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ginsh/ginsh_parser.yy b/ginsh/ginsh_parser.yy index f2cfc769..6020efbc 100644 --- a/ginsh/ginsh_parser.yy +++ b/ginsh/ginsh_parser.yy @@ -766,7 +766,7 @@ static char **fcn_completion(const char *text, int start, int end) rl_basic_word_break_characters = orig_basic_word_break_characters; rl_completer_word_break_characters = rl_basic_word_break_characters; #if (GINAC_RL_VERSION_MAJOR < 4) || (GINAC_RL_VERSION_MAJOR == 4 && GINAC_RL_VERSION_MINOR < 2) - return completion_matches(text, (CPFunction *)filename_completion_function); + return completion_matches(const_cast(text), (CPFunction *)filename_completion_function); #else return rl_completion_matches(text, rl_filename_completion_function); #endif @@ -776,7 +776,7 @@ static char **fcn_completion(const char *text, int start, int end) rl_basic_word_break_characters = " \t\n\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~"; rl_completer_word_break_characters = rl_basic_word_break_characters; #if (GINAC_RL_VERSION_MAJOR < 4) || (GINAC_RL_VERSION_MAJOR == 4 && GINAC_RL_VERSION_MINOR < 2) - return completion_matches(text, (CPFunction *)fcn_generator); + return completion_matches(const_cast(text), (CPFunction *)fcn_generator); #else return rl_completion_matches(text, fcn_generator); #endif -- 2.44.0