]> www.ginac.de Git - ginac.git/commitdiff
should work with readline 4.1 again
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 8 Aug 2001 14:47:38 +0000 (14:47 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 8 Aug 2001 14:47:38 +0000 (14:47 +0000)
ginsh/ginsh_parser.yy

index f2cfc769103a4a47f5e818a523d0e758d4ee2d99..6020efbcb4575233eba5c517771434d526339fb6 100644 (file)
@@ -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<char *>(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<char *>(text), (CPFunction *)fcn_generator);
 #else
                return rl_completion_matches(text, fcn_generator);
 #endif