diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-25 01:32:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-25 01:32:24 +0000 |
commit | 4134a542baa4e9a5c49adab53272d74edfc55f4d (patch) | |
tree | 8a86aabc77d2626a78b0c95da9582093b7d0bdd0 | |
parent | 787c3ead188aa95b2248601b60819fc4d5f968f7 (diff) | |
download | ruby-4134a542baa4e9a5c49adab53272d74edfc55f4d.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | thread.c | 4 | ||||
-rw-r--r-- | version.h | 6 |
3 files changed, 11 insertions, 4 deletions
@@ -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[]; |