ruby--ruby/enc
akr f6441bf61c * transcode_data.h (rb_transcoding): remove stateful field.
add state field.
  (TRANSCODING_STATE): defined.
  (rb_transcoder): add fields: state_size, state_init_func,
  state_fini_func.
  change rb_transcoding* argument to void*.

* transcode.c (transcode_restartable0): use TRANSCODING_STATE for
  first arguments of transcoder functions.
  (rb_transcoding_open_by_transcoder): initialize state field.
  (rb_transcoding_close): finalize state field.

* tool/transcode-tblgen.rb: provide state size/init/fini.

* enc/trans/newline.trans (universal_newline_init): defined.
  (fun_so_universal_newline): take void* as a state pointer.
  (rb_universal_newline): provide state size/init/fini.
  (rb_crlf_newline): ditto.
  (rb_cr_newline): ditto.

* enc/trans/iso2022.trans (iso2022jp_init): defined.
  (fun_si_iso2022jp_to_eucjp): take void* as a state pointer.
  (fun_so_iso2022jp_to_eucjp): ditto.
  (fun_so_eucjp_to_iso2022jp): ditto.
  (iso2022jp_reset_sequence_size): ditto.
  (finish_eucjp_to_iso2022jp): ditto.
  (rb_ISO_2022_JP_to_EUC_JP): provide state size/init/fini.
  (rb_EUC_JP_to_ISO_2022_JP): ditto.

* enc/trans/utf_16_32.trans (fun_so_from_utf_16be): take void* as a
  state pointer.
  (fun_so_to_utf_16be): ditto.
  (fun_so_from_utf_16le): ditto.
  (fun_so_to_utf_16le): ditto.
  (fun_so_from_utf_32be): ditto.
  (fun_so_to_utf_32be): ditto.
  (fun_so_from_utf_32le): ditto.
  (fun_so_to_utf_32le): ditto.
  (rb_from_UTF_16BE): provide state size/init/fini.
  (rb_to_UTF_16BE): ditto.
  (rb_from_UTF_16LE): ditto.
  (rb_to_UTF_16LE): ditto.
  (rb_from_UTF_32BE): ditto.
  (rb_to_UTF_32BE): ditto.
  (rb_from_UTF_32LE): ditto.
  (rb_to_UTF_32LE): ditto.

* enc/trans/japanese.trans (fun_so_eucjp2sjis): take void* as a state
  pointer.
  (fun_so_sjis2eucjp): ditto.
  (rb_eucjp2sjis): provide state size/init/fini.
  (rb_sjis2eucjp): provide state size/init/fini.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-03 14:12:06 +00:00
..
trans * transcode_data.h (rb_transcoding): remove stateful field. 2008-09-03 14:12:06 +00:00
Makefile.in * configure.in (BUILTIN_TRANSSRCS): defined. 2008-08-24 15:58:43 +00:00
ascii.c * enc/ascii.c: ISO C does not allow extra ';' outside of a 2008-07-01 08:39:10 +00:00
big5.c forgot to commit 2008-07-01 09:50:30 +00:00
cp949.c * enc/{euc_jp.c,gbk.c,iso_8859_1.c,iso_8859_11.c,iso_8859_13.c, 2008-02-17 03:21:20 +00:00
depend * enc/depend: transdb.c may not present. 2008-09-01 05:37:04 +00:00
emacs_mule.c * enc/emacs_mule.c (svn:executable): dropped executable bit. 2008-09-02 05:04:30 +00:00
encdb.c * encoding.c (enc_init_db): moved to enc/encdb.c. 2008-04-07 06:51:33 +00:00
euc_jp.c * enc/euc_jp.c (euc-jp-ms): euc-jp-ms is not EUC-JP not an alias of 2008-09-01 08:24:55 +00:00
euc_kr.c forgot to commit 2008-07-01 09:50:30 +00:00
euc_tw.c forgot to commit 2008-07-01 09:50:30 +00:00
gb2312.c forgot to commit 2008-07-01 09:50:30 +00:00
gb18030.c forgot to commit 2008-07-01 09:50:30 +00:00
gbk.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_2022_jp.h * common.mk (encdb.h): give output file name to make_encdb.rb. 2008-01-17 14:56:22 +00:00
iso_8859_1.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_2.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_3.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_4.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_5.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_6.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_7.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_8.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_9.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_10.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_11.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_13.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_14.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_15.c forgot to commit 2008-07-01 09:50:30 +00:00
iso_8859_16.c forgot to commit 2008-07-01 09:50:30 +00:00
koi8_r.c forgot to commit 2008-07-01 09:50:30 +00:00
koi8_u.c * enc/koi8_u.c: added. 2008-01-19 15:37:06 +00:00
make_encdb.rb * enc/emacs_mule.c (svn:executable): dropped executable bit. 2008-09-02 05:04:30 +00:00
make_encmake.rb * configure.in (BUILTIN_TRANSSRCS): defined. 2008-08-24 15:58:43 +00:00
prelude.rb * common.mk (prelude.c): depends on enc/prelude.rb. 2008-04-08 01:30:31 +00:00
shift_jis.c * enc/shift_jis.c (code_is_ctype): HALF WIDTH KATAKANA is 2008-07-01 10:05:48 +00:00
unicode.c * enc/euc_jp.c (property_name_to_ctype): core dumped when sizeof(int) 2008-06-17 13:06:34 +00:00
us_ascii.c * enc/ascii.c: ISO C does not allow extra ';' outside of a 2008-07-01 08:39:10 +00:00
utf_7.h * enc/utf_7.h: add dummy encoding UTF-7 and its alias CP65000. 2008-01-28 08:57:40 +00:00
utf_8.c * enc/ascii.c: ISO C does not allow extra ';' outside of a 2008-07-01 08:39:10 +00:00
utf_16be.c forgot to commit 2008-07-01 09:50:30 +00:00
utf_16le.c * enc/utf_16{be,le}.c (utf16{be,le}_code_to_mbc): 2008-05-31 10:14:38 +00:00
utf_32be.c forgot to commit 2008-07-01 09:50:30 +00:00
utf_32le.c forgot to commit 2008-07-01 09:50:30 +00:00
windows_1251.c forgot to commit 2008-07-01 09:50:30 +00:00