[ruby-cvs:51565] nobu:r44420 (trunk): compile.c: unnamed keyword rest check

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Dec 25 22:44:19 JST 2013


nobu	2013-12-25 22:44:18 +0900 (Wed, 25 Dec 2013)

  New Revision: 44420

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

  Log:
    compile.c: unnamed keyword rest check
    
    * compile.c (iseq_set_arguments): set arg_keyword_check from
      nd_cflag, which is set by parser.  internal ID is used for
      unnamed keyword rest argument, which should be separated from no
      keyword check.
    * iseq.c (rb_iseq_parameters): if no keyword check, keyword rest is
      present.
    * parse.y (new_args_tail_gen): set keywords check to nd_cflag, which
      equals to that keyword rest is not present.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/iseq.c
    trunk/parse.y
    trunk/test/ruby/test_keyword.rb


More information about the ruby-cvs mailing list