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

ruby-changes:7058

From: akr <ko1@a...>
Date: Wed, 13 Aug 2008 17:37:06 +0900 (JST)
Subject: [ruby-changes:7058] Ruby:r18576 (trunk): * transcode.c (transcode_restartable0): several local variables

akr	2008-08-13 17:36:47 +0900 (Wed, 13 Aug 2008)

  New Revision: 18576

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

  Log:
    * transcode.c (transcode_restartable0): several local variables
      removed.

  Modified files:
    trunk/ChangeLog
    trunk/transcode.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 18575)
+++ ChangeLog	(revision 18576)
@@ -1,3 +1,8 @@
+Wed Aug 13 17:35:58 2008  Tanaka Akira  <akr@f...>
+
+	* transcode.c (transcode_restartable0): several local variables
+	  removed.
+
 Wed Aug 13 17:31:12 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* vm_insnhelper.c (caller_setup_args): should ensure if the value
Index: transcode.c
===================================================================
--- transcode.c	(revision 18575)
+++ transcode.c	(revision 18576)
@@ -362,9 +362,6 @@
     const unsigned char *in_p;
 
     unsigned char *out_p;
-    const BYTE_LOOKUP *next_table;
-    VALUE next_info;
-    unsigned char next_byte;
 
     unsigned char empty_buf;
     unsigned char *empty_ptr = &empty_buf;
@@ -382,9 +379,6 @@
     in_p = inchar_start = *in_pos;
 
     out_p = *out_pos;
-    next_table = tc->next_table;
-    next_info = tc->next_info;
-    next_byte = tc->next_byte;
 
 #define SUSPEND(ret, num) \
     do { \
@@ -399,9 +393,6 @@
             tc->recognized_len -= readagain_len; \
             tc->readagain_len = readagain_len; \
         } \
-        tc->next_table = next_table; \
-        tc->next_info = next_info; \
-        tc->next_byte = next_byte; \
         return ret; \
         resume_label ## num:; \
     } while (0)
@@ -410,6 +401,9 @@
         while (out_stop - out_p < 1) { SUSPEND(transcode_obuf_full, num); } \
     } while (0)
 
+#define next_table (tc->next_table)
+#define next_info (tc->next_info)
+#define next_byte (tc->next_byte)
 #define writebuf_len (tc->writebuf_len)
 #define writebuf_off (tc->writebuf_off)
 
@@ -591,6 +585,9 @@
     while (1)
         SUSPEND(transcode_finished, 6);
 #undef SUSPEND
+#undef next_table
+#undef next_info
+#undef next_byte
 #undef writebuf_len
 #undef writebuf_off
 }

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

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