summaryrefslogtreecommitdiffstats
path: root/include/ruby/encoding.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-14 14:48:41 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-14 14:48:41 +0000
commit0d3319e72155fd3efbe848cdd2df24ec46420a8f (patch)
tree30f0df3984d89bbeb2cb27cf69ad267edb421990 /include/ruby/encoding.h
parentc2f486a8260b5da862ff157b7b9bd35f8eb0cb9e (diff)
downloadruby-0d3319e72155fd3efbe848cdd2df24ec46420a8f.tar.gz
ruby-0d3319e72155fd3efbe848cdd2df24ec46420a8f.tar.xz
ruby-0d3319e72155fd3efbe848cdd2df24ec46420a8f.zip
* include/ruby/encoding.h (ECONV_UNIVERSAL_NEWLINE_DECODER): defined.
(ECONV_CRLF_NEWLINE_ENCODER): ditto. (ECONV_CR_NEWLINE_ENCODER): ditto. (ECONV_PARTIAL_INPUT): ditto. (ECONV_OUTPUT_FOLLOWED_BY_INPUT): ditto. * transcode.c: use ECONV_* defined as above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/encoding.h')
-rw-r--r--include/ruby/encoding.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h
index 90828f6c2..7e188a0c1 100644
--- a/include/ruby/encoding.h
+++ b/include/ruby/encoding.h
@@ -237,4 +237,13 @@ rb_econv_result_t rb_econv_convert(rb_econv_t *ec,
int flags);
void rb_econv_close(rb_econv_t *ec);
+/* flags for rb_econv_open */
+#define ECONV_UNIVERSAL_NEWLINE_DECODER 0x100
+#define ECONV_CRLF_NEWLINE_ENCODER 0x200
+#define ECONV_CR_NEWLINE_ENCODER 0x400
+
+/* flags for rb_econv_convert */
+#define ECONV_PARTIAL_INPUT 0x10000
+#define ECONV_OUTPUT_FOLLOWED_BY_INPUT 0x20000
+
#endif /* RUBY_ENCODING_H */