mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* hash.c (rb_hash_equal): should check default values.
* ext/socket/socket.c (s_recvfrom): update RSTRING len. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e77de81516
commit
d6f263a620
6 changed files with 14 additions and 6 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
Wed Aug 7 09:51:54 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* hash.c (rb_hash_equal): should check default values.
|
||||||
|
|
||||||
|
Fri Aug 2 01:21:52 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/socket.c (s_recvfrom): update RSTRING len.
|
||||||
|
|
||||||
Thu Aug 1 13:51:30 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Thu Aug 1 13:51:30 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
* io.c (io_fread): return value was longer when EWOULDBLOCK
|
* io.c (io_fread): return value was longer when EWOULDBLOCK
|
||||||
|
|
2
eval.c
2
eval.c
|
@ -1566,7 +1566,7 @@ rb_undef(klass, id)
|
||||||
VALUE origin;
|
VALUE origin;
|
||||||
NODE *body;
|
NODE *body;
|
||||||
|
|
||||||
if (ruby_class == rb_cObject) {
|
if (klass == rb_cObject) {
|
||||||
rb_secure(4);
|
rb_secure(4);
|
||||||
}
|
}
|
||||||
if (rb_safe_level() >= 4 && !OBJ_TAINTED(klass)) {
|
if (rb_safe_level() >= 4 && !OBJ_TAINTED(klass)) {
|
||||||
|
|
|
@ -646,6 +646,7 @@ def extmake(target)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
$static = $target if $static
|
||||||
if File.exist?("./Makefile")
|
if File.exist?("./Makefile")
|
||||||
if $static
|
if $static
|
||||||
$extlist.push [$static, File.basename($target)]
|
$extlist.push [$static, File.basename($target)]
|
||||||
|
|
5
gc.c
5
gc.c
|
@ -24,11 +24,8 @@
|
||||||
void re_free_registers _((struct re_registers*));
|
void re_free_registers _((struct re_registers*));
|
||||||
void rb_io_fptr_finalize _((struct OpenFile*));
|
void rb_io_fptr_finalize _((struct OpenFile*));
|
||||||
|
|
||||||
#ifndef setjmp
|
#if !defined(setjmp) && defined(HAVE__SETJMP)
|
||||||
#ifdef HAVE__SETJMP
|
|
||||||
#define setjmp(env) _setjmp(env)
|
#define setjmp(env) _setjmp(env)
|
||||||
#define longjmp(env,val) _longjmp(env,val)
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Make alloca work the best possible way. */
|
/* Make alloca work the best possible way. */
|
||||||
|
|
2
hash.c
2
hash.c
|
@ -805,6 +805,8 @@ rb_hash_equal(hash1, hash2)
|
||||||
if (TYPE(hash2) != T_HASH) return Qfalse;
|
if (TYPE(hash2) != T_HASH) return Qfalse;
|
||||||
if (RHASH(hash1)->tbl->num_entries != RHASH(hash2)->tbl->num_entries)
|
if (RHASH(hash1)->tbl->num_entries != RHASH(hash2)->tbl->num_entries)
|
||||||
return Qfalse;
|
return Qfalse;
|
||||||
|
if (!rb_equal(RHASH(hash1)->ifnone, RHASH(hash2)->ifnone))
|
||||||
|
return Qfalse;
|
||||||
|
|
||||||
data.tbl = RHASH(hash2)->tbl;
|
data.tbl = RHASH(hash2)->tbl;
|
||||||
data.result = Qtrue;
|
data.result = Qtrue;
|
||||||
|
|
|
@ -1273,7 +1273,7 @@ The hash keys are case sensitive. Ask the samples.
|
||||||
end
|
end
|
||||||
if @output_hidden
|
if @output_hidden
|
||||||
hidden = @output_hidden.collect{|k,v|
|
hidden = @output_hidden.collect{|k,v|
|
||||||
"<INPUT TYPE=HIDDEN NAME=\"#{k}\" VALUE=\"#{v}\">"
|
"<DIV><INPUT TYPE=HIDDEN NAME=\"#{k}\" VALUE=\"#{v}\"></DIV>"
|
||||||
}.to_s
|
}.to_s
|
||||||
body += hidden
|
body += hidden
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue