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

ruby-changes:7170

From: akr <ko1@a...>
Date: Mon, 18 Aug 2008 17:01:01 +0900 (JST)
Subject: [ruby-changes:7170] Ruby:r18689 (trunk): update comment.

akr	2008-08-18 17:00:55 +0900 (Mon, 18 Aug 2008)

  New Revision: 18689

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

  Log:
    update comment.

  Modified files:
    trunk/include/ruby/io.h

Index: include/ruby/io.h
===================================================================
--- include/ruby/io.h	(revision 18688)
+++ include/ruby/io.h	(revision 18689)
@@ -48,9 +48,16 @@
     int rbuf_capa;
 
     VALUE tied_io_for_writing;
-    rb_encoding *enc;   /* int_enc if enc2.  ext_enc otherwise. */
-    rb_encoding *enc2;  /* ext_enc if not NULL. */
 
+    /*
+     * enc  enc2 read action                      write action
+     * NULL NULL force_encoding(default_external) write the byte sequence of str
+     * e1   NULL force_encoding(e1)               convert str.encoding to e1
+     * e1   e2   convert from e2 to e1            convert from e1 to e2
+     */
+    rb_encoding *enc;
+    rb_encoding *enc2;
+
     rb_econv_t *readconv;
     char *crbuf;                /* crbuf_off + crbuf_len <= crbuf_capa */
     int crbuf_off;

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

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