* proc.c (method_hash, proc_hash): Fix {Unbound}Method#hash

[Bug #6048]. Isolate hash computation for proc

* internal.h: Declaration for above

* vm_method.c (rb_method_definition_hash): Computation for
  hash part of a method definition

* method.h: Declaration for above

* test/ruby/test_method.rb: Test for above

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2012-02-21 00:13:44 +00:00
parent 3052f75db4
commit f12c14d3ef
6 changed files with 63 additions and 4 deletions

View file

@ -150,6 +150,7 @@ int rb_is_junk_name(VALUE name);
/* proc.c */
VALUE rb_proc_location(VALUE self);
st_index_t rb_hash_proc(st_index_t hash, VALUE proc);
/* rational.c */
VALUE rb_lcm(VALUE x, VALUE y);