aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * numeric.c: Fix Numeric#step with 0 unit [#9575]marcandre2014-02-282-3/+34
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c: Simplify by getting rid of macromarcandre2014-02-281-10/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c: Create var for rb_intern("<=>")marcandre2014-02-281-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test_numeric: Strengthen tests on 64 bit platformsmarcandre2014-02-281-4/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c: Simplify [ruby-core:61106] [Bug #9570]marcandre2014-02-281-13/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: unquotednobu2014-02-281-1/+1
| | | | | | | * configure.in (SET_THREAD_NAME): needs unquoted to expand a shell variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/vcs.rb: discard error messagesnobu2014-02-281-14/+18
| | | | | | | * tool/vcs.rb (VCS#get_revisions): discard error messages for all VCS not only SVN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: check arguments of pthread_setname_npnobu2014-02-281-37/+17
| | | | | | | * configure.in (SET_THREAD_NAME): check proper arguments of pthread_setname_np() and fix definition on BSDs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-02-28svn2014-02-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c: [DOC] Add more documentation for File.basename by @avdi [fix ↵hsbt2014-02-281-1/+3
| | | | | | GH-550][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* X:Y doesn't include X in svnnaruse2014-02-271-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_set.rb: remove commented out code.hsbt2014-02-271-49/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_syslog.rb: adjust indent.hsbt2014-02-271-10/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* adjust indent and stylenobu2014-02-271-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: [DOC] Add example of generating help with optparse.zzak2014-02-272-0/+43
| | | | | | | | Patch by @joelmccracken documenting-ruby/ruby#19 https://github.com/documenting-ruby/ruby/pull/19 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_scanf.rb: include arguments in namesnobu2014-02-271-23/+3
| | | | | | | | | | * test/scanf/test_scanf.rb (ScanfTests#tests): remove duplicated tests. * test/scanf/test_scanf.rb (ScanfTests#each_test): include test arguments in test names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_scanf.rb: use tmpefilenobu2014-02-271-7/+5
| | | | | | | * test/scanf/test_scanf.rb (TestIOScanf): use different name for each tests, to get rid of weird errors on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* adjust indent and stylenobu2014-02-279-32/+47
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use strlcatnobu2014-02-272-5/+3
| | | | | | | | * addr2line.c (follow_debuglink): use strlcat instead of strncat. * dln.c (aix_loaderror): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: define SET_THREAD_NAMEnobu2014-02-272-4/+49
| | | | | | | * configure.in (SET_THREAD_NAME): define according to pthread_setname_np variations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/merger.rb: normalize the merged revision stringnaruse2014-02-271-4/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/redmine-backporter.rb: scroll 1 lind on Enter keynaruse2014-02-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* numeric.c: check signs before divisionnobu2014-02-273-0/+19
| | | | | | | | * numeric.c (ruby_num_interval_step_size): check signs and get rid of implementation dependent behavior of negative division. [ruby-core:61106] [Bug #9570] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: check __ARCHITECTURE__ properlynobu2014-02-271-3/+4
| | | | | | | * configure.in (rb_cv_architecture_available): check whether __ARCHITECTURE__ is available before replacing CFLAGS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-02-27svn2014-02-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c: [DOC] Typo in comment for _FORTIFY_SOURCE [Fixes GH-548]zzak2014-02-262-1/+6
| | | | | | | Patch by @qnet-herwin https://github.com/ruby/ruby/pull/548 [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c: suppress a warningnobu2014-02-261-1/+1
| | | | | | | * eval.c (setup_exception): suppress a "clobbered" warning by gcc 4.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (heap_pages_free_unused_pages): check tomb page availabilityko12014-02-262-18/+26
| | | | | | | | | at first. And return immediately if we don't touch sorted list any more. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c: preserve encodingnobu2014-02-263-7/+27
| | | | | | | * eval.c (setup_exception): preserve exception class name encoding in debug mode messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c: preserve errinfonobu2014-02-263-0/+30
| | | | | | | * eval.c (setup_exception): preserve errinfo across calling #to_s method on the exception. [ruby-core:61091] [Bug #9568] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: move labeled_module and labeled_classnobu2014-02-262-8/+18
| | | | | | | * test/ruby/envutil.rb (labeled_module, labeled_class): move from test/ruby/test_module.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c: remove unneeded GC guardnobu2014-02-261-1/+1
| | | | | | | * eval.c (setup_exception): remove RB_GC_GUARD which is no longer needed since r41598. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: refine error messagenobu2014-02-261-1/+1
| | | | | | | * parse.y (rb_check_id): refine error message, expected a symbol or a string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-02-26svn2014-02-251-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (sym_find): Add Symbol.find(str), which returns whether givennaruse2014-02-254-0/+45
| | | | | | string is defined as symbol or not. [Feature #7854] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use NUM2SIZET instead of NUM2INTkazu2014-02-253-4/+17
| | | | | | | | | | | | | * ext/dl/dl.c (rb_dl_realloc): use NUM2SIZET instead of NUM2INT. * ext/fiddle/fiddle.c (rb_fiddle_realloc): ditto. * ext/dl/dl.c (rb_dl_malloc): use NUM2SIZET instead of NUM2INT. Coverity Scan found this bug. * ext/fiddle/fiddle.c (rb_fiddle_malloc): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in, win32/Makefile.sub: PACKED_STRUCT with VCnobu2014-02-254-15/+26
| | | | | | | | | * configure.in (PACKED_STRUCT): check VC pragma too, and make function-style macro. * win32/Makefile.sub (PACKED_STRUCT): enable with VC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fix typonobu2014-02-251-1/+1
| | | | | | | * configure.in (PACKED_STRUCT_UNALIGNED): fix typo. Intel x86 cpus are called x86 or i386 etc, not x386. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: use PACKED_STRUCT_UNALIGNED on x64-mingwnobu2014-02-251-1/+1
| | | | | | * configure.in (PACKED_STRUCT_UNALIGNED): use on x64-mingw too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-02-25svn2014-02-251-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub: define PACKED_STRUCT.naruse2014-02-252-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * README.md, README.ja.md: removed (wrong) mode setting for emacs.usa2014-02-243-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time: only use packed struct on x86*normal2014-02-244-2/+13
| | | | | | | | | * configure.in: define PACKED_STRUCT_UNALIGNED for x86* * timev.h (struct vtm): use PACKED_STRUCT_UNALIGNED * time.c (struct time_object): ditto [Bug #9558] non-x86 cannot safely access unaligned addresses git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fiddle/test_function.rb: remove unused variables.hsbt2014-02-244-3/+9
| | | | | | | * test/fileutils/test_fileutils.rb: ditto. * test/io/console/test_io_console.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-02-24svn2014-02-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time: rearrange+pack vtm and time_object structsnormal2014-02-244-37/+74
| | | | | | | | | | | | struct time_object shrinks from 88 to 46 bytes on my 64-bit system. * configure.in: use -Wno-packed-bitfield-compat for GCC 4.4+ use __attribute__((packed)) if available * timev.h: shrink and pack struct vtm * time.c: pack struct time_object and adjust/introduce helpers [ruby-core:60794] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/xmltokens.rb: Add missing non ASCII valid characterskou2014-02-233-5/+122
| | | | | | | | | | | | | to element name characters. Now, REXML name tokens exactly match "[5] Name" in the XML spec and "[4] NCName" in the Namespaces in XML spec. See comment about the details. [Bug #9539] [ruby-core:60901] Reported by Mario Barcala. Thanks!!! * test/rexml/xpath/test_node.rb: Add tests for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix filename and function name.akr2014-02-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* option.c: use rb_w32_inet_ptonnobu2014-02-232-1/+8
| | | | | | | * ext/socket/option.c (inet_pton): use rb_w32_inet_pton, instead of inet_ntop directly, which is unavailable on older version Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/win32.c: add rb_w32_inet_ptonnobu2014-02-233-0/+23
| | | | | | | | * include/ruby/win32.h, win32/win32.c (rb_w32_inet_pton): add a wrapper function for inet_pton minimum supported client is Vista, as well as inet_ntop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e