Project

General

Profile

« Previous | Next » 

Revision f8665e42

Added by usa (Usaku NAKAMURA) almost 11 years ago

merge revision(s) 40525,40526,40528,40530: [Backport #8345]

    proc.c: remove unnecessary static function

    * proc.c (proc_lambda): remove and use rb_block_lambda directly

instead.
* include/ruby/intern.h (rb_block_lambda): add declaration instead of
deprecated rb_f_lambda.

    * proc.c (mproc, mlambda): use frozen core methods instead of plain
      global methods, so that methods cannot be overridden.
      [ruby-core:54687] [Bug #8345]

    * vm.c (Init_VM): define proc and lambda on the frozen core object.

    * defs/id.def (predefined): add "idProc".

    * proc.c (mnew, mproc, mlambda): use predefined IDs.

    * vm.c (Init_VM): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@41649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e