summaryrefslogtreecommitdiff
path: root/transcode_data.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-13 05:30:42 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-13 05:30:42 (GMT)
commit74a2a7bdbfbf70febab024354fe0b7fb26300704 (patch)
tree4b4ca9d7d11fe733e5ca1ec4cf78f372050a1636 /transcode_data.h
parentab0ee1d5e98183e0994765352998b5543cd7f02f (diff)
* enc/trans/newline.trans: new file.
* transcode_data.h (rb_trans_t): add last_tc field. * transcode.c (UNIVERSAL_NEWLINE): defined. (CRLF_NEWLINE): defined. (CR_NEWLINE): defined. (rb_trans_open_by_transcoder_entries): initialize last_tc. (trans_open_i): allocate one more room for newline converter. (rb_trans_open): universal newline implemented. (more_output_buffer): take max_output argument instead ts. (output_replacement_character): take tc argument instead of ts. (transcode_loop): use last_tc field. (econv_init): add flags argument for rb_trans_open. (Init_transcode): Encoding::Converter::UNIVERSAL_NEWLINE defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode_data.h')
-rw-r--r--transcode_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/transcode_data.h b/transcode_data.h
index 6b3ded4..f49f796 100644
--- a/transcode_data.h
+++ b/transcode_data.h
@@ -122,6 +122,7 @@ typedef struct {
rb_trans_elem_t *elems;
int num_trans;
int num_finished;
+ rb_transcoding *last_tc;
} rb_trans_t;
void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib);