diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-22 09:14:24 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-22 09:14:24 +0000 |
commit | e2d384d628c8e4bd59300844e9111645d1070d5a (patch) | |
tree | cce3e69dea4b7f93481a4cdc5d16c61558cfa546 /error.c | |
parent | 8347974c9fd6fcfd6af8d06f5c8ceca3bce76057 (diff) | |
download | ruby-e2d384d628c8e4bd59300844e9111645d1070d5a.tar.gz |
* file.c (rb_find_file_ext): should not terminate searching with
empty path, just ignore.
* dir.c: remove <sys/parm.h> inclusion.
* compar.c (cmp_eq,cmp_gt,cmp_ge,cmp_lt,cmp_le): check using
rb_cmpint().
* error.c (init_syserr): remove sys_nerr dependency.
* numeric.c (num_cmp): added to satisfy Comparable assumption.
* eval.c (rb_add_method): "initialize" should be public if it is a
singleton method.
* regex.c (re_match): avoid dereferencing if size == 0.
(ruby-bugs-ja:PR#360)
* time.c (time_cmp): should return nil if an operand is not a
number nor time. (ruby-bugs-ja:PR#359)
* file.c (rb_stat_cmp): should return nil if an operand is not
File::Stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -452,7 +452,7 @@ rb_invalid_str(str, type) rb_raise(rb_eArgError, "invalid value for %s: %s", type, RSTRING(s)->ptr); } -static st_table *syserr_tbl = 0; +static st_table *syserr_tbl; static VALUE set_syserr(n, name) @@ -653,8 +653,7 @@ rb_sys_fail(mesg) } errno = 0; - ee = get_syserr(n); - ee = rb_exc_new2(ee, buf); + ee = rb_exc_new2(get_syserr(n), buf); rb_iv_set(ee, "errno", INT2NUM(n)); rb_exc_raise(ee); } |