Граф коммитов

12991 Коммитов

Автор SHA1 Сообщение Дата
akr 97208f2b34 * ext/socket/socket.c: use PRIuSIZE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 14:25:52 +00:00
nobu 4fd8cbe484 * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 13:41:42 +00:00
nobu 7365301470 * include/ruby/intern.h (HAVE_RUBY_RUBY_H): defines macros so that
extconf.rb do not need to check if headers exist under separated
  directory.  [ruby-dev:35437]

* include/{ruby,rubyio,rubysig}.h, include/ruby/intern.h: use
  "ruby/..." instead of <ruby/...>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 13:30:46 +00:00
nobu f94f8f351e * configure.in (sizeof ptrdiff_t): check for size of ptrdiff_t.
* include/ruby/ruby.h (PRI?PTRDIFF, PRI?SIZE): printf conversion
  specifiers for ptrdiff_t and size_t/ssize_t.

* insns.def (leave), marshal.c (long_toobig), transcode.c
  (str_transcode), vm_dump.c (control_frame_dump, stack_dump_each),
  (debug_print_register, debug_print_pre): t and z length modifiers
  are C99.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 13:17:29 +00:00
nobu 2c0a3f226a * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): requires
webrick/cookie.  [ ruby-Bugs-21139 ]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 07:02:40 +00:00
suke 6c62eafc7c * test/win32ole/test_win32ole_event.rb: add test
for WIN32OLE_EVENT#on_event_with_outargs

* test/win32ole/test_win32ole_event.rb(teardown): calling 
  WIN32OLE_EVENT.message_loop


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 00:31:32 +00:00
svn 3400b01ec1 * 2008-07-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-11 16:55:18 +00:00
usa dde0905830 * win32/win32.c (rb_w32_select): shoudn't pass non-socket handle to
original select().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-11 16:55:14 +00:00
mame dfd0d6a5ca * test/zlib/test_zlib.rb: add a test for Zlib::Deflate#params.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-11 14:06:19 +00:00
mame 7a89495beb * ext/zlib/zlib.c (rb_deflate_params): flush before deflateParams.
[ruby-core:17675]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-11 13:59:05 +00:00
usa bf050c3cd6 * win32/setup.rb, win32/Makefile.sub (PLATFORM): use $(PLATFORM)
instead of $(OS) because ENV["OS"] is used in test-all (drb).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-11 13:10:29 +00:00
nobu f3fcd2e4a0 * io.c (rb_io_wait_readable, rb_io_wait_writable): check if the file
descriptor is closed.

* thread.c (rb_thread_wait_fd_rw): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-11 11:51:39 +00:00
usa 4532c0d81e * win32/win32.c (rb_w32_accept, rb_w32_socket, rb_w32_socketpair):
prohibit inheritance of sockets, too. [experimental]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-11 07:18:29 +00:00
usa e9db21d9cf * win32/win32.c (CreateChild): the measures for Vista is no longer
unnecessary.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-11 05:43:03 +00:00
nobu db093f2d39 * common.mk (process.o): depends on util.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 21:16:28 +00:00
usa 989d3ef272 * include/ruby/win32.h (pipe): prohibit inheritance.
fixed: [ruby-dev:35421]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 20:09:38 +00:00
ko1 df91d39c94 * thread.c (thread_create_core): fix GC problem.
[ruby-core:17669]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 15:58:07 +00:00
akr 5c91367675 add ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 14:52:24 +00:00
nobu d238b7c627 * lib/pstore.rb (PStore#transaction): return the result from the
block.  [ruby-core:17718]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 13:06:03 +00:00
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