mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/encoding.h (rb_econv_option_t): removed. Since
rb_econv_option_t has only one field, int flags, rb_econv_option_t is replaced by int. * include/ruby/io.h: follow the above change. * io.c: ditto. * transcode.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b00710df4e
commit
56343375b8
5 changed files with 103 additions and 109 deletions
|
@ -57,7 +57,7 @@ typedef struct rb_io_t {
|
|||
struct rb_io_enc_t {
|
||||
rb_encoding *enc;
|
||||
rb_encoding *enc2;
|
||||
rb_econv_option_t opts;
|
||||
int flags;
|
||||
} encs;
|
||||
|
||||
rb_econv_t *readconv;
|
||||
|
@ -68,7 +68,7 @@ typedef struct rb_io_t {
|
|||
|
||||
rb_econv_t *writeconv;
|
||||
VALUE writeconv_stateless;
|
||||
rb_econv_option_t writeconv_pre_opts;
|
||||
int writeconv_pre_flags;
|
||||
int writeconv_initialized;
|
||||
|
||||
} rb_io_t;
|
||||
|
@ -127,7 +127,7 @@ typedef struct rb_io_t {
|
|||
fp->tied_io_for_writing = 0;\
|
||||
fp->encs.enc = NULL;\
|
||||
fp->encs.enc2 = NULL;\
|
||||
fp->encs.opts.flags = 0;\
|
||||
fp->encs.flags = 0;\
|
||||
} while (0)
|
||||
|
||||
FILE *rb_io_stdio_file(rb_io_t *fptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue