diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-17 05:41:27 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-17 05:41:27 +0000 |
| commit | 64f078bc2086775d072db9ab67bc317f6acee7a1 (patch) | |
| tree | f371f93ec4080b69b6119ba69dfd30f7b0799e6f /ext/readline | |
| parent | d480dde0f2072756f2dbda1038881458d415a882 (diff) | |
| download | ruby-64f078bc2086775d072db9ab67bc317f6acee7a1.tar.gz ruby-64f078bc2086775d072db9ab67bc317f6acee7a1.tar.xz ruby-64f078bc2086775d072db9ab67bc317f6acee7a1.zip | |
* ext/dbm/dbm.c (each_pair): add prototype to avoid VC++ warnings.
* ext/readline/readline.c (Init_readline): follow readline 4.2
prototype.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
| -rw-r--r-- | ext/readline/readline.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 8446a8cb4..b72da75e7 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -729,8 +729,14 @@ Init_readline() rb_str_new2("2.0 or before version")); #endif +#if defined READLINE_42_OR_LATER + rl_attempted_completion_function + = (rl_completion_func_t *)readline_attempted_completion_function; + rl_event_hook = (rl_hook_func_t *)readline_event; +#else rl_attempted_completion_function = (CPPFunction *) readline_attempted_completion_function; rl_event_hook = readline_event; +#endif rl_clear_signals(); } |
