summaryrefslogtreecommitdiffstats
path: root/include/ruby/encoding.h
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
commit71ed0a0bc8afa7b4b814802eb85f1586bc8acf0d (patch)
treea9a36e7ad59ec87957b15802d107d3fd844ee3fa /include/ruby/encoding.h
parentbcff31b9b9f084328be181ad82bc3ae30f7be19e (diff)
downloadruby-71ed0a0bc8afa7b4b814802eb85f1586bc8acf0d.tar.gz
ruby-71ed0a0bc8afa7b4b814802eb85f1586bc8acf0d.tar.xz
ruby-71ed0a0bc8afa7b4b814802eb85f1586bc8acf0d.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@18655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/encoding.h')
-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 2d43ca354..16cfef253 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;