From 55181301ae4f52678460b4eea5902b7cf15013ce Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 29 Apr 2010 02:20:58 +0000 Subject: [PATCH] * io.c (seek_before_access): renamed. see [ruby-core:29861]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 +++- io.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 119e5390c6..94edfdcd68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ -Thu Apr 29 11:17:08 2010 Nobuyoshi Nakada +Thu Apr 29 11:20:53 2010 Nobuyoshi Nakada + + * io.c (seek_before_access): renamed. see [ruby-core:29861]. * io.c (rb_io_s_binread): fixed rdoc. parts of a patch from Roger Pack in [ruby-core:29861]. diff --git a/io.c b/io.c index ca33af2804..b135f916cf 100644 --- a/io.c +++ b/io.c @@ -7911,7 +7911,7 @@ struct seek_arg { }; static VALUE -seek_before_read(struct seek_arg *arg) +seek_before_access(struct seek_arg *arg) { rb_io_binmode(arg->io); return rb_io_seek(arg->io, arg->offset, arg->mode); @@ -7964,7 +7964,7 @@ rb_io_s_read(int argc, VALUE *argv, VALUE io) sarg.io = arg.io; sarg.offset = offset; sarg.mode = SEEK_SET; - rb_protect((VALUE (*)(VALUE))seek_before_read, (VALUE)&sarg, &state); + rb_protect((VALUE (*)(VALUE))seek_before_access, (VALUE)&sarg, &state); if (state) { rb_io_close(arg.io); rb_jump_tag(state);