aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* compar.c: fail if recursionnobu2013-10-095-1/+35
| | | | | | | | * compar.c (cmp_eq): fail if recursion. [ruby-core:57736] [Bug #9003] * thread.c (rb_exec_recursive_paired_outer): new function which is combinnation of paired and outer variants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_backtrace.c: copy without creating prefix stringnobu2013-10-091-2/+2
| | | | | | | * vm_backtrace.c (rb_profile_frame_full_label): copy from label directly, without creating prefix string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_require.rb: need verbosenobu2013-10-091-0/+5
| | | | | | | * test/ruby/test_require.rb (test_race_exception): need $VERBOSE setting, to emit warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/debug.h,ko12013-10-095-1/+45
| | | | | | | | | | | | | | vm_backtrace.c (rb_profile_frame_full_label): add new C API rb_profile_frame_full_label() which returns label with qualified method name. Note that in future version of Ruby label() may return same return value of full_label(). * ext/-test-/debug/profile_frames.c, test/-ext-/debug/test_profile_frames.rb: fix a test for this change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* load.c: display backtrace to $stderrnobu2013-10-085-9/+49
| | | | | | | | | * load.c (load_lock): display backtrace to $stderr at circular require. * vm_backtrace.c (rb_backtrace_print_to): new function to print backtrace to the given output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-10-09svn2013-10-081-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c: use rb_funcallvnobu2013-10-081-1/+1
| | | | | | | * io.c (rb_io_write): use rb_funcallv() instead of rb_funcall() to get rid of unnecessary alloca. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2013-10-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix a typo: s/preceging/preceding/knu2013-10-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_backtrace.c, include/ruby/debug.h: add new APIsko12013-10-087-5/+89
| | | | | | | | | | | | | * VALUE rb_profile_frame_method_name(VALUE frame) * VALUE rb_profile_frame_qualified_method_name(VALUE frame) * iseq.c (rb_iseq_klass), internal.h: add new internal function rb_iseq_method_name(). * ext/-test-/debug/profile_frames.c (profile_frames), test/-ext-/debug/test_profile_frames.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rubyoptions.rb: only one Bogus objectnobu2013-10-081-1/+3
| | | | | | | * test/ruby/test_rubyoptions.rb (test_segv_loaded_features): leave only one Bogus object in $LOADED_FEATURES. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c: use rb_hash_valuesnobu2013-10-084-3/+10
| | | | | | | | * array.c (rb_ary_uniq): use rb_hash_values(), as well as the case no block is given. * internal.h: define rb_hash_values() as internal API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c: set classnobu2013-10-081-0/+1
| | | | | | | * array.c (rb_ary_uniq): set class of the return value to the receiver class. fix failure in TestArray#test_array_subclass. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c: remove unused variablesnobu2013-10-081-2/+1
| | | | | | | * array.c (rb_ary_uniq): remove no longer used local variables since r43194. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_uniq): use rb_hash_keys().glass2013-10-084-8/+11
| | | | | | | | * internal.h: define rb_hash_keys() as internal API. * hash.c (rb_hash_keys): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: disable FIBER_USE_NATIVE on GNU/Hurd because it doesn'tkosaki2013-10-082-0/+13
| | | | | | | support a combination getcontext() and threads. Patch by Gabriele Giacone (1o5g4r8o@gmail.com). [Bug #8990][ruby-core:57685] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* cont.c: supplement comments of FIBER_USE_NATIVEnobu2013-10-081-14/+25
| | | | | | | * cont.c (FIBER_USE_NATIVE): supplement comments the reason why it is disabled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns localakr2013-10-073-3/+11
| | | | | | | time Time object as Ruby 2.0 and before. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .travis.yml: Rebuild Travis CI's "ruby-head" version on successfuldrbrain2013-10-072-0/+13
| | | | | | | | build. Patch by Konstantin Haase. [Fixes GH-417] https://github.com/ruby/ruby/pull/417 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: Use preceding-char/following-charknu2013-10-072-5/+12
| | | | | | | | (returning 0 at BOF/EOF) instead of char-before/char-after (returning nil at BOF/EOF) to avoid error from char-syntax when at BOF/EOF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-additional.el (ruby-mode-set-encoding): Add a missingknu2013-10-073-2/+11
| | | | | | | | else clause to unbreak with `cp932`, etc. * misc/ruby-mode.el (ruby-mode-set-encoding): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-additional.el (ruby-mode-set-encoding): Useknu2013-10-073-5/+25
| | | | | | | | | | | | `default-buffer-file-coding-system` if the :prefer-utf-8 property is not available. * misc/ruby-mode.el (ruby-mode-set-encoding): Ditto. * misc/ruby-additional.el (ruby-encoding-map): Override the default value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* misc/ruby-mode.el: Improve `ruby-mode-set-encoding`.knu2013-10-073-72/+147
| | | | | | | | | | | | | | | | | | | | | | | | * misc/ruby-additional.el (ruby-mode-set-encoding): Add support for `prefer-utf-8` which was introduced in Emacs trunk. * misc/ruby-additional.el (ruby-encoding-map): Add a mapping from `japanese-cp932` to `cp932` to fix the problem where saving a source file written in Shift_JIS twice would end up having `coding: japanese-cp932` which Ruby could not recognize. * misc/ruby-additional.el (ruby-mode-set-encoding): Add support for encodings mapped to nil in `ruby-encoding-map`. * misc/ruby-additional.el (ruby-encoding-map): Map `us-ascii` and `utf-8` to nil by default, meaning they need not be explicitly declared in magic comment. * misc/ruby-additional.el (ruby-encoding-map): Add type declaration for better customize UI. * misc/ruby-mode.el: Ditto for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-10-08svn2013-10-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-additional.el: Add a standard header and footer,knu2013-10-072-1/+26
| | | | | | including (provide 'ruby-additional). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Make ruby-electric play nicely with smartparens-mode.knu2013-10-072-22/+67
| | | | | | | | | | | * misc/ruby-electric.el (ruby-electric-space-can-be-expanded-p): Return nil to avoid "end" insertion when in smartparens-mode that is configured to insert "end" for the same keyword. * misc/ruby-electric.el (ruby-electric-keywords): New custom variable to replace `ruby-electric-simple-keywords-re` with. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-additional.el: Use preceding-char/following-charknu2013-10-072-7/+14
| | | | | | | | (returning 0 at BOF/EOF) instead of char-before/char-after (returning nil at BOF/EOF) to avoid error from char-syntax when at BOF/EOF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* cont.c: split conditionsnobu2013-10-074-18/+17
| | | | | | * cont.c (FIBER_USE_NATIVE): split long conditions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: add mingw FIBER_USE_NATIVEnobu2013-10-071-1/+6
| | | | | | * configure.in (FIBER_USE_NATIVE): add mingw condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: move FIBER_USE_NATIVE conditionsnobu2013-10-074-4/+16
| | | | | | | * configure.in, win32/Makefile.sub (FIBER_USE_NATIVE): move conditions from cont.c git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb: [DOC] typo in Time.rb overview by @srt32 [Fixes GH-416]zzak2013-10-072-1/+6
| | | | | | | https://github.com/ruby/ruby/pull/416 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.strptime): Use :offset.akr2013-10-073-1/+9
| | | | | | | | Patch by Felipe Contreras. [ruby-core:57694] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2013-10-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2013-10-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: fix r43164nobu2013-10-071-1/+1
| | | | | | | * test/ruby/test_io.rb (test_pid_after_close_read): fix rr43164 for platforms other than Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/-ext-/debug/test_profile_frames.rb: rename class C toko12013-10-072-4/+10
| | | | | | | | | something long name because one test depends on absence of class ::C. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2013-10-070-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/-test-/debug/profile_frames.c:ko12013-10-073-0/+99
| | | | | | | | test/-ext-/debug/test_profile_frames.rb: add a test for new C-APIs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/debug.h: add backtrace collecting APIs for profiler.ko12013-10-074-2/+124
| | | | | | | | | | | | | | | | | | | | | | | * int rb_profile_frames(int start, int limit, VALUE *buff, int *lines); Collect information of frame information. * VALUE rb_profile_frame_path(VALUE frame); * VALUE rb_profile_frame_absolute_path(VALUE frame); * VALUE rb_profile_frame_label(VALUE frame); * VALUE rb_profile_frame_base_label(VALUE frame); * VALUE rb_profile_frame_first_lineno(VALUE frame); * VALUE rb_profile_frame_classpath(VALUE frame); * VALUE rb_profile_frame_singleton_method_p(VALUE frame); Get information about each frame. These APIs are designed for profilers, for example, no objectallocation, and enough information for profilers. In this version, this API collects only collect Ruby level frames. This issue will be fixed after Ruby 2.1. * vm_backtrace.c: implement above APIs. * iseq.c (rb_iseq_klass): return local_iseq's class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/file.c: make mapping at initializationnobu2013-10-072-29/+25
| | | | | | | * win32/file.c (code_page_i, rb_w32_init_file): make encoding to code page mapping at initialization directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/file.c: use encoding indexnobu2013-10-071-7/+8
| | | | | | | * win32/file.c (code_page): use encoding index, which is primary entity, instead of encoding name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Increase open_timeout [Bug #8986]naruse2013-10-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/file.c: using st_tablenobu2013-10-071-26/+15
| | | | | | * win32/file.c (code_page): cache using st_table, not RHash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/file.c: check ASCII encodings firstnobu2013-10-071-10/+5
| | | | | | | * win32/file.c (code_page): check US-ASCII and ASCII-8bit before ordinary mapping. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: get rid of error messagenobu2013-10-071-1/+1
| | | | | | | | * test/ruby/test_io.rb (TestIO#test_pid_after_close_read): get rid of broken pipe error message from invoked command, by let it exit silently. echo in cmd.exe does not interpret double quotes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c: catch up last commit.ko12013-10-074-5/+14
| | | | | | | | | | Type of return value of rb_iseq_first_lineno() is now VALUE. * vm_insnhelper.c (argument_error): ditto. * vm_method.c (rb_method_entry_make): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c, internal.h: change to public (but internal) functionsko12013-10-077-27/+51
| | | | | | | | | | | | | | | | | | * VALUE rb_iseq_path(VALUE iseqval); * VALUE rb_iseq_absolute_path(VALUE iseqval); * VALUE rb_iseq_label(VALUE iseqval); * VALUE rb_iseq_base_label(VALUE iseqval); * VALUE rb_iseq_first_lineno(VALUE iseqval); And new (temporary) function: * VALUE rb_iseq_klass(VALUE iseqval); * iseq.c. vm_core.h (int rb_iseq_first_lineno): remove function `int rb_iseq_first_lineno(const rb_iseq_t *iseq)'. Use `VALUE rb_iseq_first_lineno(VALUE iseqval)' instead. * proc.c. vm_insnhelper.c, vm_method.c: catch up this change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: internal functionsnobu2013-10-071-2/+2
| | | | | | | * win32/win32.c (w32_spawn, w32_aspawn_flags): make internal functions static. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-10-07svn2013-10-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* NEWS: timeoutnobu2013-10-061-0/+4
| | | | | | * NEWS (Stdlib updates): uptdate of timeout. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e