From 2f8b6234cd5b5a6b1bd5e2abdd07813e81f6e0c5 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 1 Jul 2009 12:11:53 +0000 Subject: * include/ruby/intern.h (rb_time_num_new): declared. * time.c (nsec2timev): extracted from time_new_internal. (time_new_internal): change argument to VALUE. (rb_time_new): follow the argument change. (rb_time_nano_new): ditto. (rb_time_num_new): new function. * ext/socket/ancdata.c (ancillary_timestamp): use rb_time_num_new to represent struct bintime preciously. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ruby/intern.h') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index f153658d50..efa7bfbb1b 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -745,6 +745,7 @@ VALUE rb_barrier_destroy(VALUE self); /* time.c */ VALUE rb_time_new(time_t, long); VALUE rb_time_nano_new(time_t, long); +VALUE rb_time_num_new(VALUE, VALUE); /* variable.c */ VALUE rb_mod_name(VALUE); VALUE rb_class_path(VALUE); -- cgit v1.2.3