[ruby-cvs:66989] nagachika:r59811 (ruby_2_4): merge revision(s) 59624, 59626: [Backport #13830]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Sun Sep 10 12:49:10 JST 2017


nagachika	2017-09-10 12:49:10 +0900 (Sun, 10 Sep 2017)

  New Revision: 59811

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

  Log:
    merge revision(s) 59624,59626: [Backport #13830]
    
    ruby.h: fix rb_scan_args_trail_idx
    
    * include/ruby/ruby.h (rb_scan_args_trail_idx): fix the case both
      of optional and rest arguments are defined.
      [ruby-core:82427] [Bug #13830]
    
    * include/ruby/ruby.h (rb_scan_args_n_trail): ditto.
    non-keywords hash
    
    * class.c (rb_scan_args), include/ruby/ruby.h (rb_scan_args_set):
      return non-keywords elements only in the last hash when keyword
      arguments are extracted from it, as well as methods defined in
      ruby level.  [ruby-core:82427] [Bug #13830]

  Added directories:
    branches/ruby_2_4/ext/-test-/scan_args/
  Added files:
    branches/ruby_2_4/test/-ext-/test_scan_args.rb
  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/class.c
    branches/ruby_2_4/include/ruby/ruby.h
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list