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

ruby-changes:19177

From: nobu <ko1@a...>
Date: Wed, 30 Mar 2011 22:49:54 +0900 (JST)
Subject: [ruby-changes:19177] Ruby:r31216 (trunk): * ext/date: use timev.h in toplevel.

nobu	2011-03-30 22:48:32 +0900 (Wed, 30 Mar 2011)

  New Revision: 31216

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

  Log:
    * ext/date: use timev.h in toplevel.

  Added files:
    trunk/ext/date/depend
  Removed files:
    trunk/ext/date/timev.h
  Modified files:
    trunk/ext/date/extconf.rb

Index: ext/date/timev.h
===================================================================
--- ext/date/timev.h	(revision 31215)
+++ ext/date/timev.h	(revision 31216)
@@ -1,21 +0,0 @@
-#ifndef RUBY_TIMEV_H
-#define RUBY_TIMEV_H
-
-struct vtm {
-    VALUE year; /* 2000 for example.  Integer. */
-    int mon; /* 1..12 */
-    int mday; /* 1..31 */
-    int hour; /* 0..23 */
-    int min; /* 0..59 */
-    int sec; /* 0..60 */
-    VALUE subsecx; /* 0 <= subsecx < TIME_SCALE.  possibly Rational. */
-    VALUE utc_offset; /* -3600 as -01:00 for example.  possibly Rational. */
-    int wday; /* 0:Sunday, 1:Monday, ..., 6:Saturday */
-    int yday; /* 1..366 */
-    int isdst; /* 0:StandardTime 1:DayLightSavingTime */
-    const char *zone; /* "JST", "EST", "EDT", etc. */
-};
-
-#define TIME_SCALE 1000000000
-
-#endif
Index: ext/date/depend
===================================================================
--- ext/date/depend	(revision 0)
+++ ext/date/depend	(revision 31216)
@@ -0,0 +1,2 @@
+date_core.o: $(top_srcdir)/timev.h
+date_strftime.o: $(top_srcdir)/timev.h

Property changes on: ext/date/depend
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: ext/date/extconf.rb
===================================================================
--- ext/date/extconf.rb	(revision 31215)
+++ ext/date/extconf.rb	(revision 31216)
@@ -1,2 +1,3 @@
 require 'mkmf'
+$INCFLAGS << " -I$(top_srcdir)"
 create_makefile('date_core')

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

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