mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix to compile on yarv, ruby_errinfo -> rb_errinfo()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e7a993656c
commit
0fe6b888c9
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Jan 2 10:29:54 2007 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* ext/zlib/zlib.c: fix to compile on YARV
|
||||||
|
ruby_errinfo -> rb_errinfo()
|
||||||
|
|
||||||
Mon Jan 01 08:07:06 2007 Koichi Sasada <ko1@atdot.net>
|
Mon Jan 01 08:07:06 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* ext/tk/tcltklib.c : fix to compile on YARV
|
* ext/tk/tcltklib.c : fix to compile on YARV
|
||||||
|
|
|
@ -1759,7 +1759,7 @@ gzfile_read_raw_rescue(VALUE arg)
|
||||||
{
|
{
|
||||||
struct gzfile *gz = (struct gzfile*)arg;
|
struct gzfile *gz = (struct gzfile*)arg;
|
||||||
VALUE str = Qnil;
|
VALUE str = Qnil;
|
||||||
if (rb_obj_is_kind_of(ruby_errinfo(), rb_eNoMethodError)) {
|
if (rb_obj_is_kind_of(rb_errinfo(), rb_eNoMethodError)) {
|
||||||
str = rb_funcall(gz->io, id_read, 1, INT2FIX(GZFILE_READ_SIZE));
|
str = rb_funcall(gz->io, id_read, 1, INT2FIX(GZFILE_READ_SIZE));
|
||||||
if (!NIL_P(str)) {
|
if (!NIL_P(str)) {
|
||||||
Check_Type(str, T_STRING);
|
Check_Type(str, T_STRING);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue