aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-18 08:00:55 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-18 08:00:55 +0000
commitf7bdac01c245ed85e97655bb48f279183bf03557 (patch)
tree621af822cde21d4a46357fed05c84a4d4668da68 /include
parent43a3aa5ebf64d78150621de03cb9d5bb45cc1139 (diff)
downloadruby-f7bdac01c245ed85e97655bb48f279183bf03557.tar.gz
update comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/io.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h
index da7589f60c..2a2b991a6d 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -48,8 +48,15 @@ typedef struct rb_io_t {
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 */