aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * process.c (ALLOC_ARGV_WITH_STR): fix void pointer arithmetic.nobu2011-01-272-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_exec_v, rb_proc_exec_n, rb_proc_exec)nobu2011-01-263-18/+58
| | | | | | | (proc_spawn_n, proc_spawn): get rid of too huge alloca(). [ruby-core:34827], [ruby-core:34833] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (ALLOCV): new API for exception-safenobu2011-01-263-0/+38
| | | | | | | | temporary buffer. [ruby-core:34844] * string.c (rb_alloc_tmp_buffer, rb_free_tmp_buffer): implementation of the API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln_find.c (dln_find_1): use rb_warning and return immediatelynobu2011-01-263-7/+23
| | | | | | if fname is longer than buffer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (clone_method): add GC guard to prevent intermediatenagachika2011-01-262-1/+8
| | | | | | variable from GC. [Bug #4321] [ruby-dev:43107] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/id.h.tmpl: parenthesize macro arguments.akr2011-01-262-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_throw_obj): add GC guard to prevent intermediatenagachika2011-01-262-0/+6
| | | | | | variable from GC. [Bug #4322] [ruby-dev:43108] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_asn1.c (ossl_asn1_decode0): OpenSSL::ASN1.decodenahi2011-01-263-0/+19
| | | | | | | | should reject indefinite length primitive encodings as that is illegal. Patch by Martin Bosslet. See #4324. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-01-26svn2011-01-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (=~): documentation fix; the return value is nil whennaruse2011-01-262-1/+6
| | | | | | it doesn't match. patched by Andrei Kulakov [ruby-core:34562] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln_find.c (dln_find_1): omit too long pathnames.nobu2011-01-242-4/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_resize): get rid of out-of-bound access.nobu2011-01-242-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb: remove unused variables.kazu2011-01-242-3/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb (TestThread#test_condvar_nolock_2): get rid of ↵kazu2011-01-242-1/+6
| | | | | | method redefined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* move under correct classkazu2011-01-241-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_string_value_cstr): rb_str_modify can changenobu2011-01-244-1/+47
| | | | | | RSTRING_PTR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb: Added various ConditionVariable tests.kosaki2011-01-242-0/+118
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-01-25svn2011-01-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_str_to_dbl): Fix again. use rb_str_tmp_new()kosaki2011-01-242-4/+12
| | | | | | | | instead ALLOC_N. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.h: parenthesize macro arguments.akr2011-01-242-11/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_str_to_dbl): use ALLOC_N instead ALLOCA_N becausekosaki2011-01-242-3/+12
| | | | | | | | ALLOC_N may cause stack overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-01-24svn2011-01-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (rb_invalid_str): prevent intermediate variable from GC.nobu2011-01-243-1/+11
| | | | | | [ruby-core:34820] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/io/console/test_io_console.rb: Don't run test if the systemkosaki2011-01-232-4/+12
| | | | | | | | don't support io/console. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fiddle/test_fiddle.rb: Don't run test if the system don't supportkosaki2011-01-234-6/+23
| | | | | | | | | | | fiddle. * test/fiddle/test_function.rb: ditto. * test/fiddle/test_closure.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_exec.h: parenthesize macro arguments.akr2011-01-232-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/fake.rb.in (ruby): suppress warnings.nobu2011-01-232-2/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_nth_len, str_utf8_nth): return the rest length together.nobu2011-01-221-1/+1
| | | | | | | * string.c (rb_str_substr): get rid of measure the length always to improve performance for huge string. [ruby-core:34648] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_nth_len, str_utf8_nth): return the rest length together.nobu2011-01-222-16/+41
| | | | | | | * string.c (rb_str_substr): get rid of measure the length always to improve performance for huge string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reverting r30628 since this seems like a bug in libyamltenderlove2011-01-223-23/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-01-23svn2011-01-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_syslog.rb: Fix to make a lot of test failure ifkosaki2011-01-222-2/+12
| | | | | | | | the platform doesn't support syslog. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2011-01-220-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/to_ruby.rb: fixing merge key supporttenderlove2011-01-223-2/+69
| | | | | | | when multiple merge keys are specified. * test/psych/test_merge_keys.rb: tests for multi-merge key support git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/to_ruby.rb: merge keys are actuallytenderlove2011-01-223-7/+30
| | | | | | | | part of YAML 1.1, so they should be supported. Remove warning and merge keys to parent. [ruby-core:34679] * test/psych/test_merge_keys.rb: test for merge keys git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c (parse): fixing off-by-one error on line numberstenderlove2011-01-223-1/+23
| | | | | | | in parse exceptions. [ruby-core:34690] * test/psych/test_parser.rb: test for error git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed a bug in the test suite. Thanks Benoit Daloze! [ruby-core:34641]tenderlove2011-01-221-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c (parse): add the file name to the exception whentenderlove2011-01-223-1/+34
| | | | | | | parse errors occur. * test/psych/test_parser.rb: test for parse error file name git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c (parse): fix assertion error when reusing atenderlove2011-01-223-0/+20
| | | | | | | parser after an exception has been raised * test/psych/test_parser.rb: test for assertion error git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/nodes/node.rb: Make Psych::Nodes::Nodetenderlove2011-01-216-0/+142
| | | | | | | | | | | enumerable. * ext/psych/lib/psych/visitors/depth_first.rb: Add a depth-first visitor to enumerate over a YAML AST in a depth-first fashion * test/psych/nodes/test_enumerable.rb: test for enumerating nodes * test/psych/visitors/test_depth_first.rb: test for depth-first visitor git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-01-22svn2011-01-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h: parenthesize macro arguments.akr2011-01-212-20/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: should not use -Werror=* flags while conftests.nobu2011-01-212-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Fix incorrectly detected x86_64-w64-mingw32 dueluislavena2011-01-212-2/+5
| | | | | | canonalization of target_os. Bug #3889 [ruby-core:32634] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert unrelated fix from r30615. Sorry!kosaki2011-01-201-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Fix rb_cv_va_args_macro was broken. We are usingkosaki2011-01-202-2/+10
| | | | | | | | | -Werror=implicit-function-declaration compile option. therefore we need a function declaration explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-01-21svn2011-01-201-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h: parenthesize macro arguments.akr2011-01-202-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Add '#include <stdlib.h>' tokosaki2011-01-203-2/+9
| | | | | | | | | rb_cv_localtime_overflow test too. It's reported by Tomoyuki Chikanaga. Thanks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2011-01-201-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e