summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 04:23:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 04:23:31 +0000
commit92cb7d0ad49d5c681119471862698d9de00bd1a6 (patch)
tree890ab4203c44a4ad7b6948cd53a1da45c67ed6c5
parent6fe403b0d77d2c66cd5fe461aa9d3d1b801389b5 (diff)
* include/ruby/intern.h (rb_time_interval): used in io/wait.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--ext/io/wait/wait.c2
-rw-r--r--include/ruby/intern.h3
3 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 33e7d33fe9..77da4730de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Sat Aug 14 13:20:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Aug 14 13:23:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_time_interval): used in io/wait.
* include/ruby/intern.h (rb_make_backtrace, rb_make_exception):
used in ripper.
diff --git a/ext/io/wait/wait.c b/ext/io/wait/wait.c
index b73c9af1ce..13b522bdf5 100644
--- a/ext/io/wait/wait.c
+++ b/ext/io/wait/wait.c
@@ -40,8 +40,6 @@ static VALUE io_ready_p _((VALUE io));
static VALUE io_wait _((int argc, VALUE *argv, VALUE io));
void Init_wait _((void));
-EXTERN struct timeval rb_time_interval _((VALUE time));
-
/*
* call-seq:
* io.nread -> int
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index f6c77a99ad..0f9b8cb0a4 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -792,6 +792,9 @@ VALUE rb_barrier_destroy(VALUE self);
VALUE rb_time_new(time_t, long);
VALUE rb_time_nano_new(time_t, long);
VALUE rb_time_num_new(VALUE, VALUE);
+struct timeval rb_time_interval(VALUE num);
+struct timeval rb_time_timeval(VALUE time);
+struct timespec rb_time_timespec(VALUE time);
/* variable.c */
VALUE rb_mod_name(VALUE);
VALUE rb_class_path(VALUE);