summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-16 06:25:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-16 06:25:38 +0000
commit4dff8b24286e84c1c2a2bd7e422d490327470d26 (patch)
treea9a36e7ad59ec87957b15802d107d3fd844ee3fa /include
parent7a0bea4fd327ec0f572f25a24adc7f0b2f9821e8 (diff)
* include/ruby/encoding.h (rb_econv_elem_t): fields removed: from and
to. (rb_econv_t): new fields: source_encoding_name and destination_encoding_name. * transcode.c (rb_econv_open_by_transcoder_entries): initialize the new fields. (rb_econv_open): set up the new fields. (econv_inspect): use the new fields. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/encoding.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h
index 2d43ca354a..16cfef2539 100644
--- a/include/ruby/encoding.h
+++ b/include/ruby/encoding.h
@@ -208,8 +208,6 @@ typedef enum {
} rb_econv_result_t;
typedef struct {
- const char *from;
- const char *to;
struct rb_transcoding *tc;
unsigned char *out_buf_start;
unsigned char *out_data_start;
@@ -219,6 +217,9 @@ typedef struct {
} rb_econv_elem_t;
typedef struct {
+ const char *source_encoding_name;
+ const char *destination_encoding_name;
+
unsigned char *in_buf_start;
unsigned char *in_data_start;
unsigned char *in_data_end;