aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * enc/emacs_mule.c (emacsmule_islead): fix inverse condition.nobu2011-01-303-1/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c (struct argf): char behaves like an unsigned char by default on AIX.kanemoto2011-01-302-1/+6
| | | | | | | http://publib.boulder.ibm.com/infocenter/comphelp/v111v131/index.jsp?topic=/com.ibm.xlcpp111.aix.doc/language_ref/ch.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Mac OS X wrongly reports it has fdatasync(3).naruse2011-01-292-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_bn.c (GetBNPtr): add missing nil case.naruse2011-01-293-2/+15
| | | | | | patched by Martin Bosslet. [ruby-core:34987] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: Added NUM2MODET() and MODET2NUM() default definition.kosaki2011-01-292-0/+11
| | | | | | | | Because r30686 introduced win32 build failure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-01-30svn2011-01-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_join): [].join.encoding must be US-ASCII.naruse2011-01-293-1/+7
| | | | | | [ruby-list:47790] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/driver.rb (BenchmarkDriver#measure): Show command linekosaki2011-01-292-1/+6
| | | | | | | | when abnormal exiting occur. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * property.nobu2011-01-290-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_get_ev_const): no-scope reference to toplevelmame2011-01-293-2/+25
| | | | | | | | | private constant has been prohibited incorrectly. * test/ruby/test_module.rb (test_toplevel_private_constant): add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import rubygems 1.5.0 (release candidate @ 09893d9)ryan2011-01-2887-331/+570
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_mod_const_of, sv_i): Module#constant should excludemame2011-01-283-3/+17
| | | | | | | | | private constants. see [ruby-core:32912]. * test/ruby/test_module.rb (test_constants_with_private_constant): add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_const_set): const_set shoud preserve constantmame2011-01-283-3/+18
| | | | | | | | visibility. see [ruby-core:32912]. * test/ruby/test_module.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (NODE_CLASS, NODE_MODULE), insns.def (defineclass): raisemame2011-01-285-8/+58
| | | | | | | | | | | | | an exception when "class Foo::Bar" is evaluated and Foo::Bar is private. To implement this, define_type of "defineclass" is added so that the instruction can distinguish whether the class definition is scoped (class Foo::Bar) or not (class Bar). * test/ruby/test_class.rb (test_redefine_private_class), test/ruby/test_module.rb (test_define_module_under_private_constant): add tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * constant.h, variable.c: to ensure compatibility, rb_const_get_* mustmame2011-01-285-14/+89
| | | | | | | | | | | | | | | | not raise an exception even when the constant is private. Instead, rb_public_const_get_* and rb_public_const_defined_* are introduced, which raise an exception when the referring constant is private. see [ruby-core:32912]. * vm_insnhelper.c (vm_get_ev_const): use rb_public_const_get_* instead of rb_const_get_* to follow the constant visibility when user code refers a constant. * test/ruby/test_marshal.rb (test_marshal_private_class): add a test. This test had failed because of incompatibility of rb_const_get. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-01-29svn2011-01-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (set_const_visibility): fix typo. a patch from Tomoyukimame2011-01-282-1/+6
| | | | | | Chikanaga in [ruby-core:32919]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create,kosaki2011-01-282-12/+11
| | | | | | | | | TestGDBM2#test_writer_open_notexist): We only need to skip libgdbm 1.8.0, not all 1.8.x. 1.8.1 or later don't have GDBM_WRITER sickness. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: Added new header places for Fedora13.kosaki2011-01-282-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c: parenthesize macro arguments.akr2011-01-282-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb (TestGDBM2#test_writer_open_notexist):kosaki2011-01-282-3/+18
| | | | | | | | | gdbm 1.8.x changed GDBM::WRITER behavior. Thus our testcase need to be changed too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): skipkosaki2011-01-282-2/+7
| | | | | | | | the test if gdbm version is 1.8.x. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_require.rb (TestRequire#test_require_too_long_filename):kosaki2011-01-282-2/+8
| | | | | | | | | Added -w option because too long path error don't output a message by default since r30660. [Bug #4336] [ruby-dev:43134] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2}):kosaki2011-01-282-2/+8
| | | | | | | | | Added -w option because too long path error don't output a message by default since r30660. [Bug #4336] [ruby-dev:43134] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove unnecessary local variable.kosaki2011-01-281-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2,3}):kosaki2011-01-282-1/+24
| | | | | | | | split from test_require_path_home. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (--with-valgrind): Fixed r29683. Now this optionkosaki2011-01-282-3/+8
| | | | | | | | is really default on. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* We don't only need to change "struct stat.st_size" test, but alsokosaki2011-01-281-1/+1
| | | | | | | | need to change "struct stat.st_blocks" test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Add #include<sys/stat.h> when struct stat iskosaki2011-01-282-1/+6
| | | | | | | | tested. Otherwise, incomplete type dereference error will occur. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: redundant variable names made strange conftestkosaki2011-01-282-2/+7
| | | | | | | | error. Fixed it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (TestProcess#test_too_long_path{,2}):usa2011-01-282-2/+12
| | | | | | | | should handle Errno::E2BIG, because this test checks crash of ruby, not the error type system. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_open): Use NUM2MODET() instead NUM2UINT().kosaki2011-01-282-2/+7
| | | | | | | | * io.c (rb_scan_open_args): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Added mode_t type checking.kosaki2011-01-283-2/+11
| | | | | | | | | | | * process.c (rb_exec_arg_addopt): Use NUM2MODET() instead NUM2LONG because clang makes compile error by this narrowing conversion. * process.c (rb_run_exec_options_err): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_raise): add GC guard to prevent intermediatekosaki2011-01-272-1/+6
| | | | | | | | variable from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_fetch_m): add GC guard to prevent intermediatekosaki2011-01-272-1/+6
| | | | | | | | variable from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (TestProcess#test_too_long_path)kosaki2011-01-272-2/+8
| | | | | | | | | TestProcess#test_too_long_path): Reduced string size from 100MB to 10MB. 100MB may cause no memory error. It isn't intended. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-01-28svn2011-01-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (TestProcess#test_too_long_path2):kosaki2011-01-272-4/+11
| | | | | | | | | Factored out from test_too_long_path. A test should only do one test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.c (st_foreach): check if unpacked.nobu2011-01-272-1/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode-map): remove deprecated binding.nobu2011-01-272-1/+5
| | | | | | use M-; instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_str_to_inum): get rid of too huge alloca().kosaki2011-01-272-2/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_str_to_dbl): rewrite again. use ALLOCV insteadkosaki2011-01-272-7/+9
| | | | | | | | rb_str_tmp_new(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c: get rid of STRNDUPA(). It's dangerous API.kosaki2011-01-272-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_aspawn): get rid of too huge alloca().kosaki2011-01-272-1/+6
| | | | | | | | [Bug #4330] [ruby-core:34898] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn): get rid of too huge alloca().kosaki2011-01-272-3/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (open_dir_handle): get rid of too huge alloca().kosaki2011-01-272-2/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (w32_io_info): get rid of too huge alloca().kosaki2011-01-272-1/+9
| | | | | | | | [Bug #4313] [ruby-core:34830] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (wstati64): get rid of too huge alloca().kosaki2011-01-272-1/+10
| | | | | | | | [Bug #4316] [ruby-core:34834] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): fixed previous commit. sorry.usa2011-01-271-18/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): get rid of too hugeusa2011-01-272-10/+23
| | | | | | | alloca(). this is the real fix of [ruby-core:34833]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e