[ruby-cvs:64631] shyouhei:r57465 (trunk): make FIXNUM_MAX visible from Ruby

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Mon Jan 30 19:12:18 JST 2017


shyouhei	2017-01-30 19:12:18 +0900 (Mon, 30 Jan 2017)

  New Revision: 57465

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

  Log:
    make FIXNUM_MAX visible from Ruby
    
    Because our tests now have several places where FIXNUM_MAX is needed,
    we decided to provide it along with several other constants.
    
    * template/limits.c.tmpl: new file, defining RbConfig::Limits
    
    * ext/rbconfig/sizeof/depend (limits.c): rule to generate limits.c
    
    * test/-ext-/num2int/test_num2int.rb: use RbConfig::Limits
    
    * bootstraptest/test_insns.rb: ditto.
    
    * .gitignore: ignore new generated file.

  Added files:
    trunk/template/limits.c.tmpl
  Modified files:
    trunk/bootstraptest/test_insns.rb
    trunk/ext/rbconfig/sizeof/depend
    trunk/ext/rbconfig/sizeof/extconf.rb
    trunk/template/sizes.c.tmpl
    trunk/test/-ext-/num2int/test_num2int.rb


More information about the ruby-cvs mailing list