зеркало из https://github.com/github/ruby.git
* ext/readline/readline.c (Init_readline): use rl_catch_sigwinch only
when existing. * ext/readline/extconf.rb: check existance of rl_catch_sigwinch, and workaround for native Win32 readline port. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bc2df41365
Коммит
3d704802dd
|
@ -1,3 +1,11 @@
|
|||
Fri Jul 17 22:29:21 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/readline/readline.c (Init_readline): use rl_catch_sigwinch only
|
||||
when existing.
|
||||
|
||||
* ext/readline/extconf.rb: check existance of rl_catch_sigwinch, and
|
||||
workaround for native Win32 readline port.
|
||||
|
||||
Fri Jul 17 18:18:23 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* range.c (recursive_hash): extracted from range_hash. reject
|
||||
|
|
|
@ -65,6 +65,7 @@ have_readline_var("rl_line_buffer")
|
|||
have_readline_var("rl_point")
|
||||
# workaround for native windows.
|
||||
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_event_hook")
|
||||
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_catch_sigwinch")
|
||||
have_readline_func("rl_cleanup_after_signal")
|
||||
have_readline_func("rl_clear_signals")
|
||||
have_readline_func("rl_set_screen_size")
|
||||
|
|
|
@ -1452,7 +1452,9 @@ Init_readline()
|
|||
rl_event_hook = readline_event;
|
||||
#endif
|
||||
rl_catch_signals = 0;
|
||||
#ifdef HAVE_RL_CATCH_SIGWINCH
|
||||
rl_catch_sigwinch = 0;
|
||||
#endif
|
||||
#ifdef HAVE_RL_CLEAR_SIGNALS
|
||||
rl_clear_signals();
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче