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

13027 Коммитов

Автор SHA1 Сообщение Дата
mame d80a9afb18 * test/ruby/test_process.rb (test_getpriority, test_setpriority): use
PRIO_PROCESS instead of PRIO_USER.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-17 12:09:21 +00:00
mame df5604ce5d * pack.c (pack_unpack): fix v and V with big endian.
[1].pack("V").unpack("V") was [4294967296].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-17 11:42:17 +00:00
mame 871c83dddf * pack.c (pack_pack): fix i! with big endian. [1].pack("i!") was
"\0\0\0\0".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-17 11:36:54 +00:00
usa fae330b3b9 * ext/socket/socket.c (ruby_connect): select() for connect() has
mean only when the socket is non-blocking.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-17 07:49:51 +00:00
drbrain b85504f0e9 Simplify expression for RDoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-17 01:55:58 +00:00
usa 6852eaaf0d * numeric.c (check_uint, rb_num2uint, rb_fix2uint): strict check.
fixed [ruby-dev:33683]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-17 01:23:35 +00:00
nobu c60b57ade0 * test/ruby/enc: moved tests for particular encodings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-16 19:33:15 +00:00
nobu 47e3f4e1ae * thread.c (thread_start_func_2): wake up joining threads.
* thread.c (sleep_forever, sleep_timeval): return when interrupted.
  [ruby-dev:35542]

* thread.c (timer_thread_function): restore main thread status.
  [ruby-core:17270]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-16 19:19:36 +00:00
nobu aba40d1a38 * test/ruby/test_signal.rb (test_trap): string commands are allowed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-16 19:12:41 +00:00
svn bb09f09ba6 * 2008-07-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-16 16:30:16 +00:00
mame 27bf963fa8 * io.c (appendline): remove invalid access.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-16 16:30:12 +00:00
nobu 1b2af065a2 * signal.c (signal_exec, trap_handler): trap accepts a string as
command.  [ruby-dev:35533]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-16 09:04:37 +00:00
svn 5198897802 * 2008-07-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 15:26:09 +00:00
mame eafe85f603 * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): new
method.

* test/ruby/test_argf.rb: use assert_in_out_err instead of
  EnvUtil.rubyexec.

* test/ruby/test_module.rb: ditto.

* test/ruby/test_require.rb: ditto.

* test/ruby/test_objectspace.rb: ditto.

* test/ruby/test_object.rb: ditto.

* test/ruby/test_string.rb: ditto.

* test/ruby/test_method.rb: ditto.

* test/ruby/test_variable.rb: ditto.

* test/ruby/test_io.rb: ditto.

* test/ruby/test_rubyoptions.rb: ditto.

* test/ruby/test_exception.rb: ditto.

* test/ruby/test_class.rb: ditto.

* test/ruby/test_thread.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 15:26:04 +00:00
usa e74af2cf41 * win32/Makefile.sub (ruby_version): follow changes in configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 13:34:49 +00:00
nobu 3e7b91eebd * ext/tk/{,tkutil/}extconf.rb: ruby/ruby.h no longer needs to be
checked.

* ext/tk/{tcltklib.c,tkutil/tkutil.c}: check macros for each headers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 12:58:23 +00:00
knu e3cc2ee1ed * ext/tk/extconf.rb, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: Do
not test ruby/ruby.h, which makes OS X's gcc pick the wrong
  header file from Ruby.framework.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 12:48:47 +00:00
usa c9eba6932b * ext/socket/socket.c (ruby_connect, s_accept): came back blocking
region because other thread/process maybe read/write the socket
	  between select() and connect()/accept().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 12:34:58 +00:00
knu 6bc480e059 * configure.in (--with-ruby-version): Add a new option to specify
the ruby version string for version specific directories.
  [ruby-dev:35490]

* mkconfig.rb: Definition of ruby_version is now determined by the
  configure script.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 12:33:28 +00:00
usa a6efdc47f9 * ChangeLog: type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 09:26:05 +00:00
usa 57331140f6 * ext/socket/socket.c (ruby_connect, s_accept): no need to wrap by
blocking region if checked before readable/writable by select.

	* ext/socket/socket.c (bsock_send, s_recvfrom, udp_send, unix_send_io,
	  unix_recv_io): should check readable/writable before blocking calling
	  blocking functions.
	  see [ruby-dev:35446]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 09:17:22 +00:00
svn ad99950263 * 2008-07-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 09:14:14 +00:00
usa 25498d24c8 * thread_win32.c (ubf_handle): cancel blocking IO if it can (only
Vista). see [ruby-dev:35446]

	* win32/win32.c (errmap): add ERROR_OPERATION_ABORTED as EINTR.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 09:14:09 +00:00
suke 598fdcb730 * test/win32ole/test_win32ole_event.rb (teardown): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-14 11:38:09 +00:00
nobu 94ed51b281 * transcode.c (transcode_loop): constified.
* transcode.c (str_transcode): rb_str_set_len() sets a delimiter.

* transcode_data.h (rb_transcoder): constified preprocessor and
  postprocessor input.

* enc/trans/japanese.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-14 09:47:33 +00:00
kazu ae87557916 * test/ruby/test_time.rb (TestTime#test_time_interval): add timeout
to avoid stopping tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-14 08:40:17 +00:00
naruse ef62472e44 * transcode.c (get_replacement_character): temporary function,
get characters for replacement mode.

* transcode.c (transcode_loop): add undef key and replace value.

* transcode.c (str_transcode): ditto.

* transcode.c (Init_transcode): define sym_undef and sym_replace.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-14 06:27:26 +00:00
kazu 641d6ece1e * test/ruby/test_variable.rb (TestVariable#test_global_variable_0): add test of $0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-14 06:17:36 +00:00
usa 878a3f60b6 * ext/socket/extconf.rb: initialize winsock on win32 to avoid error
dialog of OS.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-14 04:37:21 +00:00
svn bd232e1578 * 2008-07-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-13 21:02:35 +00:00
nobu bd4c28afbd * lib/optparse.rb (OptionParser#environment): requires shellwords.
[ruby-dev:35466]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-13 21:02:28 +00:00
suke 6e0ed5570e * ext/win32ole/win32ole.c (EVENTSINK_Invoke): using hash
to set value to the reference argument of event.

* test/win32ole/test_win32ole_event.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-13 12:36:26 +00:00
nobu b7000ccfa0 * ext/pty/pty.c (raise_from_wait, pty_syswait, get_device_once):
constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 21:57:11 +00:00
svn eb43e44cd0 * 2008-07-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 20:39:07 +00:00
usa a0fe21b362 * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): typo.
* {bcc32,win32}/Makefile.sub: (SIZEOF_SIZE_T, SIZEOF_PTRDIFF_T): added.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 20:39:02 +00:00
usa 2d46553ffa * win32/Makefile.sub (LIBRUBY_DLDFLAGS): import library which created
with DLL is broken. save import library which created by lib.exe and
	  install it. 
	  fixed the problem mentioned at the postscript of [ruby-dev:35448]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 14:58:07 +00:00
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