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

22740 Коммитов

Автор SHA1 Сообщение Дата
kosaki 98c7ca9b65 * io.c (copy_stream_body, rb_io_s_copy_stream): move rb_fd_init()
from copy_stream_body to rb_io_s_copy_stream. fds of passing
  rb_fd_term() have to be guaranteed initialized.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 07:30:45 +00:00
kosaki 568c934373 * benchmark/bm_io_select.rb, benchmark/bm_io_select2.rb: New.
based on a patch from Eric Wong at [Feature #4531]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 07:16:31 +00:00
kosaki b48537cd26 * test/io/wait/test_io_wait.rb: New. for testing ext/io/wait.
the patch was written by Eric Wong. [Feature #4531]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 19:09:44 +00:00
kosaki d4dcad8746 fix eol-style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 16:18:01 +00:00
kosaki 1bbab74398 spell fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 15:50:43 +00:00
kosaki 58e414b85e * include/ruby/win32.h: remove redundunt declaration of
rb_w32_time_subtract().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 15:43:55 +00:00
svn 708034fedf * 2011-04-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 15:20:05 +00:00
kosaki ada9870af9 * thread_pthread.c (gvl_init): fix hangup if GVL_SIMPLE_LOCK=1.
We don't have to call mutex_unlock() before initialize it!



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 15:20:00 +00:00
nobu 5f131b648d * thread_win32.c, include/ruby/win32.h: add prototypes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 12:12:52 +00:00
kosaki b4c5fad4b1 * thread_win32.c (native_cond_timedwait): New. r31373 caused
win32 build failure.

* thread_win32.c (__cond_timedwait, abs_timespec_to_timeout_ms):
  New helper functions.

* win32/win32.c (rb_w32_time_subtract): rename from subtract and
  remove static.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 04:18:29 +00:00
kosaki 9d4ae4ab0c fix indentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 03:23:13 +00:00
kosaki eaca3529f2 set svn:eol-style property
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 02:06:36 +00:00
kosaki 3c24bc37a0 * benchmark/bm_vm4_pipe.rb: Add two new benchmark for GVL
performance. They was written by Koichi Sasada.
* benchmark/bm_vm4_thread_pass.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:44:32 +00:00
kosaki e4ba4b79b6 * vm_method.c (rb_clear_cache_by_class): Revert r29673. It made
a segmentation fault regression. [Bug #4289][ruby-core:34554].



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:29:22 +00:00
nobu 85c1d5d41d * io.c (make_writeconv): do not add textmode newline decorator if any
newline decorator is set already.  fixes #4618, fixes #4619

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:24:54 +00:00
kosaki 7ff7a2b376 ChangeLog change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:18:51 +00:00
kosaki 6998f013ab * thread.c (lock_func): small cleanup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:18:11 +00:00
svn 32ae0ae1c2 * 2011-04-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:11:31 +00:00
kosaki 74c5e807f7 * thread.c (rb_mutex_lock, lock_func): Avoid busy loop and
performance degression. bm_vm3_thread_mutex.rb performance
  change from 109.064sec to 16.331sec.

* thread.c (init_lock_timeout): New helper function.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:11:28 +00:00
usa 22d5cf9226 * win32/{win32.c,dir.h} (rb_w32_uopendir): new API to pass UTF-8 path.
* win32/win32.c (opendir_internal, rb_w32_opendir): extract and merge
  common part of rb_w32_opendir() and rb_w32_uopendir().

* dir.c (do_opendir, glob_helper): encoding.

* dir.c (dir_initialize, do_opendir): convert path to UTF-8 and call
  rb_w32_uopendir() instead of rb_w32_opendir() on Windows.
  fixes #4491, reported by Joey Zhou.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-28 07:22:18 +00:00
usa e269a71eeb * test/dl/test_base.rb (DL::LIBC_SO): its always msvc*.dll on
mswin/mingw.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-28 06:34:01 +00:00
nobu e858442f4f * lib/csv.rb (CSV::open): suppress universal newline decorator.
fixes #4603

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-27 21:07:09 +00:00
nobu 2f348762fb * lib/csv.rb (CSV.read): no mode is needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-27 21:07:04 +00:00
svn c612fc92ec * 2011-04-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-27 21:07:03 +00:00
nobu 9c48e59907 * io.c (rb_io_extract_modeenc, rb_f_backquote): set default text
mode.  fixes #4619
* io.c (pipe_open): set universal newline decorator if needed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-27 21:06:59 +00:00
naruse 06911f90ce * enc/trans/emoji_iso2022_kddi.trans: ISO-2022-JP-KDDI doesn't have
CP932 UDA. Another reason is emacs-mule: the implementation of
  stateless-iso-2022-jp doesn't support beyond 94x94 (0x7fxx);
  but CP932 UDA is in 7Fxx-92xx.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-27 02:45:36 +00:00
nobu 86ed9661b8 * configure.in (STRIP): use proper toolchain. based on a patch
from Jon Forums at [ruby-core:35909].  fixes #4617

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 22:42:46 +00:00
nobu dfb52b729b * test/ruby/test_encoding.rb (test_encoding): tests for r31362.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:30:27 +00:00
tadf 322bffd84b * ext/date/date_core.c (date_zone_to_diff): renamed.
* ext/date/date_parse.c: ditto.
	* ext/date/date_strptime.c: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:23:05 +00:00
nobu 21e6862cd5 * encoding.c (enc_find): accept Encoding objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:17:01 +00:00
nobu 8fabd0c551 * include/ruby/win32.h (frexp, modf): fix suppressing warnings on
mingw.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:14:26 +00:00
tadf 2ad123c298 use skip
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:09:14 +00:00
tadf 184e9e9d88 use skip
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:05:49 +00:00
tadf 9fe4a35e67 * ext/date/date_core.c: modified validation methods.
* ext/date/lib/date.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:02:25 +00:00
nobu 0b98b9a95d * strip trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:57:04 +00:00
nobu c26ab1ef1c * transcode.c (econv_opts): add newline option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:55:58 +00:00
nobu 8761467727 * io.c (validate_enc_binmode, rb_io_extract_modeenc): set newline
decorator according to open mode.
* transcode.c (rb_econv_prepare_options): new function, to prepare
  econv options with newline flags.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:55:21 +00:00
nobu 3b937bbdc4 * include/ruby/encoding.h (ECONV_NEWLINE_DECORATOR_MASK): add.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:54:14 +00:00
nobu 7140c8f0cd * transcode.c (econv_init): fix rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:52:35 +00:00
nobu 4c7106c679 * file.c (rb_file_truncate): fix function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:51:04 +00:00
nobu fcfc113b04 * include/ruby/win32.h (ftruncate, truncate, ftello, fseeko): non-64
versions on mingw are useless because they use int32_t.  fixes #4564

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:50:09 +00:00
svn 7da3b09e0f * 2011-04-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:02:13 +00:00
tadf 91ee771012 * ext/date/date_core.c (dt_lite_set_tmx): should get df value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:02:10 +00:00
tadf b3defabde2 * ext/date/lib/date/format.rb (_iso8601): allowed day only civil
date.  disallowed separatorless day only ordinal date.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 13:36:49 +00:00
svn 82c771fe8f * 2011-04-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 21:45:40 +00:00
iwamatsu 73868a547f * ext/openssl/extconf.rb: Should check SSLv2_*method.
openssl compiled with "no-ssl2" the extconf don't fail 
  when running `make' having this compilation errors.
  Patched by Laurent Arnoud. fixes #4562, #4556



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 21:45:33 +00:00
arton 333e43e06b * win32/win32.c (kill): accept 0 only sig is SIGINT #4596
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 12:11:44 +00:00
arton 83e071701b * win32/win32.c (kill): accept 0 as pid, fixes #4596
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 11:04:40 +00:00
naruse 63f39fcb40 * random.c (random_rand): remove unused variables.
* struct.c (rb_struct_define_without_accessor): ditto.

* strftime.c (rb_strftime_with_timespec): ditto.

* sprintf.c: ditto.

* time.c (time_asctime): remove useless GetTimeval().

* thread_pthread.c: cast to (void *) for %p.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 07:56:42 +00:00
naruse 7c885222ca * ext/ripper/lib/ripper/sexp.rb: fix rdoc arround sexp.
patched by Sho Hashimoto. fixes #4599

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 02:28:49 +00:00