ruby-changes:33146
From: akr <ko1@a...>
Date: Sat, 1 Mar 2014 16:19:12 +0900 (JST)
Subject: [ruby-changes:33146] akr:r45225 (trunk): * ext/readline/readline.c (Init_readline): Use rl_hook_func_t instead
akr 2014-03-01 16:19:08 +0900 (Sat, 01 Mar 2014) New Revision: 45225 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45225 Log: * ext/readline/readline.c (Init_readline): Use rl_hook_func_t instead of Function to support readline-6.3. (rl_hook_func_t is available since readline-4.2.) Reported by Dmitry Medvinsky. [ruby-core:61141] [Bug #9578] Modified files: trunk/ChangeLog trunk/ext/readline/readline.c Index: ChangeLog =================================================================== --- ChangeLog (revision 45224) +++ ChangeLog (revision 45225) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Mar 1 16:18:40 2014 Tanaka Akira <akr@f...> + + * ext/readline/readline.c (Init_readline): Use rl_hook_func_t instead + of Function to support readline-6.3. (rl_hook_func_t is available + since readline-4.2.) + Reported by Dmitry Medvinsky. [ruby-core:61141] [Bug #9578] + Sat Mar 1 16:05:58 2014 Eric Wong <e@8...> * gc.c (ruby_gc_set_params): fix building without RGenGC Index: ext/readline/readline.c =================================================================== --- ext/readline/readline.c (revision 45224) +++ ext/readline/readline.c (revision 45225) @@ -1974,7 +1974,7 @@ Init_readline() https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L1974 rl_attempted_completion_function = readline_attempted_completion_function; #if defined(HAVE_RL_PRE_INPUT_HOOK) - rl_pre_input_hook = (Function *)readline_pre_input_hook; + rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook; #endif #ifdef HAVE_RL_CATCH_SIGNALS rl_catch_signals = 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/