8000 merge revision(s) r45225,r45240: [Backport #9578] · github/ruby@10f60e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 10f60e4

Browse files
committed
merge revision(s) r45225,r45240: [Backport ruby#9578]
* 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 ruby#9578] * ext/readline/extconf.rb (rl_hook_func_t): define as Function for very old readline versions. [ruby-core:61209] [Bug ruby#9578] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 65999c2 commit 10f60e4

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

ChangeLog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
Mon Mar 3 01:32:14 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* ext/readline/extconf.rb (rl_hook_func_t): define as Function for
4+
very old readline versions. [ruby-core:61209] [Bug #9578]
5+
6+
Mon Mar 3 01:32:14 2014 Tanaka Akira <akr@fsij.org>
7+
8+
* ext/readline/readline.c (Init_readline): Use rl_hook_func_t instead
9+
of Function to support readline-6.3. (rl_hook_func_t is available
10+
since readline-4.2.)
11+
Reported by Dmitry Medvinsky. [ruby-core:61141] [Bug #9578]
12+
113
Mon Mar 3 01:25:28 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
214

315
* eval.c (setup_exception): preserve errinfo across calling #to_s

ext/readline/extconf.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def readline.have_func(func)
1919
return super(func, headers)
2020
end
2121

22+
def readline.have_type(type)
23+
return super(type, headers)
24+
end
25+
2226
dir_config('curses')
2327
dir_config('ncurses')
2428
dir_config('termcap')
@@ -93,4 +97,8 @@ def readline.have_func(func)
9397
readline.have_func("clear_history")
9498
readline.have_func("rl_redisplay")
9599
readline.have_func("rl_insert_text")
100+
unless readline.have_type("rl_hook_func_t")
101+
$DEFS << "-Drl_hook_func_t=Function"
102+
end
103+
96104
create_makefile("readline")

ext/readline/readline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,7 @@ Init_readline()
18831883

18841884
rl_attempted_completion_function = readline_attempted_completion_function;
18851885
#if defined(HAVE_RL_PRE_INPUT_HOOK)
1886-
rl_pre_input_hook = (Function *)readline_pre_input_hook;
1886+
rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
18871887
#endif
18881888
#ifdef HAVE_RL_CATCH_SIGNALS
18891889
rl_catch_signals = 0;

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.0.0"
22
#define RUBY_RELEASE_DATE "2014-03-03"
3-
#define RUBY_PATCHLEVEL 455
3+
#define RUBY_PATCHLEVEL 456
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 3

0 commit comments

Comments
 (0)
0