[ruby-cvs:61680] nobu:r54518 (trunk): bignum.c: rb_cstr_parse_inum

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Apr 9 02:05:12 JST 2016


nobu	2016-04-09 02:05:12 +0900 (Sat, 09 Apr 2016)

  New Revision: 54518

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

  Log:
    bignum.c: rb_cstr_parse_inum
    
    * bignum.c (rb_cstr_parse_inum): [EXPERIMENTAL] new function to
      parse integer in C-string with length.  the name and the
      arguments may be changed in the future.
    * bignum.c (rb_str_to_inum): preserve encoding of the argument in
      error messages, and no longer needs to copy non-terminated
      strings.
    * bignum.c (rb_str2big_{poweroftwo,normal,karatsuba,gmp}): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
    trunk/internal.h
    trunk/test/ruby/test_integer.rb


More information about the ruby-cvs mailing list