aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* win32.c: conversion from WCHARnobu2013-08-062-11/+28
| | | | | | | | * win32/win32.c (rb_w32_conv_from_wchar): use WideCharToMultiByte(), as like as mbstr_to_wstr(), in the first step of the convertion from WCHAR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (eval_string_with_cref): copy cref to limit the scope ofshugo2013-08-063-0/+48
| | | | | | | | refienements in the eval string. [ruby-core:56329] [Bug #8722] * test/ruby/test_refinement.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: fix typonobu2013-08-061-1/+1
| | | | | | | * string.c (rb_str_ellipsize): [DOC] fix typo, "encoding" instead of "encoded" which is probably a slip of the auto-completion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: supprss warningnobu2013-08-061-2/+2
| | | | | | | * win32/win32.c (rb_w32_system_tmpdir): supprss a sign-compare warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [DOC] refine a call seq.akr2013-08-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_realloc): Use VALGRIND_MAKE_MEM_UNDEFINED toakr2013-08-064-13/+24
| | | | | | | | | | | | declare undefined memory area. (bignew_1): Ditto. * internal.h (VALGRIND_MAKE_MEM_DEFINED): Moved from gc.c (VALGRIND_MAKE_MEM_UNDEFINED): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: [DOC] Document caveats of command form of Process.spawnzzak2013-08-052-1/+14
| | | | | | | with regard to the shell and OS. Patched by Steve Klabnik [Bug #8550] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/0.9.rb: [DOC] Typo in example [Bug #8732]zzak2013-08-052-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-08-06svn2013-08-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/2.0.rb: [DOC] Document RSS::Rss by Steve Klabnik #8740zzak2013-08-053-1/+37
| | | | | | | * lib/rss/atom.rb: [DOC] Typo in rdoc by Steve Klabnik git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c: Rename local variables.akr2013-08-052-286/+290
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_trace.c: [DOC] Fix TracePoint return values in exampleszzak2013-08-052-5/+11
| | | | | | | | Based on a patch by @sho-h [Fixes GH-373] https://github.com/ruby/ruby/pull/373 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: conversion to WCHARnobu2013-08-053-12/+32
| | | | | | | | * win32/win32.c (rb_w32_write_console): use MultiByteToWideChar() for the last step of conversion to WCHAR, to get rid of warnings from rb_enc_find() in miniruby. [ruby-dev:47584] [Bug #8733] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: fix wrong trimmingnobu2013-08-052-8/+23
| | | | | | | | | * win32/win32.c (wstr_to_mbstr, mbstr_to_wstr): fix wrong trimming. WideCharToMultiByte() and MultiByteToWideChar() do not count NUL-terminator in the size for conversion result, unless the input length is -1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_econv.rb: assert_separatelynobu2013-08-051-11/+4
| | | | | | | * test/ruby/test_econv.rb (test_default_external): use assert_separately for clearer messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2013-08-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h: document which user flags are used bycharliesome2013-08-052-1/+6
| | | | | | ENCODING_MASK for better greppability git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_class_inherited_p): allow iclasses to be tested forcharliesome2013-08-053-1/+24
| | | | | | | | inheritance. [Bug #8686] [ruby-core:56174] * test/ruby/test_method.rb: add test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c: [DOC] Remove reference to Enumerator::Lazy#cyclezzak2013-08-042-2/+8
| | | | | | | | Patch by @kachick [Fixes GH-372] https://github.com/ruby/ruby/pull/372 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/0.9.rb: [DOC] Document RSS09 by Steve Klabnik [Bug #8732]zzak2013-08-042-0/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-08-05svn2013-08-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/attribute.rb: [DOC] Update example for #namespacezzak2013-08-042-2/+10
| | | | | | | Patch by Ippei Obayashi [Bug #8685] [ruby-core:56173] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_zip): performance implement by usingglass2013-08-042-5/+10
| | | | | | ALLOCA_N() to allocate tmp buffer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/extconf.rb: Don't add "-ltk -ltcl" for MacOSX frameworks, because ↵nagai2013-08-041-1/+0
| | | | | | they may link improper libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * README.EXT, README.EXT.ja: Mention rb_integer_pack andakr2013-08-033-0/+10
| | | | | | | | rb_integer_unpack. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_substr): Trivial fix for invalidheadius2013-08-031-0/+1
| | | | | | pointer when len = 0 and pos outside of string. Bug #8728. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (BARY_TRUNC): New macro.akr2013-08-032-23/+31
| | | | | | | | | | | | | | | (bary_cmp): Use BARY_TRUNC. (bary_mul_toom3): Ditto. (bary_divmod): Ditto. (abs2twocomp): Ditto. (bigfixize): Ditto. (rb_cstr_to_inum): Ditto. (big2str_karatsuba): Ditto. (bigdivrem): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_karatsuba): Don't allocate new temporary bufferakr2013-08-032-3/+9
| | | | | | | | if the buffer is enough for current invocation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bignum.c: suppress warningsnobu2013-08-031-1/+1
| | | | | | | * bignum.c (power_cache_get_power): declare as inline before call to suppress warnings from gcc 4.2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-08-04svn2013-08-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bary2bdigitdbl): New function.akr2013-08-032-15/+38
| | | | | | | | | | | | | (bdigitdbl2bary): Ditto. (bary_mul_single): Use bdigitdbl2bary. (power_cache_get_power): Ditto. (bary_divmod): Use bary2bdigitdbl. (big2str_orig): Ditto. (bigdivrem): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c: The branch condition of selecting multiplicationakr2013-08-032-3/+12
| | | | | | | | | | | | algorighms should check smaller argument because Karatsuba and Toom3 is effective only if both arguments are big. (bary_mul_toom3_branch): Compare the smaller argument to TOOM3_MUL_DIGITS. (bary_mul): Compare the smaller argument to KARATSUBA_MUL_DIGITS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_orig): Receive the number to stringize asakr2013-08-032-35/+47
| | | | | | | | | | | BDIGIT array and size. (big2str_karatsuba): Receive the number to stringize as BDIGIT array and size. Use an temporary array of BDIGIT. (rb_big2str1): Follow the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add missing requirenaruse2013-08-031-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix test failure to follow r42347 ref #3753naruse2013-08-031-7/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (MAX_BASE36_POWER_TABLE_ENTRIES): Renamed fromakr2013-08-032-18/+25
| | | | | | | | | | MAX_BIG2STR_TABLE_ENTRIES. (base36_power_cache): Renamed from big2str_power_cache. (base36_numdigits_cache): Renamed from big2str_numdigits_cache. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: no reduction with 1nobu2013-08-032-1/+6
| | | | | | | * parse.y (parser_set_integer_literal): use rb_rational_raw1() for integral rational because no reduction is needed with 1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* etc.c: encodingsnobu2013-08-032-8/+27
| | | | | | | * ext/etc/etc.c (setup_passwd, setup_group): set proper encodings to string members. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* struct.c: rb_struct_define_undernobu2013-08-034-20/+49
| | | | | | | | * struct.c (rb_struct_define_under): new function to define Struct under the given namespace, not under Struct. [Feature #8264] * ext/etc/etc.c: use rb_struct_define_under. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (value_expr_gen): now NODE_DEFN and NODE_DEFS are not voidusa2013-08-022-5/+6
| | | | | | | | value expressions. get rid of wrong warning with -w, and make to pass tests with chkbuild. ref. [Feature #3753] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: fix typonobu2013-08-021-1/+1
| | | | | | * ChangeLog: fix typo in r42335, "Appry" -> "Apply". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/syntax/refinements.rdoc: Remove mention of instance_eval anddrbrain2013-08-022-3/+8
| | | | | | | | module_eval from scope section per: http://twitter.com/shugomaeda/status/363219951336693761 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_orig): Refactored.akr2013-08-022-20/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2str_orig): Rename a local variable.akr2013-08-022-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bigadd_core): Removed.akr2013-08-022-9/+8
| | | | | | | | (bigadd): Use bary_add instead of bigadd_core. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big2str1): Simplify power_level calculation.akr2013-08-022-14/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_zip): use rb_ary_new2() to create bufferglass2013-08-022-5/+9
| | | | | | if rb_block_arity() > 1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-08-03svn2013-08-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: Add the description that IO#seek supports SEEK_DATAglass2013-08-022-1/+7
| | | | | | and SEEK_HOLE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (m_core_define_method, m_core_define_singleton_method): nowusa2013-08-023-2/+19
| | | | | | | | | | | | the value of def-expr is the Symbol of the name of the method, not nil. ref. [ruby-dev:42151] [Feature #3753] * test/ruby/test_syntax.rb (TestSyntax#test_value_of_def): test for above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e