From e0e39e0db80be635fa68e28dab84966300b4eb29 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 14 Aug 2008 14:48:41 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/encoding.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/ruby/encoding.h') diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 90828f6c2d..7e188a0c1f 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 */ -- cgit v1.2.3