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

ruby-changes:12205

From: nobu <ko1@a...>
Date: Mon, 29 Jun 2009 17:16:30 +0900 (JST)
Subject: [ruby-changes:12205] Ruby:r23890 (trunk): * file.c (BUFCHECK): use common bdiff.

nobu	2009-06-29 17:16:19 +0900 (Mon, 29 Jun 2009)

  New Revision: 23890

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

  Log:
    * file.c (BUFCHECK): use common bdiff.

  Modified files:
    trunk/file.c

Index: file.c
===================================================================
--- file.c	(revision 23889)
+++ file.c	(revision 23890)
@@ -2642,7 +2642,7 @@
 #endif
 
 #define BUFCHECK(cond) do {\
-    size_t bdiff = p - buf;\
+    bdiff = p - buf;\
     if (cond) {\
 	do {buflen *= 2;} while (cond);\
 	rb_str_resize(result, buflen);\
@@ -2711,7 +2711,7 @@
 {
     const char *s, *b;
     char *buf, *p, *pend, *root;
-    size_t buflen, dirlen;
+    size_t buflen, dirlen, bdiff;
     int tainted;
     rb_encoding *extenc = 0;
 

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

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