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

ruby-changes:54107

From: nobu <ko1@a...>
Date: Tue, 11 Dec 2018 13:30:36 +0900 (JST)
Subject: [ruby-changes:54107] nobu:r66328 (trunk): date_core.c: reorder ComplexDateData

nobu	2018-12-11 13:30:31 +0900 (Tue, 11 Dec 2018)

  New Revision: 66328

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

  Log:
    date_core.c: reorder ComplexDateData
    
    * ext/date/date_core.c (ComplexDateData): reordered to adjust
      common part with SimpleDateData.

  Modified files:
    trunk/ext/date/date_core.c
Index: ext/date/date_core.c
===================================================================
--- ext/date/date_core.c	(revision 66327)
+++ ext/date/date_core.c	(revision 66328)
@@ -239,11 +239,8 @@ f_negative_p(VALUE x) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L239
 struct SimpleDateData
 {
     unsigned flags;
-    VALUE nth;	/* not always canonicalized */
     int jd;	/* as utc */
-    /* df is zero */
-    /* sf is zero */
-    /* of is zero */
+    VALUE nth;	/* not always canonicalized */
     date_sg_t sg;  /* 2298874..2426355 or -/+oo -- at most 22 bits */
     /* decoded as utc=local */
     int year;	/* truncated */
@@ -262,11 +259,8 @@ struct SimpleDateData https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L259
 struct ComplexDateData
 {
     unsigned flags;
-    VALUE nth;	/* not always canonicalized */
     int jd; 	/* as utc */
-    int df;	/* as utc, in secs */
-    VALUE sf;	/* in nano secs */
-    int of;	/* in secs */
+    VALUE nth;	/* not always canonicalized */
     date_sg_t sg;  /* 2298874..2426355 or -/+oo -- at most 22 bits */
     /* decoded as local */
     int year;	/* truncated */
@@ -280,6 +274,9 @@ struct ComplexDateData https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L274
     /* packed civil */
     unsigned pc;
 #endif
+    int df;	/* as utc, in secs */
+    int of;	/* in secs */
+    VALUE sf;	/* in nano secs */
 };
 
 union DateData {

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

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