ruby-changes:11636
From: akr <ko1@a...>
Date: Sat, 25 Apr 2009 15:48:53 +0900 (JST)
Subject: [ruby-changes:11636] Ruby:r23273 (trunk): * time.c (time_get_tm): take time_object instead of gmt.
akr 2009-04-25 15:48:39 +0900 (Sat, 25 Apr 2009) New Revision: 23273 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23273 Log: * time.c (time_get_tm): take time_object instead of gmt. Modified files: trunk/ChangeLog trunk/time.c Index: time.c =================================================================== --- time.c (revision 23272) +++ time.c (revision 23273) @@ -48,7 +48,6 @@ VALUE rb_cTime; static VALUE time_utc_offset _((VALUE)); -static VALUE time_get_tm(VALUE, int); static VALUE time_gmtime(VALUE); static VALUE time_localtime(VALUE); @@ -1003,10 +1002,11 @@ #define TIME_LOCALTIME_P(tobj) ((tobj)->gmt == 0) #define TIME_SET_LOCALTIME(tobj) ((tobj)->gmt = 0) +static VALUE time_get_tm(VALUE, struct time_object *); #define MAKE_TM(time, tobj) \ do { \ if ((tobj)->tm_got == 0) { \ - time_get_tm((time), (tobj)->gmt); \ + time_get_tm((time), (tobj)); \ } \ } while (0) @@ -2307,9 +2307,9 @@ } static VALUE -time_get_tm(VALUE time, int gmt) +time_get_tm(VALUE time, struct time_object *tobj) { - if (gmt) return time_gmtime(time); + if (TIME_UTC_P(tobj)) return time_gmtime(time); return time_localtime(time); } Index: ChangeLog =================================================================== --- ChangeLog (revision 23272) +++ ChangeLog (revision 23273) @@ -1,3 +1,7 @@ +Sat Apr 25 15:47:54 2009 Tanaka Akira <akr@f...> + + * time.c (time_get_tm): take time_object instead of gmt. + Sat Apr 25 15:39:44 2009 Tanaka Akira <akr@f...> * time.c (time_succ): refactored to avoid gmt variable. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/