* thread.c (alloc_event_fook, rb_thread_remove_event_hook): should

return value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-04-25 01:32:24 +00:00
Родитель 787c3ead18
Коммит 4134a542ba
3 изменённых файлов: 11 добавлений и 4 удалений

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

@ -1,3 +1,8 @@
Wed Apr 25 10:33:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (alloc_event_fook, rb_thread_remove_event_hook): should
return value.
Tue Apr 24 09:33:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (do_stat, do_lstat, do_opendir): should not warn ENOTDIR.

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

@ -2396,6 +2396,7 @@ alloc_event_fook(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data)
hook->func = func;
hook->flag = events;
hook->data = data;
return hook;
}
static void
@ -2478,8 +2479,9 @@ remove_event_hook(rb_event_hook_t **root, rb_event_hook_func_t func)
int
rb_thread_remove_event_hook(rb_thread_t *th, rb_event_hook_func_t func)
{
remove_event_hook(&th->event_hooks, func);
int ret = remove_event_hook(&th->event_hooks, func);
thread_reset_event_flags(th);
return ret;
}
int

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

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2007-04-24"
#define RUBY_RELEASE_DATE "2007-04-25"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20070424
#define RUBY_RELEASE_CODE 20070425
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 4
#define RUBY_RELEASE_DAY 24
#define RUBY_RELEASE_DAY 25
RUBY_EXTERN const char ruby_version[];
RUBY_EXTERN const char ruby_release_date[];