зеркало из https://github.com/github/ruby.git
Tue Aug 17 07:50:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/readline/extconf.rb: check functions more. [ruby-core:31722] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
94fc95c8b0
Коммит
1572070fa0
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Aug 17 07:50:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/readline/extconf.rb: check functions more.
|
||||||
|
[ruby-core:31722]
|
||||||
|
|
||||||
Tue Aug 17 07:42:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Aug 17 07:42:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (str_make_independent_expand): set capacity properly. a
|
* string.c (str_make_independent_expand): set capacity properly. a
|
||||||
|
|
|
@ -52,6 +52,7 @@ else
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
have_readline_func("rl_getc")
|
||||||
have_readline_func("rl_getc_function")
|
have_readline_func("rl_getc_function")
|
||||||
have_readline_func("rl_filename_completion_function")
|
have_readline_func("rl_filename_completion_function")
|
||||||
have_readline_func("rl_username_completion_function")
|
have_readline_func("rl_username_completion_function")
|
||||||
|
@ -74,6 +75,7 @@ have_readline_var("rl_point")
|
||||||
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_catch_sigwinch")
|
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_catch_sigwinch")
|
||||||
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_catch_signals")
|
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_catch_signals")
|
||||||
have_readline_func("rl_cleanup_after_signal")
|
have_readline_func("rl_cleanup_after_signal")
|
||||||
|
have_readline_func("rl_free_line_state")
|
||||||
have_readline_func("rl_clear_signals")
|
have_readline_func("rl_clear_signals")
|
||||||
have_readline_func("rl_set_screen_size")
|
have_readline_func("rl_set_screen_size")
|
||||||
have_readline_func("rl_get_screen_size")
|
have_readline_func("rl_get_screen_size")
|
||||||
|
|
|
@ -108,8 +108,8 @@ static char **readline_attempted_completion_function(const char *text,
|
||||||
static VALUE readline_instream;
|
static VALUE readline_instream;
|
||||||
static ID id_getbyte;
|
static ID id_getbyte;
|
||||||
|
|
||||||
#ifdef HAVE_EDITLINE_READLINE_H
|
#ifndef HAVE_RL_GETC
|
||||||
extern int rl_getc(FILE *);
|
#define rl_getc(f) EOF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int readline_getc(FILE *);
|
static int readline_getc(FILE *);
|
||||||
|
@ -260,7 +260,9 @@ readline_readline(int argc, VALUE *argv, VALUE self)
|
||||||
if (status) {
|
if (status) {
|
||||||
#if defined HAVE_RL_CLEANUP_AFTER_SIGNAL
|
#if defined HAVE_RL_CLEANUP_AFTER_SIGNAL
|
||||||
/* restore terminal mode and signal handler*/
|
/* restore terminal mode and signal handler*/
|
||||||
|
#if defined HAVE_RL_FREE_LINE_STATE
|
||||||
rl_free_line_state();
|
rl_free_line_state();
|
||||||
|
#endif
|
||||||
rl_cleanup_after_signal();
|
rl_cleanup_after_signal();
|
||||||
#elif defined HAVE_RL_DEPREP_TERM_FUNCTION
|
#elif defined HAVE_RL_DEPREP_TERM_FUNCTION
|
||||||
/* restore terminal mode */
|
/* restore terminal mode */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче