* transcode_data.h (rb_transcoding): add fields: writebuf_off,
commit1e2b057ee3e0d558aae76e1e43ac000481353e97
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Wed, 13 Aug 2008 08:28:39 +0000 (13 08:28 +0000)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Wed, 13 Aug 2008 08:28:39 +0000 (13 08:28 +0000)
tree8f196b7e3c6c55bc4dd43b543f9b11bbbf5b58dc
parentee18ea6ac244877a1099ef1beb2a1bf56a4cec98
* transcode_data.h (rb_transcoding): add fields: writebuf_off,
  writebuf_len and writebuf.
  (TRANSCODING_WRITEBUF): new macro.

* transcode.c (transcode_restartable0): output until output buffer is
  really full.
  (rb_transcoding_open_by_transcoder): initialize writebuf_len,
  writebuf_off and writebuf.
  (rb_transcoding_close): finalize writebuf.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ChangeLog
transcode.c
transcode_data.h