aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * test/ruby/test_settracefunc.rb: add a test for set_trace_func.mame2008-04-236-50/+417
| | | | | | | | | | | | * test/ruby/envutil.rb: move "rubyexec" method from test_rubyoptions.rb. * test/ruby/test_rubyoptions.rb: use rubyexec in envutil.rb. * test/ruby/test_thread.rb: add tests to achieve over 90% test coverage of thread.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): failedkazu2008-04-232-2/+7
| | | | | | | notice moved from comment to assertion message. [ruby-dev:29127] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb (Set#each, SortedSet#each, TC_Set#test_each): Returnknu2008-04-232-5/+12
| | | | | | | an enumerator if no block is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_ssl.rb (start_server): add timeout to server.join.mame2008-04-222-1/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): Improve tests of ↵kazu2008-04-223-9/+21
| | | | | | Symbol#to_proc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_enumerator.rb: updatedmatz2008-04-221-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerator_each, enumerator_with_index): suppressnobu2008-04-226-23/+15
| | | | | | | | | | | | | | | | | | warnings. * pack.c (pack_unpack): ditto. * process.c (rb_syswait): ditto. * re.c (rb_reg_prepare_enc, rb_reg_prepare_re, rb_reg_adjust_startpos): ditto. * regparse.c (onig_name_to_group_numbers): ditto. * missing/vsnprintf.c (BSD_vfprintf): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/drb.rb (DRb::DRbServer::check_insecure_method): shouldmatz2008-04-222-2/+8
| | | | | | | check method names by symbols, not by strings. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com> in [ruby-dev:34487]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c, rational.c: fixed indent.nobu2008-04-222-236/+262
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-style.el (ruby-style-{case,label}-indent): up list fromnobu2008-04-222-0/+7
| | | | | | | indentation point. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test of Symbol#to_proc.kazu2008-04-221-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c (score_table_A0, score_table_F0):naruse2008-04-223-5/+16
| | | | | | | | | | | | type of content is unsigned char. * ext/nkf/nkf-utf8/nkf.c (push_broken_buf): 'c' is nkf_char. * ext/nkf/nkf-utf8/nkf.c (push_broken_buf): enc is 0 or pointer. * ext/nkf//nkf.c (options): type of option is unsigned char. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c (z_conv): characters must be nkf_char.naruse2008-04-222-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerator_initialize): Remove an undocumentedknu2008-04-222-26/+7
| | | | | | | | feature (passing a block to the constructor) that's broken. This is not what I intended. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (exec_event_hooks): ``inline'' is a type modifier, not a type ↵shyouhei2008-04-222-1/+6
| | | | | | itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_evalbody.c (DECL_SC_REG): use __asm__ instead.shyouhei2008-04-222-2/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_evalbody.c (DECL_SC_REG): typo fixed.nobu2008-04-222-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_enc_cr_str_buf_cat): do not use C++ comment.shyouhei2008-04-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: use AC_USE_SYSTEM_EXTENSIONS.shyouhei2008-04-221-4/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (struct timespec): needs time.h according to POSIX.nobu2008-04-222-2/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_stop_timer_thread): should clearmatz2008-04-224-4/+11
| | | | | | timer_thread_id after stopping it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_join): remove the current thread from the join listnobu2008-04-223-9/+76
| | | | | | | of the target thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* exec "/" causes SEGV.akr2008-04-221-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_get_ev_const): search from the base klass if itnobu2008-04-222-2/+7
| | | | | | | is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: avoid warnings.usa2008-04-222-5/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (eaccess): workaround for recent msvcrt's behavior.usa2008-04-223-5/+10
| | | | | | | | [ruby-core:16460] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (copy_stream_body): call rb_io_check_readable andakr2008-04-213-1/+42
| | | | | | | rb_io_check_writable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_each_value, fdbm_each_key, fdbm_each_pair):knu2008-04-219-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GDBM#{each,each_pair,each_key,each_value}: Return an enumerator if no block is given. * ext/gdbm/gdbm.c (fgdbm_each_value, fgdbm_each_key, fgdbm_each_pair): GDBM#{each,each_pair,each_key,each_value}: Return an enumerator if no block is given. * ext/openssl/ossl_config.c (ossl_config_each): OpenSSL::Config#each: Return an enumerator if no block is given. * ext/readline/readline.c (hist_each): Readline::HISTORY#each: Return an enumerator if no block is given. * ext/sdbm/init.c (fsdbm_each_value, fsdbm_each_key, fsdbm_each_pair): SDBM#{each,each_pair,each_key,each_value}: Return an enumerator if no block is given. * ext/stringio/stringio.c (strio_each_byte, strio_each): StringIO#{each,each_line,each_byte}: Return an enumerator if no block is given. * ext/stringio/stringio.c (Init_stringio): Add #lines and #bytes, which are aliases to #each_line and #each_byte, respectively. * ext/win32ole/win32ole.c (fole_each): WIN32OLE#each: Return an enumerator if no block is given. * ext/zlib/zlib.c (rb_gzreader_each_byte, rb_gzreader_each): Zlib::GzipReader#{each,each_line,each_byte}: Return an enumerator if no block is given. * ext/zlib/zlib.c (Init_zlib): Add Zlib::GzipReader#lines and #bytes, which are aliases to #each_line and #each_byte, respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: typo.nobu2008-04-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (rb_iseq_compile_with_option): check if src is a strring.nobu2008-04-212-1/+6
| | | | | | | [ruby-core:16453] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerator_init): preserve the method name in ID.matz2008-04-212-5/+12
| | | | | | | | * enumerator.c (enumerator_each): need not to call rb_to_id(). * enumerator.c (enumerator_with_index): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (defined_expr): capture exception during defined?matz2008-04-212-0/+17
| | | | | | | evaluation. a patch from wanabe <s.wanabe at gmail.com> in [ruby-dev:34461]. [ruby-core:16010] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: should include <errno.h> to refer errno.matz2008-04-212-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (rb_strftime): check errno to detect strftime(3)'s error.usa2008-04-212-1/+8
| | | | | | | | | this is workaround for recent version of MSVCRT. [ruby-dev:34456] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (ruby_xmalloc): use size_t for malloc argument instead of long.usa2008-04-203-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c: Switch stats hash key from string to symbol.technorama2008-04-205-36/+218
| | | | | | | | | | | | New method SSLContext#setup to aid C extension writers. * test/openssl/test_ssl.rb: Add tests for new method and sessions. Use threads for ssl server instead of forking. * ext/openssl/ossl_version.h: Bump version. * ext/openssl/ossl_x509ext.c: Fix warnings. * test/openssl/utils.rb: Fix warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c, include/ruby/ruby.h: Export rb_cEnumerator.knu2008-04-203-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c: Resolve the method every time an enumerationknu2008-04-202-9/+21
| | | | | | | | | method is run, not once when the enumerator is initialized as it was before, so that method_missing() and method (re)definition afterwards are both in effect; pointed out in: [ruby-core:16441] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix deadlock.akr2008-04-201-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update sprintf rdoc.akr2008-04-201-59/+62
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_expand_path): constified.nobu2008-04-201-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (copy_stream_func): suppress warnings.nobu2008-04-202-0/+10
| | | | | | | * thread_pthread.c (add_signal_thread_list): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (copy_stream_rbuf_to_dst): removed.akr2008-04-203-89/+89
| | | | | | | | (copy_stream_fallback_body): don't bypass write method. (copy_stream_body): simplified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (struct iseq_compile_data): moved label_no fromnobu2008-04-203-3/+6
| | | | | | | new_label_body(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_set_exception_table): allocates catch_table onlynobu2008-04-202-2/+5
| | | | | | | when entries exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (struct iseq_link_element, struct iseq_insn_data): madenobu2008-04-203-8/+13
| | | | | | | enum for debuggers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): fix for splat in when and rescue.nobu2008-04-203-29/+48
| | | | | | | | a patch from wanabe <s.wanabe AT gmail.com> in [ruby-dev:34429]. [ruby-core:14537] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (copy_stream_fallback): write directly (bypassing write method)akr2008-04-203-12/+35
| | | | | | | if possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid warnings in copy_stream_body.akr2008-04-201-4/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (copy_stream_fallback): read directly (bypassing readpartial)akr2008-04-203-52/+122
| | | | | | | if possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e