summaryrefslogtreecommitdiff
path: root/enc/trans
diff options
context:
space:
mode:
Diffstat (limited to 'enc/trans')
-rw-r--r--enc/trans/iso2022.trans2
-rw-r--r--enc/trans/newline.trans3
-rw-r--r--enc/trans/utf_16_32.trans8
3 files changed, 13 insertions, 0 deletions
diff --git a/enc/trans/iso2022.trans b/enc/trans/iso2022.trans
index 0414493..76a68d9 100644
--- a/enc/trans/iso2022.trans
+++ b/enc/trans/iso2022.trans
@@ -61,6 +61,7 @@ rb_ISO_2022_JP_to_EUC_JP = {
1, /* input_unit_length */
3, /* max_input */
3, /* max_output */
+ stateful_decoder, /* stateful_type */
NULL, fun_si_iso2022jp_to_eucjp, NULL, fun_so_iso2022jp_to_eucjp
};
@@ -144,6 +145,7 @@ rb_EUC_JP_to_ISO_2022_JP = {
1, /* input_unit_length */
3, /* max_input */
5, /* max_output */
+ stateful_encoder, /* stateful_type */
NULL, NULL, NULL, fun_so_eucjp_to_iso2022jp,
finish_eucjp_to_iso2022jp,
iso2022jp_reset_sequence_size, finish_eucjp_to_iso2022jp
diff --git a/enc/trans/newline.trans b/enc/trans/newline.trans
index 3b70712..409da1d 100644
--- a/enc/trans/newline.trans
+++ b/enc/trans/newline.trans
@@ -44,6 +44,7 @@ rb_universal_newline = {
1, /* input_unit_length */
1, /* max_input */
1, /* max_output */
+ stateful_decoder, /* stateful_type */
NULL, NULL, NULL, fun_so_universal_newline
};
@@ -61,6 +62,7 @@ rb_crlf_newline = {
1, /* input_unit_length */
1, /* max_input */
2, /* max_output */
+ stateless_converter, /* stateful_type */
NULL, NULL, NULL, NULL
};
@@ -78,6 +80,7 @@ rb_cr_newline = {
1, /* input_unit_length */
1, /* max_input */
1, /* max_output */
+ stateless_converter, /* stateful_type */
NULL, NULL, NULL, NULL
};
diff --git a/enc/trans/utf_16_32.trans b/enc/trans/utf_16_32.trans
index aea2ab5..3b11654 100644
--- a/enc/trans/utf_16_32.trans
+++ b/enc/trans/utf_16_32.trans
@@ -235,6 +235,7 @@ rb_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
};
@@ -259,6 +260,7 @@ rb_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
};
@@ -275,6 +277,7 @@ rb_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
};
@@ -284,6 +287,7 @@ rb_to_UTF_16LE = {
1, /* input_unit_length */
4, /* max_input */
4, /* max_output */
+ stateless_converter, /* stateful_type */
NULL, NULL, NULL, &fun_so_to_utf_16le
};
@@ -300,6 +304,7 @@ rb_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
};
@@ -309,6 +314,7 @@ rb_to_UTF_32BE = {
1, /* input_unit_length */
4, /* max_input */
4, /* max_output */
+ stateless_converter, /* stateful_type */
NULL, NULL, NULL, &fun_so_to_utf_32be
};
@@ -325,6 +331,7 @@ rb_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
};
@@ -334,6 +341,7 @@ rb_to_UTF_32LE = {
1, /* input_unit_length */
4, /* max_input */
4, /* max_output */
+ stateless_converter, /* stateful_type */
NULL, NULL, NULL, &fun_so_to_utf_32le
};