From: Christian Bauer Date: Wed, 8 Aug 2001 14:47:38 +0000 (+0000) Subject: should work with readline 4.1 again X-Git-Tag: release_0-9-3~16 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=5041748e650b3a2da73ae6128c83f88698d38dcf should work with readline 4.1 again --- 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