[ruby-cvs:55397] ko1:r48247 (trunk): * vm_core.h: change semantics of opt_num and opt_table.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Mon Nov 3 13:43:08 JST 2014


ko1	2014-11-03 13:43:07 +0900 (Mon, 03 Nov 2014)

  New Revision: 48247

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48247

  Log:
    * vm_core.h: change semantics of opt_num and opt_table.
      `opt_num' was the number of optional parameters + 1.
      `opt_table' has "opt_num" entries.
      Change them to:
      `opt_num' is the number of optional parameters.
      `opt_talbe' has "opt_num + 1" entries.
      This change simplify parameter fitting logics.
    * compile.c: catch up this change.
    * iseq.c: ditto.
    * proc.c: ditto.
    * vm_args.c: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/iseq.c
    trunk/proc.c
    trunk/vm_args.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list