aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--thread.c4
-rw-r--r--version.h6
3 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b6d8b2dd42..f561465f96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/thread.c b/thread.c
index 4c1fea3174..cccdb0a668 100644
--- a/thread.c
+++ b/thread.c
@@ -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
diff --git a/version.h b/version.h
index f998c7f0c5..9f8b0b6d10 100644
--- a/version.h
+++ b/version.h
@@ -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[];