aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * suppress warnings with -Wwrite-string.nobu2008-05-3131-61/+65
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_delete_if): should return enumerator if no blockmatz2008-05-312-0/+6
| | | | | | is given. [ruby-dev:34901] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, configure.in (warnflags): defaulted to -Wallnobu2008-05-313-1/+11
| | | | | | | -Wno-parentheses with gcc. [ruby-dev:34810] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t andnobu2008-05-315-6/+48
| | | | | | | rb_thread_t from vm_core.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: renamed include guard.nobu2008-05-312-8/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (assert_normal_exit): show pid when fail.akr2008-05-312-2/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.kazu2008-05-302-1/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_regexp.rb: add tests.mame2008-05-302-10/+49
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_signal.rb: add tests to achieve over 80% testmame2008-05-302-0/+104
| | | | | | | coverage of signal.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (esignal_signo): fix SignalException#signo which returnedmame2008-05-302-4/+23
| | | | | | | | | | nil absolutely. * signal.c (esignal_init): always prepend "SIG" to a string that is returned by SignalException#signm. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_argf.rb: rename a conflicting method name.mame2008-05-304-3/+11
| | | | | | | | | * test/ruby/test_string.rb: ditto. * test/ruby/test_io.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (defined_expr): fix SEGV by defined?([1]).mame2008-05-302-10/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (prelude.c): simply depends on PREP. [ruby-dev:34877]nobu2008-05-305-26/+17
| | | | | | | * enc/make_encdb.rb, enc/trans/make_transdb.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (struct rb_unblock_callback), thread.cnobu2008-05-301-0/+9
| | | | | | | | | | | (set_unblock_function), thread_{pthread,win32}.c (native_sleep): extracted from struct rb_thread_struct. * thread.c (reset_unblock_function): not check interrupts at leaving blocking region. [ruby-dev:34874] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (struct rb_unblock_callback), thread.cnobu2008-05-304-23/+34
| | | | | | | | | | | (set_unblock_function), thread_{pthread,win32}.c (native_sleep): extracted from struct rb_thread_struct. * thread.c (reset_unblock_function): not check interrupts at leaving blocking region. [ruby-dev:34874] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: missing log for r16677.nobu2008-05-301-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/utf_8.c: add UTF8-MAC (UTF-8-MAC).naruse2008-05-292-0/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_count, count_all_i, Init_Enumerable),knu2008-05-295-8/+42
| | | | | | | | array.c (rb_ary_count): If no argument or block is given, count the number of all elements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand):knu2008-05-292-2/+7
| | | | | | | Int should be enough here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand),knu2008-05-296-12/+28
| | | | | | | | | | | | | | ext/openssl/ossl_pkey_dh.c (ossl_dh_s_generate) (ossl_dh_initialize), ext/openssl/ossl_pkey_dsa.c (ossl_dsa_s_generate), ext/openssl/ossl_rand.c (ossl_rand_bytes) (ossl_rand_pseudo_bytes, ossl_rand_egd_bytes), ext/openssl/ossl_x509store.c (ossl_x509stctx_set_error): Do not use FIX2INT() without checking the value type. Use NUM2INT() instead; found by akr in [ruby-dev:34890]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (esignal_init): handle a non-integer argument correctly,mame2008-05-292-0/+6
| | | | | | | allowing SignalException.new(:INT). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_regexp.rb: add tests.mame2008-05-293-3/+33
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_require.rb: add a test for load with wrap flag, tomame2008-05-292-0/+25
| | | | | | | achieve 100% test coverage of eval_jump.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix a typo.knu2008-05-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix: nitem == count {|i| !i.nil?}knu2008-05-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_argf.rb: new tests for ARGF, to achieve over 85% testmame2008-05-293-0/+1367
| | | | | | | | | coverage of file.c. * test/ruby/test_io.rb: add tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove a compile error.mame2008-05-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_readchar): raise EOFError, synchronizing IO#readchar.mame2008-05-292-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_external_encoding, argf_internal_encoding): fix SEGV bymame2008-05-292-2/+13
| | | | | | | ARGF.external_encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/extconf.rb: search zlib1, and regard mswin32 later than VC6nobu2008-05-291-2/+2
| | | | | | | as WIN32. [ruby-core:16984] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_nitems, Init_Array): Axe Array#nitems().knu2008-05-284-54/+7
| | | | | | | cf. [ruby-dev:34676]-[ruby-dev:34713] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/purelib.rb: get rid of recent feature. [ruby-dev:34864]nobu2008-05-281-1/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/mkexports.rb (Exports#objdump, Exports#each_line): extracted.nobu2008-05-282-22/+42
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (MKPREP): appended $(RBCONFIG).nobu2008-05-284-12/+13
| | | | | | | | | | * common.mk (enc.mk, prelude.c): not depend on $(RBCONFIG) on mswin32 to get of compiling twice each time. * win32/Makefile.sub (prelude.c): not depend on $(PREP). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/mkexports.rb (Exports::Mswin#each_export): speed up.usa2008-05-282-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_slice_bang): Call rb_ary_modify_check() at theknu2008-05-282-0/+6
| | | | | | | beginning. [rubyspec] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpservlet/cgihandler.rb ↵knu2008-05-282-0/+11
| | | | | | | | | | | (WEBrick::HTTPServlet::CGIHandler#do_GET): Set the HTTP status code to 302 if a Location header field is present and the status code is not valid as a client redirection. cf. RFC 3875 6.2.3, 6.2.4. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/japanese.c (to_SHIFT_JIS_EF_infos): typo.usa2008-05-282-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_getc): same as rb_read_check.nobu2008-05-281-3/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/singleton.rb (SingletonClassMethods): _load should be public.nobu2008-05-282-26/+30
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/japanese.c: add workarround for Unicode to CP932.naruse2008-05-283-18/+45
| | | | | | | U+2015->0x815C, U+2225->0x8161, U+FF0D->0x817C, U+FF3C->0x815F, U+FF5E->0x8160, U+FFE0->0x8191, U+FFE1->0x8192, U+FFE2->0x81CA git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object, marshal_dump, r_object0, marshal_load): searchnobu2008-05-283-14/+22
| | | | | | | | | private methods too. [ruby-dev:34671] * object.c (convert_type): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c: "%" is required before PRI?VALUE.akr2008-05-272-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_error.c (error_handle): SystemExit and SignalException throwsnobu2008-05-272-3/+8
| | | | | | | TAG_RAISE but not TAG_FATAL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_execute_interrupts): delay interrupts duringnobu2008-05-272-0/+6
| | | | | | | raising exceptions. [ruby-dev:34855] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_div): should raise ZeroDivisionError.matz2008-05-273-4/+16
| | | | | | | | | * numeric.c (fix_divide): ditto. * test/ruby/test_numeric.rb (TestNumeric::test_divmod): avoid ZeroDivisionError in tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_fdiv): fallback to_f should always return floatmatz2008-05-272-1/+18
| | | | | | result. should not use #quo that may return rational. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (check_int): use PRIxVALUE format specifier.matz2008-05-272-12/+10
| | | | | | * numeric.c (check_uint, rb_num2fix, int_chr): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_slice_bang): Return an empty array instead ofknu2008-05-272-2/+9
| | | | | | | | nil when pos is valid and len is adjusted from a valid value to zero; caught by RubySpec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (MKPREP), common.mk, win32/Makefile.sub (prelude.c): getnobu2008-05-274-6/+23
| | | | | | | | | rid of depending PREP with nmake. * common.mk (encs): depends on libruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e