suke
4f1b06aabd
* test/win32ole/test_win32ole_typelib.rb: add some illegal argument test.
...
* test/win32ole/test_win32ole_type.rb: ditto.
* test/win32ole/test_win32ole_event.rb: ditto.
* test/win32ole/test_win32ole_param.rb: ditto.
* test/win32ole/test_win32ole_method.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 12:22:16 +00:00
wanabe
86714f5b16
* test/ruby/envutil.rb (assert_normal_exit): r17993 revert.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 10:45:51 +00:00
wanabe
2026580dc2
* test/ruby/envutil.rb (assert_normal_exit): finish writing script
...
before spawn("ruby") to avoid blocking in win32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 09:31:03 +00:00
usa
52a3897f4f
* win32/win32.c (insert): follow recent changes of globbing.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 08:22:04 +00:00
nobu
04969c4a86
* ext/coverage/coverage.c (rb_coverage_start): return nil.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 05:09:08 +00:00
nobu
3b9329e984
* thread.c (rb_thread_wait_for): fixed variable name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 03:42:02 +00:00
nobu
1a5f1a8c69
* vm_core.h (rb_thread_t), vm.c (rb_thread_mark), process.c
...
(rb_last_status_get, rb_last_status_set, rb_last_status_clear):
moved last_status from rb_vm_t. [ruby-dev:35414]
* vm.c (th_init2): initialize last_status with nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 03:10:00 +00:00
nobu
7ad9faa528
* thread.c (rb_thread_wait_for): wait until timed out only when
...
sleeping with timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 03:09:23 +00:00
svn
a0e291f697
* 2008-07-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 18:05:36 +00:00
akr
34131e6ea3
add a test for [ruby-dev:35414].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 18:05:32 +00:00
nobu
5bdf57905d
* ChangeLog: wrong function name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 13:47:51 +00:00
nobu
a14682906f
* thread.c (sleep_forever): wait until timed out. [ruby-core:17270]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 13:41:19 +00:00
akr
6372357ad5
* array.c (rb_ary_fill): don't raise even if length is negative.
...
[ruby-core:17483], [ruby-core:17661]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 12:01:08 +00:00
nobu
0d37d00b29
* thread_{pthread,win32}.c (native_sleep): wait until timed out.
...
[ruby-core:17270]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 11:36:37 +00:00
nobu
7df7982b47
* thread_{pthread,win32}.c (native_sleep): wait until timed out.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 11:35:06 +00:00
nobu
a2ec2f8b59
* configure.in (rb_cv_va_args_macro): check for __VA_ARGS__.
...
* thread.c (thread_debug): show source name and line if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 11:18:52 +00:00
nobu
a534e39a87
* thread_{pthread,win32}.c (rb_thread_create_timer_thread): needs more
...
stack for debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 09:17:09 +00:00
nobu
71b1673229
* lib/profiler.rb (Profiler__#print_profile): sort in the descending
...
order of cumulative time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 02:13:41 +00:00
nobu
8dfc2f81c0
* dir.c (struct glob_args, rb_glob_caller, rb_glob2, push_pattern),
...
(glob_brace): make consistent prototypes.
* dir.c (push_glob): set enc in the caller of rb_glob_caller as well
as rb_glob2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 02:11:21 +00:00
naruse
ec18fc70a3
* ext/nkf/nkf-utf8/nkf.c (options): use input_endian.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 00:50:37 +00:00
nobu
6e0b5f40cc
* string.c (rb_str_succ): alphabets or numerics mutually enclosing
...
non-alphanumeric characters can carry up. e.g., "1.999".succ should
be "2.000".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 16:38:40 +00:00
svn
1d1a3fb75a
* 2008-07-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 15:13:27 +00:00
mame
91c07a5ac6
* thread.c (rb_set_coverages, rb_reset_coverages): enable and disable
...
coverage measurement.
* thread.c (rb_get_coverages): rename and move from vm.c.
* vm.c (rb_vm_get_coverages): ditto.
* iseq.c (prepare_iseq_build): ditto.
* thread.c (clear_coverage): ditto.
* parse.y (coverage): ditto.
* ext/coverage/coverage.c: use above functions, add new method
Coverage.start and fix rdoc .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 15:13:22 +00:00
suke
4857543691
* ext/win32ole/win32ole.c (find_default_source): bug fix when
...
OLE object does not have default source interface.
* test/win32ole/test_win32ole_event.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 14:05:38 +00:00
mame
caf3933bab
* thread.c (rb_enable_coverages): hide coverage array by setting 0 to
...
klass during measurement.
* parse.y (coverage, yycompile0): ditto.
* iseq.c (prepare_iseq_build): use rb_hash_lookup instead of
rb_hash_aref.
* thread.c (rb_coverage_result): restore klass of coverage array and
return it.
* theaad.c (update_coverage): chcek whether its klass is 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 13:57:06 +00:00
ko1
7e16f9e777
* lib/debug.rb, lib/profile.rb: fix to use RubyVM.
...
* lib/rdoc/parsers/parse_c.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 13:28:57 +00:00
mame
92afa05222
* vm.c (rb_vm_mark): mark the last element of special_exceptions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 12:45:50 +00:00
suke
6c32d10c01
* ext/win32ole/win32ole.c (find_default_source): try to
...
find COCLASS when WIN32OLE object is not COCLASS.
* test/win32ole/test_win32ole_event.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 11:13:09 +00:00
ko1
f1d967c6ee
* lib/debug.rb, lib/profile.rb: fix to use RubyVM.
...
* lib/rdoc/parsers/parse_c.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 04:44:44 +00:00
ko1
8b3969f8b3
* compile.h: fix to skip inserting a trace insn.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 04:43:02 +00:00
usa
2db158667a
* dir.c: shoudn't use ruby object in globbing, because glob service
...
routines are called before initializing ruby on some platforms (ex.
windows).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 02:44:12 +00:00
naruse
933d553de0
* dir.c (Next): use rb_enc_mbclen. [ruby-dev:35390]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 01:52:11 +00:00
naruse
64cfcd7c63
* dir.c (Next): use rb_enc_precise_mbclen.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-07 23:00:58 +00:00
naruse
0ad460dde8
* dir.c: preserve encoding of strings in glob and fnmatch.
...
* include/ruby/ruby.h: related changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-07 17:29:44 +00:00
nobu
f10c88827e
* string.c (rb_str_succ): limit carrying in an alphanumeric region if
...
exists. [ruby-dev:35094]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-07 15:23:01 +00:00
suke
6aff4b8eaa
* ext/win32ole/win32ole.c(Init_win32ole): add
...
WIN32OLE_TYPE#source_ole_types, WIN32OLE_TYPE#default_ole_types,
WIN32OLE_TYPE#default_event_sources.
* test/win32ole/test_win32ole_type.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-07 11:49:14 +00:00
naruse
1d6e2caf10
* test/ruby/test_dir.rb (test_chroot_nodir): add Errno::EPERM.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-07 10:46:13 +00:00
nobu
e12e0b337d
* lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in
...
IPAddr#to_range. a patch from okkez <okkez000 AT gmail.com> in
[ruby-dev:35091].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-07 08:12:23 +00:00
nobu
4b843da869
* file.c (rb_file_s_extname): fix for file name with spaces.
...
[ruby-talk:307404]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-06 16:24:45 +00:00
svn
1574379143
2008-07-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-06 15:59:44 +00:00
nobu
fc5746681e
* thread_pthread.c (ruby_init_stack): prior STACK_END_ADDRESS if
...
found. [ruby-core:17624]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-06 15:59:40 +00:00
nobu
2754e843b6
* ext/socket/socket.c (bsock_send, s_recvfrom, ruby_connect, s_accept),
...
(udp_send, unix_send_io, unix_recv_io): blocking region support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-06 14:49:00 +00:00
nobu
7d82b3dc3c
* ext/socket/socket.c (bsock_send, s_recvfrom, ruby_connect, s_accept),
...
(udp_send, unix_send_io, unix_recv_io): blocking region support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-06 14:48:08 +00:00
suke
0753c79be2
* test/win32ole/test_win32ole_type.rb (test_initialize): add
...
more assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-06 09:36:25 +00:00
kou
692ea1bb83
* lib/test/unit/collector/objectspace.rb
...
(Test::Unit::Collector::ObjectSpace::NAME): fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-06 01:13:20 +00:00
svn
67b0ca4947
2008-07-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-05 15:58:50 +00:00
akr
890aa092be
* ext/socket/socket.c (host_str): fix type mismatch in rb_raise
...
format and argument.
(port_str): ditto.
(unix_recv_io): ditto.
(sock_s_unpack_sockaddr_un): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-05 15:58:46 +00:00
akr
d375b77352
* include/ruby/ruby.h (NUM2INT): cast to int.
...
(FIX2INT): ditto.
(NUM2UINT): cast to unsigned int.
(FIX2UINT): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-05 14:47:06 +00:00
akr
7b52d32bd7
forgot to commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-05 14:14:43 +00:00
akr
b279bf4270
rename rb_pipe_internal to rb_pipe.
...
use rb_pipe in pipe_nocrash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-05 14:12:53 +00:00