diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-01 16:22:49 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-01 16:22:49 +0000 |
commit | 752e053a1df0446b6ca20815b1976dd322d736bd (patch) | |
tree | 7ece75f0de59fd63b1263145479927001796a1c3 /enc/trans/utf_16_32.trans | |
parent | 2ae7b0328e9bf0caf16411eabc924effedccfb5c (diff) |
* transcode_data.h (BYTE_LOOKUP): change to uintptr_t array.
(BYTE_LOOKUP_BASE): follow the type change.
(BYTE_LOOKUP_INFO): ditto.
(PType): ditto.
(rb_transcoding): ditto.
* tool/transcode-tblgen.rb: follow the type change.
* transcode.c: ditto.
* enc/trans/newline.trans: ditto.
* enc/trans/iso2022.trans: ditto.
* enc/trans/utf_16_32.trans: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/trans/utf_16_32.trans')
-rw-r--r-- | enc/trans/utf_16_32.trans | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/enc/trans/utf_16_32.trans b/enc/trans/utf_16_32.trans index b71c289bae..2bbee65b7f 100644 --- a/enc/trans/utf_16_32.trans +++ b/enc/trans/utf_16_32.trans @@ -261,82 +261,82 @@ fun_so_to_utf_32le(rb_transcoding* t, const unsigned char* s, size_t l, unsigned static const rb_transcoder rb_from_UTF_16BE = { - "UTF-16BE", "UTF-8", &from_UTF_16BE, + "UTF-16BE", "UTF-8", from_UTF_16BE, 2, /* input_unit_length */ 4, /* max_input */ 4, /* max_output */ stateless_converter, /* stateful_type */ - NULL, NULL, NULL, &fun_so_from_utf_16be + NULL, NULL, NULL, fun_so_from_utf_16be }; static const rb_transcoder rb_to_UTF_16BE = { - "UTF-8", "UTF-16BE", &to_UTF_16BE, + "UTF-8", "UTF-16BE", to_UTF_16BE, 1, /* input_unit_length */ 4, /* max_input */ 4, /* max_output */ stateless_converter, /* stateful_type */ - NULL, NULL, NULL, &fun_so_to_utf_16be + NULL, NULL, NULL, fun_so_to_utf_16be }; static const rb_transcoder rb_from_UTF_16LE = { - "UTF-16LE", "UTF-8", &from_UTF_16LE, + "UTF-16LE", "UTF-8", from_UTF_16LE, 2, /* input_unit_length */ 4, /* max_input */ 4, /* max_output */ stateless_converter, /* stateful_type */ - NULL, NULL, NULL, &fun_so_from_utf_16le + NULL, NULL, NULL, fun_so_from_utf_16le }; static const rb_transcoder rb_to_UTF_16LE = { - "UTF-8", "UTF-16LE", &to_UTF_16BE, + "UTF-8", "UTF-16LE", to_UTF_16BE, 1, /* input_unit_length */ 4, /* max_input */ 4, /* max_output */ stateless_converter, /* stateful_type */ - NULL, NULL, NULL, &fun_so_to_utf_16le + NULL, NULL, NULL, fun_so_to_utf_16le }; static const rb_transcoder rb_from_UTF_32BE = { - "UTF-32BE", "UTF-8", &from_UTF_32BE, + "UTF-32BE", "UTF-8", from_UTF_32BE, 4, /* input_unit_length */ 4, /* max_input */ 4, /* max_output */ stateless_converter, /* stateful_type */ - NULL, NULL, NULL, &fun_so_from_utf_32be + NULL, NULL, NULL, fun_so_from_utf_32be }; static const rb_transcoder rb_to_UTF_32BE = { - "UTF-8", "UTF-32BE", &to_UTF_16BE, + "UTF-8", "UTF-32BE", to_UTF_16BE, 1, /* input_unit_length */ 4, /* max_input */ 4, /* max_output */ stateless_converter, /* stateful_type */ - NULL, NULL, NULL, &fun_so_to_utf_32be + NULL, NULL, NULL, fun_so_to_utf_32be }; static const rb_transcoder rb_from_UTF_32LE = { - "UTF-32LE", "UTF-8", &from_UTF_32LE, + "UTF-32LE", "UTF-8", from_UTF_32LE, 4, /* input_unit_length */ 4, /* max_input */ 4, /* max_output */ stateless_converter, /* stateful_type */ - NULL, NULL, NULL, &fun_so_from_utf_32le + NULL, NULL, NULL, fun_so_from_utf_32le }; static const rb_transcoder rb_to_UTF_32LE = { - "UTF-8", "UTF-32LE", &to_UTF_16BE, + "UTF-8", "UTF-32LE", to_UTF_16BE, 1, /* input_unit_length */ 4, /* max_input */ 4, /* max_output */ stateless_converter, /* stateful_type */ - NULL, NULL, NULL, &fun_so_to_utf_32le + NULL, NULL, NULL, fun_so_to_utf_32le }; void |