diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-26 16:09:29 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-26 16:09:29 +0000 |
commit | db6ec3105ea5c3b7e30e15ec0a0b4d1a5dbe0ac3 (patch) | |
tree | 18544cbe90f7e147a0c7cd4dee7ecc700e2f7a01 /include/ruby/encoding.h | |
parent | 99a26ac1642cbe3f27f939cc53c0bef5a0ac15a1 (diff) | |
download | ruby-db6ec3105ea5c3b7e30e15ec0a0b4d1a5dbe0ac3.tar.gz |
* include/ruby/encoding.h (rb_econv_result_t): enumeration constant:
econv_incomplete_input.
* io.c (finish_writeconv): check econv_incomplete_input.
* transcode.c (transcode_restartable0): return econv_incomplete_input
for unexpected end of source buffer.
(trans_sweep): check econv_incomplete_input.
(rb_trans_conv): ditto.
(rb_econv_convert0): ditto.
(rb_econv_convert): ditto.
(transcode_loop): ditto.
(make_econv_exception): change message for econv_incomplete_input.
(econv_result_to_symbol): return :incomplete_input for
econv_incomplete_input.
(ecerr_incomplete_input): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/encoding.h')
-rw-r--r-- | include/ruby/encoding.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 3c0fcd2572..23b61463c3 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -203,6 +203,7 @@ typedef enum { econv_source_buffer_empty, econv_finished, econv_output_followed_by_input, + econv_incomplete_input, } rb_econv_result_t; typedef struct { |