aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * array.c (rb_ary_zip): performance improvement by avoidingglass2013-08-022-13/+34
| | | | | | array creation if rb_block_arity() > 1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (power_cache_get_power): Appry bigtrunc to the result ofakr2013-08-023-9/+28
| | | | | | | | | bigsq. (big2str_karatsuba): Fix number of leading zero characters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: calculate powers of tennobu2013-08-024-4/+14
| | | | | | | * parse.y (parser_yylex): calculate denominator directly as powers of ten, not parsing string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: ripper for new literalsnobu2013-08-021-1/+3
| | | | | | | * parse.y (ripper_validate_object): ripper support for new literals, tRATIONAL and tIMAGINARY. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: parse preciselynobu2013-08-023-59/+92
| | | | | | | | | | | | * parse.y (parser_number_literal_suffix): return bit set of found suffixes. * parse.y (parser_set_number_literal, parser_set_integer_literal): split from parser_number_literal_suffix to set yyvlal. * parse.y (parser_yylex): parse rational number literal with decimal point precisely. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: simplify numericsnobu2013-08-022-59/+14
| | | | | | | | * parse.y (simple_numeric): integrate numeric literals and simplify numeric rules. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eventids2.c: new literalsnobu2013-08-023-0/+36
| | | | | | | | * ext/ripper/eventids2.c (ripper_init_eventids2): ripper support for new literals, tRATIONAL and tIMAGINARY. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bignum.c: suppress a warningnobu2013-08-021-2/+1
| | | | | | | * bignum.c (rb_cstr_to_inum): remove set but unused variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_karatsuba): Reduce power_level more than one atakr2013-08-022-19/+81
| | | | | | | | | recursion, if possible. (rb_big2str1): Follow the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bary_mul): Swap x and y for bary_mul1 if x is longer than y.akr2013-08-022-6/+19
| | | | | | | | [ruby-dev:47565] [Bug #8719] Reported by Narihiro Nakamura. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (negate_lit): add T_RATIONAL and T_COMPLEX to the switchcharliesome2013-08-023-0/+15
| | | | | | | | | statement, and call rb_bug() if an unknown type is passed to negate_lit(). [ruby-core:56316] [Bug #8717] * bootstraptest/test_literal_suffix.rb (assert_equal): add test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* nmake doesn't out put targetsnaruse2013-08-021-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix test failure on Windows because of an extra warningnaruse2013-08-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/syntax/refinements.rdoc: Improve description of where you maydrbrain2013-08-022-3/+10
| | | | | | | activate refinements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_orig): Remove len argument.akr2013-08-012-10/+20
| | | | | | | | | (big2str_karatsuba): Ditto. (rb_big2str1): Follow above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: fix typos in the description of number literal suffixes.eregon2013-08-011-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: Add the description of number literal suffixes.mrkn2013-08-012-0/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Show more portable and detailed info on NoMemoryError ref #8711naruse2013-08-011-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_literal_suffix.rb: add two test cases tomrkn2013-08-012-0/+7
| | | | | | examine that "1if true" and "1rescue nil" are recognized as 1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Show memory usage on NoMemoryError ref #8711naruse2013-08-011-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-08-02svn2013-08-011-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2013-08-010-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c (rb_flt_rationalize_with_prec): new public C functionmrkn2013-08-015-69/+244
| | | | | | | | | | | | | | | | | | | to rationalize a Float instance with a precision. * rational.c (rb_flt_rationalize): new public C function to rationalize a Float instance. A precision is calculated from the given float number. * include/ruby/intern.h: Add rb_flt_rationalize_with_prec and rb_flt_rationalize. * parse.y: implement number literal suffixes, 'r' and 'i'. [ruby-core:55096] [Feature #8430] * bootstraptest/test_literal_suffix.rb: add tests for parser to scan number literals with the above tsuffixes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big2str1): Remove a local variable.akr2013-08-012-4/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cstr_to_inum): Use power_cache_get_power.akr2013-08-012-4/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_rindex): remove comment.glass2013-08-011-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big2str1): Raise an error for too big number.akr2013-08-012-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (power_cache_get_power): Hide cached Bignum objects.akr2013-08-012-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big2str1): Remove non-trim mode.akr2013-08-012-25/+52
| | | | | | | | | | | (rb_big2str0): Non-trim mode implemented here. (big2str_find_n1): Change the result type to long again. (big2str_base_powerof2): Don't take arguments: len and trim. (rb_big2str): Follow above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2013-08-011-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_alloc): New function to allocate the result string. akr2013-08-012-47/+75
| | | | | | | | | | | | It is called after actual length is calculated. (big2str_struct): Add fields: negative, result and ptr. (big2str_orig): Write out the result via b2s->ptr. (big2str_orig): Ditto. (rb_big2str1): Don't allocate the result string at beginning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_orig): Use temporary buffer when trim mode.akr2013-07-312-5/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_orig): Simplified because RBIGNUM_LEN(x) <= 2 now.akr2013-07-312-17/+23
| | | | | | | | | (big2str_struct): Two fields added: hbase2, hbase2_numdigits. (rb_big2str1): Initialize above fields. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* options.rb: include root for out-place buildnobu2013-07-314-1/+28
| | | | | | | | * lib/rdoc/options.rb (RDoc#finish): include root path in include paths, to work in another directory than the source directory. [ruby-core:56282] [Bug #8712] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rdoc_markup_pre_process.rb: input tempfilenobu2013-07-312-1/+18
| | | | | | | * test/test_rdoc_markup_pre_process.rb (TestRDocMarkupPreProcess#setup): fix input_file_name, as the test script is not pre-processed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_karatsuba): Fix a condition of power_level.akr2013-07-312-1/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix a typo.knu2013-07-311-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2013-07-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (LOG2_KARATSUBA_BIG2STR_DIGITS): Removed.akr2013-07-312-34/+49
| | | | | | | | | | | | (KARATSUBA_BIG2STR_DIGITS): Removed. (big2str_numdigits_cache): New variable. (power_cache_get_power): Merged with power_cache_get_power0. This function returns maxpow_in_bdigit_dbl(base)**(2**power_level). (rb_big2str1): use power_cache_get_power. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_find_n1): Change the return type to size_t.akr2013-07-312-11/+22
| | | | | | | | | | (big2str_orig): Ditto. (big2str_karatsuba): Ditto. (rb_big2str1): Follow the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-08-01svn2013-07-311-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r42255 ref #8711naruse2013-07-311-4/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (power_cache_get_power): Change numdigits_ret to size_t *.akr2013-07-312-8/+17
| | | | | | | | | | (big2str_orig): Change len argument to size_t. (big2str_karatsuba): Ditto. (rb_big2str1): Follow the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/parse/test_notation_declaration.rb: Change classkou2013-07-312-1/+6
| | | | | | | name to follow file name change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Rename to ...kou2013-07-312-0/+5
| | | | | | | * test/rexml/parse/test_notation_declaration.rb: ... this. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_mixin.rb: Remove duplicated tests.kou2013-07-312-51/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Fix typos in expectedkou2013-07-312-2/+10
| | | | | | | | | | value. pubilc -> public ^^ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Add tests that focuskou2013-07-312-0/+21
| | | | | | | system literal in external ID system notation declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bary_cmp): Extracted from rb_big_cmp.akr2013-07-312-35/+68
| | | | | | | | | | | (power_cache_get_power): Change n1 argument (number of digits) to power_level which is just passed to power_cache_get_power0. (big2str_karatsuba): Ditto. (rb_big2str1): Calculate the initial power_level. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Fix a typo.kou2013-07-312-1/+8
| | | | | | | | | Extern ID -> ExternalID ^^ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e