diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-01 18:18:50 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-01 18:18:50 +0000 |
commit | c5759bfb5b71517af525b1bc51fd485572344758 (patch) | |
tree | 47776030a7c9d663b5317d8d179dbd2393e12d38 /enc/trans/newline.trans | |
parent | 6058eeaf0360cd5e56106db1f360a7edf3c91f1a (diff) | |
download | ruby-c5759bfb5b71517af525b1bc51fd485572344758.tar.gz |
* tool/transcode-tblgen.rb: define TRANSCODE_TABLE_INFO in generated
code. use it in rb_transcoder.
* enc/trans/newline.trans: use TRANSCODE_TABLE_INFO.
* enc/trans/iso2022.trans: ditto.
* enc/trans/utf_16_32.trans: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/trans/newline.trans')
-rw-r--r-- | enc/trans/newline.trans | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/enc/trans/newline.trans b/enc/trans/newline.trans index 6431a7d951..da8202eea4 100644 --- a/enc/trans/newline.trans +++ b/enc/trans/newline.trans @@ -55,7 +55,7 @@ fun_so_universal_newline(rb_transcoding* t, const unsigned char* s, size_t l, un static const rb_transcoder rb_universal_newline = { "universal_newline", "", universal_newline, - byte_array, word_array, sizeof(uintptr_t), + TRANSCODE_TABLE_INFO, 1, /* input_unit_length */ 1, /* max_input */ 1, /* max_output */ @@ -66,7 +66,7 @@ rb_universal_newline = { static const rb_transcoder rb_crlf_newline = { "", "crlf_newline", crlf_newline, - byte_array, word_array, sizeof(uintptr_t), + TRANSCODE_TABLE_INFO, 1, /* input_unit_length */ 1, /* max_input */ 2, /* max_output */ @@ -77,7 +77,7 @@ rb_crlf_newline = { static const rb_transcoder rb_cr_newline = { "", "cr_newline", cr_newline, - byte_array, word_array, sizeof(uintptr_t), + TRANSCODE_TABLE_INFO, 1, /* input_unit_length */ 1, /* max_input */ 1, /* max_output */ |