From 895fd7ec5e03c51c5ebc1424312967852703de38 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 23 Aug 2008 00:47:54 +0000 Subject: * 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 --- include/ruby/io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ruby') 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;\ -- cgit v1.2.3