Project

General

Profile

« Previous | Next » 

Revision 63daa7c0

Added by akr (Akira Tanaka) about 17 years ago

  • include/ruby/io.h (rb_io_t): new fields: readconv, crbuf, crbuf_off,
    crbuf_len, crbuf_capa.
    (MakeOpenFile): initialize them.

  • io.c (io_shift_crbuf): new function.
    (io_getc): use econv.
    (rb_io_fptr_finalize): finalize readconv and crbuf.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e