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
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
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
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
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
8b59b1cb98
* io.c (rb_pipe_internal): new function for handling EMFILE and ENFILE
...
error of pipe().
(UPDATE_MAXFD_PIPE): removed.
(pipe_open): use rb_pipe_internal.
(rb_io_s_pipe): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-05 13:38:46 +00:00
nobu
6bbbf9889d
* thread.c (thread_initialize): NUM2INT() returns int.
...
* thread.c (timer_thread_function), thread_pthread.c (thread_timer),
thread_win32.c (timer_thread_func), thread_{pthread,win32}.c
(rb_thread_create_timer_thread): passing VM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-05 13:22:29 +00:00
suke
f18120b8a0
* test/win32ole/test_word.rb: check word installed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-05 11:54:06 +00:00
nari
52f780c07f
* gc.c: revert. before lazy sweep.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-05 07:15:41 +00:00
suke
1890ae7aa9
* ext/win32ole/win32ole.c: add WIN32OLE#ole_respond_to?
...
* test/win32ole/test_win32ole.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-05 01:01:01 +00:00
akr
1a32af4e7a
* re.c (unescape_nonascii): add has_property argument not to
...
raise error by /\p{Hiragana}\u{3042}/ in EUC-JP script.
(rb_reg_preprocess): use has_property argument to make regexp
encoding fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 23:50:33 +00:00
akr
54c984a898
* re.c (unescape_nonascii): make regexp fixed_encoding if \p is used.
...
fixed [ruby-core:17279].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 23:33:04 +00:00
suke
7a05bfaaab
* ext/win32ole/win32ole.c (d2time): fix the bug of VT_DATE
...
to String conversion when negative value.
* test/win32ole/test_win32ole_variant.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 14:19:01 +00:00
akr
7d166d26a5
* lib/test/unit/testcase.rb: collect decendants of
...
Test::Unit::TestCase using inherited.
* lib/test/unit/autorunner.rb: don't use ObjectSpace.each_object.
* lib/test/unit/collector/dir.rb: ditto.
* lib/test/unit/collector/objectspace.rb: ditto.
[ruby-core:17126]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 13:19:24 +00:00
nobu
28b216ac45
* include/ruby/oniguruma.h (OnigEncoding): removed auxiliary_data.
...
* include/ruby/encoding.h (ENC_DUMMY_P): moved dummy encoding flag to
rb_encoding from Encoding instance.
* encoding.c (rb_encoding_list): list of Encoding instances.
* encoding.c (struct rb_encoding_entry): moved base encoding from
instance variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 11:44:05 +00:00
usa
75d3a3d0df
* numeric.c (check_uint, rb_num2uint, rb_fix2uint): proper check.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 08:52:51 +00:00
nobu
62dc500faf
* lib/net/ftp.rb (Net::FTP#sendport): use divmod. [ruby-core:17557]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 05:17:25 +00:00
nari
5b72919469
* gc.c (garbage_collect_force): sweep is completely ended.
...
* gc.c (os_obj_of): invoke garbage_collect_force() when freelist none.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 02:18:17 +00:00
usa
f8ed3b245a
* numeric.c (rb_num2uint, rb_fix2uint): typo.
...
* ChangeLog: format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 20:04:35 +00:00
usa
fc64f8c5fe
* numeric.c (check_uint, rb_num2uint): also needs checking negative
...
value. see [ruby-dev:33683]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 17:22:29 +00:00
mame
ae3a03eb07
* include/ruby/intern.h: remove prototypes about coverage.
...
* iseq.c (prepare_iseq_build): add prototype.
* parse.y (coverage): ditto.
* thread.c (clear_coverage): ditto.
* thread.c (update_coverage): use rb_sourceline.
* thread.c (rb_get_coverages): rename and move to vm.c.
* vm.c (rb_vm_get_coverages): ditto.
* ext/coverage/coverage.c: add rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 14:27:43 +00:00
mame
f08581c7b6
* ext/coverage/coverage.c, ext/coverage/extconf.rb: eliminate
...
COVERAGE__ and introduce coverage.so instead. How to measure
coverage: (1) require "coverage.so", (2) require or load Ruby source
file, and (3) Coverage.result will return the same hash as COVERAGE__.
[ruby-dev:35324]
* thread.c (rb_enable_coverages): start coverage measurement by using
rb_add_event_hook.
* thread.c (rb_get_coverages): returns current results of coverage
measurement.
* include/ruby/intern.h: add prototype for above two functions.
* vm_core.h, vm.c: add field of coverages to rb_vm_t.
* insns.def (trace): remove special handling for COVERAGE__.
* iseq.c (prepare_iseq_build): switch COVERAGE__ to
rb_get_coverages().
* parse.y (coverage): ditto.
* thread.c (clear_coverage): ditto.
* lib/coverage.rb: use coverage.so instead of COVERAGE__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 12:55:12 +00:00
mame
16519f1ff9
* thread.c (thread_initialize): NUM2INT returns long.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 12:21:11 +00:00
nobu
1aa2d2976f
* eval.c (Init_eval): typo fixed in r17833.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 12:06:22 +00:00
suke
854d955393
* ext/win32ole/win32ole.c (Init_win32ole): remove duplicate line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 10:48:02 +00:00
akr
f8348e1124
* configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch
...
on IA64 is broken. erfc(10000.0) aborts.
use missing/erf.c instead.
http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 07:22:06 +00:00