diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-27 17:19:19 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-27 17:19:19 +0000 |
commit | a08b97c2f6c5ef85a3d8eee0eaf73015612316b5 (patch) | |
tree | 98c2085300ced7e05b99b7c97b169a60875602b4 /include/ruby/io.h | |
parent | c28edc50123f7a58666e090cf9e440b25dd44aab (diff) |
* include/ruby/io.h (rb_io_t): refcnt field removed.
(MakeOpenFile): refcnt initialization removed.
* io.c (rb_io_fptr_finalize): don't check refcnt.
(rb_io_close_read): don't use refcnt.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/io.h')
-rw-r--r-- | include/ruby/io.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index 9ef0c5a7d1..cb2df584d1 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -35,7 +35,6 @@ typedef struct rb_io_t { int lineno; /* number of lines read */ VALUE pathv; /* pathname for file */ void (*finalize)(struct rb_io_t*,int); /* finalize proc */ - long refcnt; char *wbuf; /* wbuf_off + wbuf_len <= wbuf_capa */ int wbuf_off; @@ -109,7 +108,6 @@ typedef struct rb_io_t { fp->lineno = 0;\ fp->pathv = Qnil;\ fp->finalize = 0;\ - fp->refcnt = 1;\ fp->wbuf = NULL;\ fp->wbuf_off = 0;\ fp->wbuf_len = 0;\ |