* transcode_data.h (rb_transcoding): add feedlen field.
commit9ff2c34d5ccb5074dbca4ee0c15559055da99eba
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Sun, 10 Aug 2008 02:17:56 +0000 (10 02:17 +0000)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Sun, 10 Aug 2008 02:17:56 +0000 (10 02:17 +0000)
tree2171a5a98d88da50480ebeaab8de82c39af17ef1
parent1ea478af74ad2968b6c3b311b727e32f7728b815
* transcode_data.h (rb_transcoding): add feedlen field.

* transcode.c (transcode_restartable0): renamed from
  transcode_restartable.
  save input buffer into feed buffer if next character is started the
  point before input buffer.  for example, "\x00\xd8\x01" then "\x02"
  in UTF-16LE.  \x02 causes invalid and next character is started from
  \x01.
  (transcode_restartable): new function to call
  transcode_restartable0.   if feed buffer is not empty, convert it at
  first.

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