ruby-changes:19901
From: nobu <ko1@a...>
Date: Tue, 7 Jun 2011 13:50:39 +0900 (JST)
Subject: [ruby-changes:19901] nobu:r31948 (trunk): * time.c (rb_gmtime_r2): adjust indent.
nobu 2011-06-07 13:50:34 +0900 (Tue, 07 Jun 2011) New Revision: 31948 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31948 Log: * time.c (rb_gmtime_r2): adjust indent. Modified files: trunk/time.c Index: time.c =================================================================== --- time.c (revision 31947) +++ time.c (revision 31948) @@ -905,20 +905,20 @@ #define LOCALTIME(tm, result) (tzset(),rb_localtime_r2((tm), &(result))) #if !defined(HAVE_STRUCT_TM_TM_GMTOFF) - static struct tm * - rb_gmtime_r2(const time_t *t, struct tm *result) - { - result = rb_gmtime_r(t, result); +static struct tm * +rb_gmtime_r2(const time_t *t, struct tm *result) +{ + result = rb_gmtime_r(t, result); #if defined(HAVE_TIMEGM) && defined(LOCALTIME_OVERFLOW_PROBLEM) - if (result) { - struct tm tmp = *result; - time_t t2 = timegm(&tmp); - if (*t != t2) - result = NULL; - } + if (result) { + struct tm tmp = *result; + time_t t2 = timegm(&tmp); + if (*t != t2) + result = NULL; + } #endif - return result; - } + return result; +} # define GMTIME(tm, result) rb_gmtime_r2((tm), &(result)) #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/