[ruby-cvs:70380] nobu:r63290 (trunk): string.c: adjust to rb_str_upto_each

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Apr 28 20:16:55 JST 2018


nobu	2018-04-28 20:16:54 +0900 (Sat, 28 Apr 2018)

  New Revision: 63290

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

  Log:
    string.c: adjust to rb_str_upto_each
    
    * range.c (range_each_func): adjust the signature of the callback
      function to rb_str_upto_each, and exit the loop if the callback
      returned non-zero.
    
    * string.c (rb_str_upto_endless_each): ditto.

  Modified files:
    trunk/internal.h
    trunk/range.c
    trunk/string.c


More information about the ruby-cvs mailing list