* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@3690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2003-04-17 05:41:27 +00:00
Родитель 457e29ad14
Коммит e07677d308
3 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,10 @@
Thu Apr 17 14:39:23 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/dbm/dbm.c (each_pair): add prototype to avoid VC++ warnings.
* ext/readline/readline.c (Init_readline): follow readline 4.2
prototype.
Thu Apr 17 14:22:36 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* parse.y (cond0): warn only range literals whose both side are

Просмотреть файл

@ -405,6 +405,8 @@ fdbm_invert(obj)
return hash;
}
static VALUE each_pair _((VALUE));
static VALUE
each_pair(obj)
VALUE obj;

Просмотреть файл

@ -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();
}