1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
usa 2009-07-17 13:31:00 +00:00
parent bc2df41365
commit 3d704802dd
3 changed files with 11 additions and 0 deletions

View file

@ -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

View file

@ -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")

View file

@ -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