[前][次][番号順一覧][スレッド一覧]

ruby-changes:30528

From: akr <ko1@a...>
Date: Sun, 18 Aug 2013 14:34:19 +0900 (JST)
Subject: [ruby-changes:30528] akr:r42607 (trunk): * process.c (rb_clock_gettime): Rename POSIX_TIME_CLOCK_REALTIME to

akr	2013-08-18 14:34:13 +0900 (Sun, 18 Aug 2013)

  New Revision: 42607

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42607

  Log:
    * process.c (rb_clock_gettime): Rename POSIX_TIME_CLOCK_REALTIME to
      ISO_C_TIME_CLOCK_REALTIME.

  Modified files:
    trunk/ChangeLog
    trunk/process.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42606)
+++ ChangeLog	(revision 42607)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Aug 18 14:30:47 2013  Tanaka Akira  <akr@f...>
+
+	* process.c (rb_clock_gettime): Rename POSIX_TIME_CLOCK_REALTIME to
+	  ISO_C_TIME_CLOCK_REALTIME.
+
 Sun Aug 18 14:22:45 2013  Tanaka Akira  <akr@f...>
 
 	* configure.in: Revert r42604.  It causes linking librt on systems
Index: process.c
===================================================================
--- process.c	(revision 42606)
+++ process.c	(revision 42607)
@@ -6682,7 +6682,7 @@ rb_proc_times(VALUE obj) https://github.com/ruby/ruby/blob/trunk/process.c#L6682
  *
  *  Emulations for +:CLOCK_REALTIME+:
  *  [:POSIX_GETTIMEOFDAY_CLOCK_REALTIME] Use gettimeofday().  The resolution is 1 micro second.
- *  [:POSIX_TIME_CLOCK_REALTIME] Use time().  The resolution is 1 second.
+ *  [:ISO_C_TIME_CLOCK_REALTIME] Use time().  The resolution is 1 second.
  *
  *  Emulations for +:CLOCK_MONOTONIC+:
  *  [:MACH_ABSOLUTE_TIME_CLOCK_MONOTONIC] Use mach_absolute_time(), available on Darwin.
@@ -6746,8 +6746,8 @@ rb_clock_gettime(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/process.c#L6746
             goto success;
         }
 
-#define RUBY_POSIX_TIME_CLOCK_REALTIME ID2SYM(rb_intern("POSIX_TIME_CLOCK_REALTIME"))
-        if (clk_id == RUBY_POSIX_TIME_CLOCK_REALTIME) {
+#define RUBY_ISO_C_TIME_CLOCK_REALTIME ID2SYM(rb_intern("ISO_C_TIME_CLOCK_REALTIME"))
+        if (clk_id == RUBY_ISO_C_TIME_CLOCK_REALTIME) {
             time_t t;
             t = time(NULL);
             if (t == (time_t)-1)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]