diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-24 10:49:36 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-24 10:49:36 +0000 |
commit | 0239d1428b758faedbd4c884e37afc7bcea1467b (patch) | |
tree | f85f2b484ecd8ac66284c5fa55d20fb4029dee76 /include | |
parent | 30960b50811fac7579de17cfea453bdf0da8780c (diff) | |
download | ruby-0239d1428b758faedbd4c884e37afc7bcea1467b.tar.gz ruby-0239d1428b758faedbd4c884e37afc7bcea1467b.tar.xz ruby-0239d1428b758faedbd4c884e37afc7bcea1467b.zip |
* include/ruby/encoding.h (rb_econv_t): use rb_econv_option_t.
* transcode.c: follow the rb_econv_t change.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/encoding.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 9ad7d3b53..55b5bde35 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -216,6 +216,11 @@ typedef struct { typedef struct { int flags; + /* replacement character, etc. */ +} rb_econv_option_t; + +typedef struct { + rb_econv_option_t opts; const char *source_encoding_name; const char *destination_encoding_name; @@ -247,11 +252,6 @@ typedef struct { rb_encoding *destination_encoding; } rb_econv_t; -typedef struct { - int flags; - /* replacement character, etc. */ -} rb_econv_option_t; - VALUE rb_str_transcode(VALUE str, VALUE to, rb_econv_option_t *ecopts); void rb_econv_opts(VALUE hash, rb_econv_option_t *opts); |