mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eavl.c (proc_eq): compare also arguments and environment.
[ruby-dev:22590] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
551e417145
commit
fd23f145e6
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Jan 16 14:56:49 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eavl.c (proc_eq): compare also arguments and environment.
|
||||
[ruby-dev:22590]
|
||||
|
||||
Fri Jan 16 14:33:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* marshal.c (class2path): get class path and check referable.
|
||||
|
|
6
eval.c
6
eval.c
|
@ -8212,8 +8212,10 @@ proc_eq(self, other)
|
|||
if (CLASS_OF(self) != CLASS_OF(other)) return Qfalse;
|
||||
Data_Get_Struct(self, struct BLOCK, data);
|
||||
Data_Get_Struct(other, struct BLOCK, data2);
|
||||
if (data->body == data2->body) return Qtrue;
|
||||
return Qfalse;
|
||||
if (data->body != data2->body) return Qfalse;
|
||||
if (data->var != data2->var) return Qfalse;
|
||||
if (data->frame.uniq != data2->frame.uniq) return Qfalse;
|
||||
return Qtrue;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue