diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/encoding.h | 3 | ||||
-rw-r--r-- | include/ruby/io.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 6c443d6f0d..03aac871fe 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -217,6 +217,7 @@ typedef struct { } rb_econv_elem_t; typedef struct { + int flags; const char *source_encoding_name; const char *destination_encoding_name; @@ -273,6 +274,8 @@ const char *rb_econv_stateless_encoding(const char *stateful_enc); VALUE rb_econv_string(rb_econv_t *ec, VALUE src, long off, long len, VALUE dst, int flags); +void rb_econv_binmode(rb_econv_t *ec); + /* flags for rb_econv_open */ #define ECONV_UNIVERSAL_NEWLINE_DECODER 0x100 #define ECONV_CRLF_NEWLINE_ENCODER 0x200 diff --git a/include/ruby/io.h b/include/ruby/io.h index 7312f4e9ab..d42cadc058 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -85,6 +85,7 @@ typedef struct rb_io_t { #define FMODE_WSPLIT 0x0200 #define FMODE_WSPLIT_INITIALIZED 0x0400 #define FMODE_TRUNC 0x0800 +#define FMODE_TEXTMODE 0x1000 /* #define FMODE_PREP 0x10000 */ #define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr) |