diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-23 00:47:54 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-23 00:47:54 +0000 |
commit | 895fd7ec5e03c51c5ebc1424312967852703de38 (patch) | |
tree | 4810ae8726eb8d7088be93d124dee377a37ae399 /include | |
parent | 1c44355be9914291d5c42402360e1fa86786b6c5 (diff) | |
download | ruby-895fd7ec5e03c51c5ebc1424312967852703de38.tar.gz |
* include/ruby/io.h (rb_io_t): remove path field and add pathv field.
(MakeOpenFile): initialize pathv as Qnil.
* gc.c: mark pathv field in T_FILE.
* io.c: follow the rb_io_t field change.
* file.c: ditto.
* ext/socket/socket.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index d42cadc058..be34231bd0 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -33,7 +33,7 @@ typedef struct rb_io_t { int mode; /* mode flags */ rb_pid_t pid; /* child's pid (for pipes) */ int lineno; /* number of lines read */ - char *path; /* pathname for file */ + VALUE pathv; /* pathname for file */ void (*finalize)(struct rb_io_t*,int); /* finalize proc */ long refcnt; @@ -103,7 +103,7 @@ typedef struct rb_io_t { fp->mode = 0;\ fp->pid = 0;\ fp->lineno = 0;\ - fp->path = NULL;\ + fp->pathv = Qnil;\ fp->finalize = 0;\ fp->refcnt = 1;\ fp->wbuf = NULL;\ |