summaryrefslogtreecommitdiff
path: root/transcode_data.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-09 07:35:28 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-09 07:35:28 +0000
commit4bceda1125242d365558d6c870215c8e2125e29a (patch)
tree7fac8b35c604192ca87a835178325ee29da71a54 /transcode_data.h
parentca3dd2d89e41234f112d23c706ad9151e6b73aad (diff)
downloadruby-4bceda1125242d365558d6c870215c8e2125e29a.tar.gz
* transcode_data.h (rb_transcoding): new fields: next_info and next_byte.
* transcode.c (transcode_restartable): save/restore next_info and next_byte. sync readlen and in_p when invalid. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode_data.h')
-rw-r--r--transcode_data.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/transcode_data.h b/transcode_data.h
index 3801c38ec8..12e24e71eb 100644
--- a/transcode_data.h
+++ b/transcode_data.h
@@ -66,6 +66,8 @@ typedef struct rb_transcoding {
int resume_position;
const BYTE_LOOKUP *next_table;
+ VALUE next_info;
+ unsigned char next_byte;
int readlen;
union {
unsigned char ary[8]; /* max_input <= sizeof(ary) */