nobu
c5b45d252a
* misc/ruby-mode.el (ruby-mode-map): remove deprecated binding.
...
use M-; instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 14:14:24 +00:00
kosaki
5a00a61681
* bignum.c (rb_str_to_inum): get rid of too huge alloca().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 12:58:44 +00:00
kosaki
ac0178910e
* object.c (rb_str_to_dbl): rewrite again. use ALLOCV instead
...
rb_str_tmp_new().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 12:46:30 +00:00
kosaki
8d397b77ea
* win32/win32.c: get rid of STRNDUPA(). It's dangerous API.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 12:42:45 +00:00
kosaki
2529d2c38d
* win32/win32.c (rb_w32_aspawn): get rid of too huge alloca().
...
[Bug #4330 ] [ruby-core:34898]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 12:33:57 +00:00
kosaki
f7fb66bd35
* win32/win32.c (rb_w32_spawn): get rid of too huge alloca().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 11:31:48 +00:00
kosaki
ab720532ef
* win32/win32.c (open_dir_handle): get rid of too huge alloca().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 09:50:30 +00:00
kosaki
18c11392af
* file.c (w32_io_info): get rid of too huge alloca().
...
[Bug #4313 ] [ruby-core:34830]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 09:35:56 +00:00
kosaki
21931d6aa2
* win32/win32.c (wstati64): get rid of too huge alloca().
...
[Bug #4316 ] [ruby-core:34834]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 09:21:40 +00:00
usa
11c5daa698
* win32/win32.c (rb_w32_spawn, rb_w32_aspawn): fixed previous commit. sorry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 06:21:40 +00:00
usa
98929a2dfd
* win32/win32.c (rb_w32_spawn, rb_w32_aspawn): get rid of too huge
...
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
2011-01-27 06:12:48 +00:00
nobu
fa57e46896
* process.c (ALLOC_ARGV_WITH_STR): fix void pointer arithmetic.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 03:46:44 +00:00
nobu
beec203a1d
* process.c (proc_exec_v, rb_proc_exec_n, rb_proc_exec)
...
(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
2011-01-26 23:41:47 +00:00
nobu
8489ac41ca
* include/ruby/ruby.h (ALLOCV): new API for exception-safe
...
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
2011-01-26 23:32:22 +00:00
nobu
d6eb807878
* dln_find.c (dln_find_1): use rb_warning and return immediately
...
if fname is longer than buffer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26 23:22:54 +00:00
nagachika
c8e5ba0e84
* class.c (clone_method): add GC guard to prevent intermediate
...
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
2011-01-26 13:59:20 +00:00
akr
de4c25a001
* template/id.h.tmpl: parenthesize macro arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26 13:45:42 +00:00
nagachika
ab083dc640
* vm_eval.c (rb_throw_obj): add GC guard to prevent intermediate
...
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
2011-01-26 13:34:20 +00:00
nahi
0522ffd51f
* ext/openssl/ossl_asn1.c (ossl_asn1_decode0): OpenSSL::ASN1.decode
...
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-26 08:17:01 +00:00
svn
12893215b5
* 2011-01-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26 01:38:07 +00:00
naruse
8aa03af784
* string.c (=~): documentation fix; the return value is nil when
...
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
2011-01-26 01:38:05 +00:00
nobu
a0eeef69e7
* dln_find.c (dln_find_1): omit too long pathnames.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 23:42:01 +00:00
nobu
ced2d699b0
* string.c (rb_str_resize): get rid of out-of-bound access.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 23:28:22 +00:00
kazu
9a4a8673c0
* test/ruby/test_thread.rb: remove unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 22:50:21 +00:00
kazu
fa6f4336f3
* test/ruby/test_thread.rb (TestThread#test_condvar_nolock_2): get rid of method redefined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 22:50:18 +00:00
kazu
ff4085d6cf
move under correct class
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 22:50:15 +00:00
nobu
7a6113d6b6
* string.c (rb_string_value_cstr): rb_str_modify can change
...
RSTRING_PTR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 22:00:55 +00:00
kosaki
68823fdea5
* test/ruby/test_thread.rb: Added various ConditionVariable tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 18:25:20 +00:00
svn
e9d8fd9bff
* 2011-01-25
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 18:23:06 +00:00
kosaki
cab9751e97
* object.c (rb_str_to_dbl): Fix again. use rb_str_tmp_new()
...
instead ALLOC_N.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 18:23:05 +00:00
akr
c11a4d8f3f
* vm_insnhelper.h: parenthesize macro arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 12:51:13 +00:00
kosaki
2ec31553ea
* object.c (rb_str_to_dbl): use ALLOC_N instead ALLOCA_N because
...
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-24 12:30:02 +00:00
svn
76789bbbb3
* 2011-01-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 12:04:49 +00:00
nobu
97b8e4996f
* error.c (rb_invalid_str): prevent intermediate variable from GC.
...
[ruby-core:34820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 12:04:47 +00:00
kosaki
b9c0b5039c
* test/io/console/test_io_console.rb: Don't run test if the system
...
don't support io/console.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-23 14:03:24 +00:00
kosaki
99ef86707c
* test/fiddle/test_fiddle.rb: Don't run test if the system don't support
...
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
2011-01-23 13:20:58 +00:00
akr
35dbe5056d
* vm_exec.h: parenthesize macro arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-23 02:39:44 +00:00
nobu
6df0210388
* template/fake.rb.in (ruby): suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-23 01:32:57 +00:00
nobu
734b61518b
* string.c (str_nth_len, str_utf8_nth): return the rest length together.
...
* 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
2011-01-22 23:17:21 +00:00
nobu
b0eaf0f621
* string.c (str_nth_len, str_utf8_nth): return the rest length together.
...
* 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
2011-01-22 23:00:12 +00:00
tenderlove
18e3c52bc4
reverting r30628 since this seems like a bug in libyaml
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 22:43:41 +00:00
svn
8135c466ec
* 2011-01-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 15:46:12 +00:00
kosaki
fe505c47c8
* test/test_syslog.rb: Fix to make a lot of test failure if
...
the platform doesn't support syslog.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 15:46:11 +00:00
nobu
d21bc2f84a
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 14:42:15 +00:00
tenderlove
6e5aa6311a
* ext/psych/lib/psych/visitors/to_ruby.rb: fixing merge key support
...
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
2011-01-22 02:51:14 +00:00
tenderlove
5b1c06c74b
* ext/psych/lib/psych/visitors/to_ruby.rb: merge keys are actually
...
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
2011-01-22 02:34:50 +00:00
tenderlove
7b876e65ed
* ext/psych/parser.c (parse): fixing off-by-one error on line numbers
...
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
2011-01-22 02:23:12 +00:00
tenderlove
cab95ab712
fixed a bug in the test suite. Thanks Benoit Daloze! [ruby-core:34641]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 02:18:21 +00:00
tenderlove
8dd3a4af66
* ext/psych/parser.c (parse): add the file name to the exception when
...
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
2011-01-22 01:26:40 +00:00
tenderlove
0331314d27
* ext/psych/parser.c (parse): fix assertion error when reusing a
...
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
2011-01-22 01:13:52 +00:00