summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-24 10:49:36 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-24 10:49:36 +0000
commit0239d1428b758faedbd4c884e37afc7bcea1467b (patch)
treef85f2b484ecd8ac66284c5fa55d20fb4029dee76 /include
parent30960b50811fac7579de17cfea453bdf0da8780c (diff)
downloadruby-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.h10
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);