* eval.c (top_include): include in the wrapped load is done for
the wrapper, not for a singleton class for wrapped main. [ruby-dev:23305] * bignum.c (rb_big_eq): use temporary double variable to save the result (internal float register may be bigger than 64 bits, for example, 80 bits on x86). [ruby-dev:23311] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6c70639e7b
commit
c0ab40c785
16
ChangeLog
16
ChangeLog
@ -1,7 +1,19 @@
|
|||||||
|
Fri Apr 2 17:27:17 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (top_include): include in the wrapped load is done for
|
||||||
|
the wrapper, not for a singleton class for wrapped main.
|
||||||
|
[ruby-dev:23305]
|
||||||
|
|
||||||
|
Fri Apr 2 15:13:44 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* bignum.c (rb_big_eq): use temporary double variable to save the
|
||||||
|
result (internal float register may be bigger than 64 bits, for
|
||||||
|
example, 80 bits on x86). [ruby-dev:23311]
|
||||||
|
|
||||||
Fri Apr 2 14:35:26 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Apr 2 14:35:26 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (block_pass): should increment unique identifier of the
|
* eval.c (block_pass): should generate unique identifier of the
|
||||||
block. [ruby-talk:96363]
|
pushing block. [ruby-talk:96363]
|
||||||
|
|
||||||
Fri Apr 2 11:36:20 2004 Minero Aoki <aamine@loveruby.net>
|
Fri Apr 2 11:36:20 2004 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
11
bignum.c
11
bignum.c
@ -978,10 +978,13 @@ rb_big_eq(x, y)
|
|||||||
case T_BIGNUM:
|
case T_BIGNUM:
|
||||||
break;
|
break;
|
||||||
case T_FLOAT:
|
case T_FLOAT:
|
||||||
if (rb_big2dbl(x) == RFLOAT(y)->value)
|
{
|
||||||
return Qtrue;
|
double a, b;
|
||||||
else
|
|
||||||
return Qfalse;
|
a = RFLOAT(y)->value;
|
||||||
|
b = rb_big2dbl(x);
|
||||||
|
return (a == b)?Qtrue:Qfalse;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return rb_equal(y, x);
|
return rb_equal(y, x);
|
||||||
}
|
}
|
||||||
|
8
eval.c
8
eval.c
@ -7222,12 +7222,10 @@ top_include(argc, argv, self)
|
|||||||
{
|
{
|
||||||
rb_secure(4);
|
rb_secure(4);
|
||||||
if (ruby_wrapper) {
|
if (ruby_wrapper) {
|
||||||
rb_warn("main#include in the wrapped load is effective only for toplevel");
|
rb_warning("main#include in the wrapped load is effective only in wrapper module");
|
||||||
return rb_obj_extend(argc, argv, self);
|
return rb_mod_include(argc, argv, ruby_wrapper);
|
||||||
}
|
|
||||||
else {
|
|
||||||
return rb_mod_include(argc, argv, rb_cObject);
|
|
||||||
}
|
}
|
||||||
|
return rb_mod_include(argc, argv, rb_cObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE rb_f_trace_var();
|
VALUE rb_f_trace_var();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user