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

ruby-changes:11618

From: usa <ko1@a...>
Date: Wed, 22 Apr 2009 10:40:26 +0900 (JST)
Subject: [ruby-changes:11618] Ruby:r23255 (trunk): * dir.c (glob_helper): C99(gcc)-ism.

usa	2009-04-22 10:40:09 +0900 (Wed, 22 Apr 2009)

  New Revision: 23255

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

  Log:
    * dir.c (glob_helper): C99(gcc)-ism.
    * time.c (find_time_t): GUESS macro needs the variable named ``result''
      always.

  Modified files:
    trunk/ChangeLog
    trunk/dir.c
    trunk/time.c

Index: time.c
===================================================================
--- time.c	(revision 23254)
+++ time.c	(revision 23255)
@@ -1534,7 +1534,7 @@
     struct tm *tm, tm_lo, tm_hi;
     int d, have_guess;
     int find_dst;
-    IF_HAVE_GMTIME_R(struct tm result);
+    struct tm result;
 #define GUESS(p) (utc_p ? gmtime_with_leapsecond(p, &result) : LOCALTIME(p, result))
 
     find_dst = 0 < tptr->tm_isdst;
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23254)
+++ ChangeLog	(revision 23255)
@@ -1,3 +1,10 @@
+Wed Apr 22 10:38:47 2009  NAKAMURA Usaku  <usa@r...>
+
+	* dir.c (glob_helper): C99(gcc)-ism.
+
+	* time.c (find_time_t): GUESS macro needs the variable named ``result''
+	  always.
+
 Wed Apr 22 09:27:31 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* time.c (localtime_with_gmtoff): fixed cross function jump.
Index: dir.c
===================================================================
--- dir.c	(revision 23254)
+++ dir.c	(revision 23255)
@@ -1267,8 +1267,9 @@
 
     if (magical || recursive) {
 	struct dirent *dp;
+	DIR *dirp;
 	IF_HAVE_READDIR_R(struct dirent entry);
-	DIR *dirp = do_opendir(*path ? path : ".", flags);
+	dirp = do_opendir(*path ? path : ".", flags);
 	if (dirp == NULL) return 0;
 
 	while (READDIR(dirp, enc, &entry, dp)) {

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

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