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

ruby-changes:34635

From: ktsj <ko1@a...>
Date: Sun, 6 Jul 2014 21:54:10 +0900 (JST)
Subject: [ruby-changes:34635] ktsj:r46718 (trunk): * file.c, ext/pathname/pathname.c: [DOC] correct position of method rdoc.

ktsj	2014-07-06 21:45:27 +0900 (Sun, 06 Jul 2014)

  New Revision: 46718

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

  Log:
    * file.c, ext/pathname/pathname.c: [DOC] correct position of method rdoc.

  Modified files:
    trunk/ext/pathname/pathname.c
    trunk/file.c
Index: ext/pathname/pathname.c
===================================================================
--- ext/pathname/pathname.c	(revision 46717)
+++ ext/pathname/pathname.c	(revision 46718)
@@ -440,6 +440,7 @@ path_atime(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/pathname/pathname.c#L440
     return rb_funcall(rb_cFile, rb_intern("atime"), 1, get_strpath(self));
 }
 
+#if defined(HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC) || defined(_WIN32)
 /*
  * call-seq:
  *   pathname.birthtime	-> time
@@ -449,7 +450,6 @@ path_atime(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/pathname/pathname.c#L450
  *
  * See File.birthtime.
  */
-#if defined(HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC) || defined(_WIN32)
 static VALUE
 path_birthtime(VALUE self)
 {
Index: file.c
===================================================================
--- file.c	(revision 46717)
+++ file.c	(revision 46718)
@@ -849,6 +849,7 @@ rb_stat_ctime(VALUE self) https://github.com/ruby/ruby/blob/trunk/file.c#L849
     return stat_ctime(get_stat(self));
 }
 
+#if defined(HAVE_STAT_BIRTHTIME)
 /*
  *  call-seq:
  *     stat.birthtime  ->  aTime
@@ -870,7 +871,6 @@ rb_stat_ctime(VALUE self) https://github.com/ruby/ruby/blob/trunk/file.c#L871
  *
  */
 
-#if defined(HAVE_STAT_BIRTHTIME)
 static VALUE
 rb_stat_birthtime(VALUE self)
 {
@@ -2131,6 +2131,7 @@ rb_file_ctime(VALUE obj) https://github.com/ruby/ruby/blob/trunk/file.c#L2131
     return stat_ctime(&st);
 }
 
+#if defined(HAVE_STAT_BIRTHTIME)
 /*
  *  call-seq:
  *     File.birthtime(file_name)  -> time
@@ -2145,7 +2146,6 @@ rb_file_ctime(VALUE obj) https://github.com/ruby/ruby/blob/trunk/file.c#L2146
  *
  */
 
-#if defined(HAVE_STAT_BIRTHTIME)
 static VALUE
 rb_file_s_birthtime(VALUE klass, VALUE fname)
 {
@@ -2161,6 +2161,7 @@ rb_file_s_birthtime(VALUE klass, VALUE f https://github.com/ruby/ruby/blob/trunk/file.c#L2161
 # define rb_file_s_birthtime rb_f_notimplement
 #endif
 
+#if defined(HAVE_STAT_BIRTHTIME)
 /*
  *  call-seq:
  *     file.birthtime  ->  time
@@ -2173,7 +2174,6 @@ rb_file_s_birthtime(VALUE klass, VALUE f https://github.com/ruby/ruby/blob/trunk/file.c#L2174
  *
  */
 
-#if defined(HAVE_STAT_BIRTHTIME)
 static VALUE
 rb_file_birthtime(VALUE obj)
 {

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

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