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 | 5ee997a6e52146480acd9b0630a45b05cebf0414 (patch) | |
| tree | 18544cbe90f7e147a0c7cd4dee7ecc700e2f7a01 /include/ruby | |
| parent | e3654128ff7873977d1a58b6d066f1bd9372d9e2 (diff) | |
| download | ruby-5ee997a6e52146480acd9b0630a45b05cebf0414.tar.gz ruby-5ee997a6e52146480acd9b0630a45b05cebf0414.tar.xz ruby-5ee997a6e52146480acd9b0630a45b05cebf0414.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@18875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
| -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 3c0fcd257..23b61463c 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 { |
