akr
96542c3678
* configure.in: test unsetenv returns a value.
...
unsetenv is void in older BSDs (FreeBSD 6 and OpenBSD 4.5 at least).
* hash.c (ruby_setenv): don't use the result of unsetenv if unsetenv
doesn't return a value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 12:41:43 +00:00
akr
fe98a03c53
* ext/socket/extconf.rb: suppress a warning.
...
* ext/extmk.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 12:34:51 +00:00
mame
b71cab7fa0
* vm.c (rb_vm_invoke_proc): this function must not catch TAG_RETURN
...
because vm_exec does. This caused rubyspec error. [ruby-dev:40158]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 11:28:38 +00:00
seki
e92661e647
* lib/drb/eq.rb: fix circular requrie in drb.
...
reported by akr. see [ruby-dev:40156] [ruby-core:27661]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 11:22:20 +00:00
naruse
0ba192d729
* ext/zlib/zlib.c (rb_gzfile_s_wrap): add rdoc.
...
patched by Hugh Sasse [ruby-core:27692]
* ext/zlib/doc/zlib.rd: removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 11:18:17 +00:00
naruse
6dc1a46323
* ext/strscan/strscan.c: fix rdoc. (length -> bytesize)
...
reported by Kornelius Kalnbach. see [ruby-core:27792]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 07:56:36 +00:00
akr
46c8b826fd
don't gnerate core file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 00:00:38 +00:00
akr
37679ee584
supress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 23:12:50 +00:00
akr
a967f738c8
* lib/matrix.rb: suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 22:08:29 +00:00
svn
7123baaf14
* 2010-01-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 18:23:02 +00:00
mame
f53d825447
* cont.c, vm_core.h, eval.c: because rb_protect must not be jumped by
...
callcc, revert r26407. And rename trap_tag to protect_tag and
change exception message (across trap -> across stack rewinding
barrier).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 18:22:58 +00:00
usa
6ebdbb30ad
* thread.c (do_select): wrong conditions. [ruby-core:27753]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 14:09:46 +00:00
mame
e090c62277
* test/ruby/envutil.rb: use method_defined? instead of
...
instance_methods.include?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 13:33:02 +00:00
mame
24f5161c39
* cont.c (rb_cont_call, cont_restore_1): remove trap_tag check because
...
it seems not to make sense. [ruby-dev:40121]
* vm_core.h, eval.c (rb_protect): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 13:22:16 +00:00
mame
1d415019bd
* test/ruby/envutil.rb: fix the check if instance method `ruby' is
...
defined or not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 12:44:28 +00:00
mame
34bcba57a9
* test/ruby/test_rubyoptions.rb (test_segv_test): add a test for
...
bugreport trace dumper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 12:18:50 +00:00
nobu
54e45b30cc
* file.c (be_chown, be_fchown, eaccess): suppressed warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 09:47:11 +00:00
nobu
57d4faec1b
* configure.in (RUBY_ARCHLIB): moved to version.c.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 09:16:14 +00:00
nobu
b148948982
* ext/pty/pty.c (pty_check): needs WNOHANG to poll, return $?, and
...
call raise_from_check() with pid_t. [ruby-dev:40141]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 08:47:04 +00:00
nobu
ccf67667b8
* version.c (RUBY_LIB, RUBY_*_LIB): moved from configures.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 08:36:14 +00:00
nobu
695c32a028
* include/ruby.h: removed duplication, added the macro for version.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 05:02:26 +00:00
nobu
423657b42c
* signal.c (USE_SIGALTSTACK): only when SA_SIGINFO also is
...
available. see [ruby-core:27768].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 03:11:46 +00:00
naruse
d5b0c4b1f3
* dln.c, file.c, io.c, signal.c: add __HAIKU__.
...
patched by Alexander von Gluck [ruby-core:27767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 03:06:06 +00:00
naruse
0fdbdfbbda
* math.c (domain_check): ignore errno if y is inf.
...
r26335 is because NetBSD 5.0's asin and acos returns
0.0 with errno EDOM. But it breaks Linux whose gamma returns inf
with errno ERANGE on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 02:51:16 +00:00
nobu
68e111176f
* string.c (rb_str_inspect): suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 02:50:05 +00:00
ko1
618445576f
* eval.c, vm.c, vm_eval.c, vm_insnhelper.c: fix issues about
...
return and c-return trace. This issue skips (c-)return event
with global jump such as break or return. This fix make vm invoke
hooks at stack rewind timing. fix [ruby-core:27606] [Bug #2610 ].
* test/ruby/test_settracefunc.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-24 13:52:32 +00:00
akr
2979842520
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-24 13:20:04 +00:00
akr
83d9e9f42e
* string.c (rb_str_inspect): increment by rb_enc_mbminlen(enc) for
...
broken byte sequence. [ruby-core:27748]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-24 05:22:51 +00:00
akr
4b8e14c978
* string.c (rb_enc_strlen_cr): increment by rb_enc_mbminlen(enc) for
...
broken byte sequence. [ruby-core:27748]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-24 04:59:31 +00:00
nobu
cb9da52cde
* dir.c (dir_s_glob): get rid of comment starter.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 20:47:23 +00:00
nobu
a1d4164257
* thread.c (thread_start_func_2): unlock all locking mutexes
...
before clean up. [ruby-core:26877]
* thread.c (rb_thread_atfork): no other threads to be joined.
* vm_core.h (rb_thread_lock_unlock, rb_thread_lock_destroy):
new functions.
* vm.c (ruby_vm_destruct): unlock and destroy global VM lock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 20:18:36 +00:00
nobu
2e5ef26a4e
* ext/win32ole/lib/win32ole.rb: eol-style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 20:08:55 +00:00
naruse
ce35c0c650
* lib/rdoc/parser/ruby.rb: fix typo.
...
patched by Hal Brodigan [ruby-core:21536]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 15:34:47 +00:00
svn
75acf87959
* 2010-01-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 15:11:23 +00:00
naruse
ad38805490
* lib/rdoc/markup/to_html_crossref.rb: fix failure of the test.
...
[ruby-core:20564]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 15:11:20 +00:00
naruse
155e42c50e
* dir.c (dir_s_glob): add rdoc by Roger Pack. [ruby-core:27669]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 14:28:38 +00:00
naruse
eaa9ca7653
* lib/rdoc/generator/html.rb (RDoc::Generator::HTML#gen_into):
...
make the rdoc(generating html) run faster and use less memory.
patch by Tetsu Soh [ruby-core:27656]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 14:16:04 +00:00
suke
4b18062808
* ext/win32ole/win32ole.c: add WIN32OLE.ole_initialize,
...
WIN32OLE.ole_uninitialize to use in win32ole.rb.
You must not use thease methods.
* ext/win32ole/lib/win32ole.rb: add win32ole.rb
re-define Thread#initialize (fix ruby-core:27634)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 11:02:17 +00:00
mame
0f29696f9d
* sample/coverage.rb: preserve exit status.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 15:26:52 +00:00
mame
0f078cbfc4
* test/ruby/test_dir.rb: get rid of debug print.
...
* test/ruby/test_module.rb: fixed to make test-all work.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 15:24:22 +00:00
svn
b1a0dc709b
* 2010-01-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 15:03:36 +00:00
mame
bebd7e4511
* test/ruby/test_array.rb: add a test for Array#rotate, rotate!.
...
* test/ruby/test_dir.rb, test/ruby/test_fnmatch.rb: add some tests
(for coverage of dir.c).
* test/ruby/test_enum.rb: add a test for Enumerable#minmax.
* test/ruby/test_enumerator.rb: add some tests for Enumerator#inspect,
Enumerator::Generator and Yielder.
* test/ruby/test_env.rb: add a test for ENV#index.
* test/ruby/test_exception.rb: add some tests (for coverage of
error.c).
* test/ruby/test_hash.rb: add a test for recursive check.
* test/ruby/test_integer.rb: add a test for number of argument of
Integer.
* test/ruby/test_method.rb: add a test for define_method.
* test/ruby/test_module.rb: add a test for constant of included
module.
* test/ruby/test_proc.rb: add a test for parameters with cfunc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 15:03:32 +00:00
mame
d8d5e67184
* test/ruby/test_regexp.rb, test/ruby/test_symbol.rb,
...
test/ruby/test_variable.rb: add some tests (for coverage of
compile.c).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 14:53:12 +00:00
akr
1d674dc547
* time.c (time_mload): add submicro into vtm.subsecx. [ruby-dev:40133]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 12:08:02 +00:00
nobu
0f02abb31b
* common.mk (rdoc): needs encodings and exts.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 05:26:38 +00:00
naruse
e243aabc0c
* configure.in: add missing comma.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 05:17:16 +00:00
mame
45c2671e37
* test/ruby/test_bignum.rb, test/ruby/test_class.rb,
...
test/ruby/test_defined.rb, test/ruby/test_hash.rb,
test/ruby/test_primitive.rb, test/ruby/test_variable.rb: add some
tests (for coverage).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 16:08:40 +00:00
svn
c758a90693
* 2010-01-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 16:06:42 +00:00
mame
f3448ded9d
* test/ruby/test_require.rb (test_define_class): expect TypeError
...
instead of NameError. [ruby-core:27504]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 16:06:39 +00:00
shyouhei
ff575c7eb7
* configure.in: some tidy.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 06:10:16 +00:00