nobu
ab4e003969
* ruby.c (set_{internal,external}_encoding_once): fixed typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-04 06:46:32 +00:00
marcandre
559e573cdd
* proc.c (mnew): Fix scope issue [ruby-core:26069]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-04 03:49:54 +00:00
nobu
f41eaf8431
* random.c (rb_hash_start): moved from string.c.
...
* random.c (Init_RandomSeed2): register global address before set.
* random.c (Init_RandomSeed): initialize hashseed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 23:50:51 +00:00
nobu
252168ed1b
* dir.c (dir_check): moved other checks from GetDIR.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 23:26:02 +00:00
nobu
22ec8c664a
* dir.c (GetDIR): fixed a variable name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 23:21:02 +00:00
nobu
fec2ed5f4d
* cont.c (rb_fiber_start): fixed unconditional test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 23:19:33 +00:00
tenderlove
02d55ac989
* test/dl/test_cptr.rb (test_to_ptr*): testing DL::CPtr#to_ptr
...
* ext/dl/cptr.c (rb_dlptr_free_set, rb_dlptr_free_get,
rb_dlptr_s_to_ptr): adding documentation, fixing indentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 20:28:20 +00:00
akr
b9e0294eda
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 17:46:28 +00:00
tenderlove
c30e32d075
* ext/dl/cptr.c (rb_dlptr_eql, rb_dlptr_cmp): DL::CPtr#== and DL::CPtr#<=>
...
should not raise an exception when compared to a different object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 17:12:46 +00:00
svn
89f1c60cba
* 2009-11-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 15:16:59 +00:00
naruse
a1fc9cd582
* string.c (rb_str_upto): make next object before yield its block.
...
fix: can modify original begin string of String#upto.
[ruby-dev:26384] [ruby-dev:39626] #2327
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 15:16:55 +00:00
wanabe
2c2fb9c5ec
* cont.c (fiber_free): don't free unallocated local_storage. see #1325 .
...
* cont.c (cont_init): clear local_storage not to use current thread's.
* cont.c (fiber_t_alloc, root_fiber_alloc): link itself always for
a case that fiber_link_remove() is called before fiber_link_join().
* cont.c (fiber_init): clear cont->vm_stack and th->stack before
root_fiber_alloc() in rb_fiber_current().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-02 09:35:43 +00:00
nobu
9c173cd588
* eval.c (rb_exc_raise, rb_exc_fatal, rb_make_exception):
...
suppressed shorten-64-to-32 warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-02 05:52:55 +00:00
usa
409033efca
* thread_pthread.c (native_stop_timer_thread): delay joinning timer
...
thread after unlocking mutex.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-02 05:45:35 +00:00
usa
12fadc1022
* thread_pthread.c (native_stop_timer_thread): need to join timer thread
...
only when really stopping it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-02 04:32:28 +00:00
usa
9ee5e613b5
* thread_{pthread,win32}.c (native_stop_timer_thread): join the thread
...
here.
* thread_{pthread,win32}.c (native_reset_timer_thread): new function.
* thread.c (rb_thread_stop_timer_thread, rb_thread_reset_timer_thread):
call above function instead of simply seting 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-02 03:58:25 +00:00
naruse
7539e11a7f
* ext/dl/win32/lib/win32/registry.rb: update rdoc. [ruby-core:26022]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-02 02:24:11 +00:00
wanabe
71f0685fe3
revert r25623
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-02 01:04:31 +00:00
svn
3e364a0c8b
* 2009-11-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 23:27:15 +00:00
wanabe
b23461b5dc
* cont.c (fiber_free): don't free unallocated local_storage. see #1325 .
...
* cont.c (cont_init): clear local_storage not to use current thread's.
* cont.c (fiber_t_alloc, root_fiber_alloc): link itself always for
a case that fiber_link_remove() is called before fiber_link_join().
* cont.c (fiber_init): don't join half-baked fiber.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 23:27:12 +00:00
naruse
74d16cd0a4
* ext/bigdecimal/bigdecimal.c: fixed rdoc. [ruby-core:26457]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 11:16:53 +00:00
nobu
f6f49eb0b8
* configure.in (RUBY_STACK_GROW_DIRECTION): set return variable always.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 08:11:49 +00:00
nobu
2eb5e70de3
* configure.in (rb_cv_stack_grow_dir): fix for universal binary.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 07:24:18 +00:00
nobu
f6ea31420e
* configure.in (sitehdrdir, vendorhdrdir): fixed default values.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 07:23:05 +00:00
wanabe
754462d4f1
* win32/win32.c (overlapped_socket_io, recvmsg, sendmsg): pass handle
...
instead of pointer to CloseHandle().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 04:36:33 +00:00
wanabe
24a6752f54
* ext/socket/socket.c (socket_s_ip_address_list): use FreeLibrary() to
...
free HMODULE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 04:24:47 +00:00
marcandre
68b23a0de7
* object.c (convert_type): Cleanup unused variable
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 04:06:00 +00:00
tenderlove
a9e662ac7a
* ext/dl/cptr.c (rb_dlptr_ptr, rb_dlptr_ref) adding documentation
...
* test/dl/test_cptr.rb (test_ref_ptr) testing CPtr#ref and CPtr#ptr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:47:08 +00:00
tenderlove
4b76900a55
* ext/dl/cptr.c (rb_dlptr_to_value) added documentation
...
* test/dl/test_cptr.rb (test_to_value) testing DL::CPtr#to_value
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:46:56 +00:00
tenderlove
6cf6d8556c
* ext/dl/cptr.c (rb_dlptr_size) splitting function to reduce complexity
...
* ext/dl/cptr.c (rb_dlptr_null_p, rb_dlptr_aref, rb_dlptr_aset) adding
documentation
* ext/dl/dl.c (rb_dl_free) adding documentation
* test/dl/test_cptr.rb (test_null?, test_size, test_size=,
test_aref_aset) Improving test coverage
* test/dl/test_dl2.rb (test_free_secure) improving test coverage
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:46:44 +00:00
tenderlove
5f3d0f5233
* test/dl/test_dl2.rb (**) testing malloc and realloc
...
* ext/dl/dl.c (**) adding documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:46:27 +00:00
nobu
0243c024f8
* gc.c (GET_STACK_BOUNDS): refactored common code. based on a
...
patch from Suraj N. Kurapati <sunaku AT gmail.com> in
[ruby-core:26443].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-31 23:17:52 +00:00
matz
c0a0aa0c47
* enum.c (enum_count): remove optimization using #size.
...
revert r25560.
* vm_eval.c (rb_funcall_no_recursive): remove method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-31 16:14:38 +00:00
svn
2097f56d32
* 2009-11-01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-31 15:32:25 +00:00
matz
ab32fe26d9
* vm_eval.c (check_funcall): logic updated according to
...
[ruby-dev:39594]. search method entry, call if it exists;
otherwise check method_missing, call if it was overridden,
protecting exceptions; if NoMethodError happens, check method
name.
* vm_eval.c (vm_call0): use idMethodMissing.
* vm_eval.c (rb_search_method_entry): typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-31 15:32:22 +00:00
nahi
a28cd28c04
* lib/net/http.rb (Net::HTTPResponse#each_response_header):
...
cosmetic: '?\ ' -> '?\s'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-31 08:18:32 +00:00
nobu
9d93bc2b0b
* st.c (unpack_entries): fixed type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-31 01:17:27 +00:00
nahi
d1cb4a5ba7
* lib/net/http.rb (Net::HTTPResponse#each_response_header):
...
accept multiline message header of HTTP response. see #1796 .
cf. RFC 2616 '4.2 Message Header'.
* test/net/http/test_httpresponse.rb: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 13:09:03 +00:00
matz
104c5f6b55
* string.c (trnext): detect empty range and raise exception.
...
[ruby-dev:39108]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 09:58:25 +00:00
nobu
db196eef24
* test/ruby/test_enum.rb (test_count): marked as an implementation
...
specific test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 08:05:31 +00:00
nobu
1932c59097
* vm_eval.c (enum call_type): get rid of last comma.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 08:01:48 +00:00
nobu
166a53c560
* vm_eval.c (vm_call0, vm_call_super, rb_f_send, rb_f_public_send):
...
fixed call_type. [ruby-dev:39581]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 07:57:21 +00:00
nobu
35b88be02b
* vm_eval.c (rb_search_method_emtry, rb_method_call_status): split
...
from rb_call0().
* vm_eval.c (rb_check_funcall): get rid of raising exceptions and
hiding further exceptions. [ruby-dev:39584]
* vm_eval.c (rb_funcall_no_recursive): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 07:42:04 +00:00
nobu
bb385e2386
* test/ruby/test_enum.rb (test_count): test for [ruby-core:24794].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 07:28:03 +00:00
nobu
6116f52f61
* thread.c (rb_thread_blocking_region): reverted r25566, and added
...
description that no exception is allowed inside `func', instead.
see [ruby-dev:39582]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 04:36:40 +00:00
usa
b16e6a93ca
* win32.c (recvmsg, sendmsg, link): shouldn't raise ruby's exceptions
...
in the functions expected as system API. see [ruby-dev:39579] and
[ruby-dev:39582]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 04:15:54 +00:00
usa
1730092f1c
* thread.c (rb_thread_blocking_region): standard C doesn't accept
...
preprosessing directive within macro expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 04:01:56 +00:00
usa
de6d21a381
* thread.c (rb_thread_blocking_region): standard C doesn't accept
...
preprosessing directive within macro expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 04:01:46 +00:00
nobu
411b747091
* thread.c (rb_thread_blocking_region): must ensure to unlock GVL.
...
[ruby-dev:39579]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 01:55:38 +00:00
nobu
22bd95ded4
* include/ruby/ruby.h (RSTRING_END): trivial optimization.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-29 19:47:28 +00:00