1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
parent 787c3ead18
commit 4134a542ba
3 changed files with 11 additions and 4 deletions

View file

@ -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> 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. * dir.c (do_stat, do_lstat, do_opendir): should not warn ENOTDIR.

View file

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

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0" #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_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20070424 #define RUBY_RELEASE_CODE 20070425
#define RUBY_PATCHLEVEL 0 #define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0 #define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 4 #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_version[];
RUBY_EXTERN const char ruby_release_date[]; RUBY_EXTERN const char ruby_release_date[];