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

13141 Коммитов

Автор SHA1 Сообщение Дата
svn 99f8f86354 * 2008-07-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-30 08:48:37 +00:00
nobu 807fcf9d13 * win32/win32.c (rb_w32_select): recalc the rest of timeout for each
iterations.  [ruby-core:18015]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-30 08:48:31 +00:00
mame be9994a03a * io.c (io_ungetc): raise NotImplementedError when ungetc is called
against dummy encoding IO.

* io.c (rb_io_getline_1): ditto when gets with delimiter is called.

* io.c (io_getc): ditto when getc is called.

* test/ruby/test_io_m17n.rb (test_terminator_stateful_conversion,
  test_getc_stateful_conversion, test_ungetc_stateful_conversion):
  these tests should raise NotImplementedError.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-29 14:38:44 +00:00
mame d866ba69a1 * test/ruby/test_io.rb (pipe): run reader thread and writer thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-29 13:56:24 +00:00
mame 995e44e050 * ext/bigdecimal/bigdecimal.c (Init_bigdecimal): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-29 12:38:33 +00:00
mame 8da30b8928 * test/etc/test_etc.rb (test_passwd): age field may be string under
some environments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-29 12:36:28 +00:00
naruse 7e5be7e131 * dir.c (char_casecmp): fix: return 0 if either of characters is NUL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-29 10:31:31 +00:00
nobu 9bd616a3d3 * ChangeLog: fixed wrong changelog for r18253.
* file.c (rb_find_file_ext, rb_find_file): explicit relative path
  which starts with "./" or "../" should be searched from cwd
  instead of load path.  [ruby-dev:35673]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-29 08:36:41 +00:00
naruse f783b8d204 * test/etc/test_etc.rb (test_getpwuid): fix for users whose uid is
shared.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-29 04:21:32 +00:00
nobu e7d2f303b7 * file.c (rb_find_file_ext, rb_find_file): converts Windows style path
to Cygwin path.  [ruby-dev:35647]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 20:38:04 +00:00
naruse 78b5fdd5a8 * math.c (math_atanh): raise EDOM on FreeBSD when atanh(1).
* math.c (math_log): ditto.

* math.c (math_log2): ditto.

* math.c (math_log10): ditto.

* test/ruby/test_math.rb: test for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 17:42:32 +00:00
svn 54da95b9e1 * 2008-07-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 17:12:55 +00:00
akr 2f1908b1cf * dir.c (struct dir_data): intenc field removed.
(dir_s_alloc): intenc initialization removed.
  (dir_initialize): :internal_encoding option removed.  dirname code
  conversion removed.
  (dir_enc_str): code conversion removed.
  [ruby-dev:35661]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 17:12:51 +00:00
kou bac3ea1fca * test/rss/: use PNG instead of zlib as binary data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 12:33:44 +00:00
usa a73ba1def7 * thread_win32.[ch] (cond_every_entry, rb_thread_cond_struct): reverted
r18239 because r18245 made the changes unnecessary.

	* thread.c (rb_mutex_struct): define after including thread_{pthread,
	  win32}.c.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 12:27:43 +00:00
mame 517fd61e14 * test/ruby/test_require.rb (test_require_too_long_filename):
Kernel#require does not use dln_find_file_r (at r18242).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 12:00:43 +00:00
mame 8d56defa55 * vm_core.h: move the definition of struct rb_mutex_struct.
* thread.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 11:17:43 +00:00
mame 13e0d5bc91 * thread.c (mutex_unlock): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 09:59:12 +00:00
nobu 31aa0986b8 * file.c (rb_find_file_ext, rb_find_file): not to split load path with
path separator.  [ruby-Bugs-21356]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 09:15:48 +00:00
nobu 66660a893a * win32/win32.c (overlapped_socket_io, fcntl, rb_w32_close): must not
pass a pointer to int which is smaller than st_data_t on mswin64.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 09:14:14 +00:00
nobu d2f72cca6e * win32/win32.c (CreateChild, overlapped_socket_io): suppress
warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 07:49:56 +00:00
usa 009db87ce2 * win32/win32.c (MAXPATHLEN): define before use.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 07:07:12 +00:00
usa 9b3aade1b6 * thread_win32.[ch]: moved definitions of cond_every_entry and
rb_thread_cond_struct from .c to .h because rb_thread_cond_struct
	  is used in vm_core.h.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 07:02:07 +00:00
nobu 99c8c71243 * dln.c (load_lib): use dln_find_file_r instead of dln_find_file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 05:29:56 +00:00
svn a95b2fde60 * 2008-07-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-27 15:20:05 +00:00
mame d76ab40bea * vm_core.h, thread.c: It is now prohibited to use Data_Get_Struct in
*_free against an object that is going to be free'ed.  So, change type
  of thread_t#keeping_mutexes from VALUE to mutex_t.

* vm.c: remove mark to keeping_mutexes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-27 15:20:01 +00:00
mame 787cde7f9a * test/openssl/test_ssl.rb (server_loop): rescue Errno::EINVAL and
Errno::ECONNABORTED.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-27 14:33:05 +00:00
naruse 99c3a01dc7 * bootstraptests/method.rb: increase RLIMIT_STACK size to 4M+8Kbytes
because FreeBSD fails this less than that.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-27 13:24:18 +00:00
ko1 845e5766dc * gc.c (gc_mark_children, obj_free): T_DEFERRED should not be appear.
* gc.c (gc_sweep, finalize_list): fix to decrement heap_slot#limit
  after executing finalizer.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-27 13:08:02 +00:00
ko1 60be3dc560 * include/ruby/ruby.h: add a type T_DEFERRED.
* gc.c: fix deferred finalizer system.  finalize processes of
  T_DATA and T_FILE are executed after gc process.
  And fix to use BUILTIN_TYPE() instead of seeing flag.
* thread.c, vm_core.h: add RUBY_VM_SET_FINALIZER_INTERRUPT()
  and check intterupt_flag at rb_thread_execute_interrupts().
* thread.c (mutex_mark): fix to mark next_mutex.
* vm.c (rb_thread_mark): fix to mark keeping_mutexes.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-27 05:59:32 +00:00
nobu c30616378e * dln.h (dln_find_exe, dln_find_file): deprecated, use reentrant
versions instead.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-27 00:15:31 +00:00
svn 92c2f654db * 2008-07-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-27 00:04:43 +00:00
seki 0098caf510 merged from 1.8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-27 00:04:38 +00:00
yugui 232e659214 * sample/exyacc.rb: fixed NoMethodError(Kernel#sub!).
replaced use of special variables with explicit IO
  operations.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-26 14:19:50 +00:00
suke 1f9fce063f add sample script using WIN32OLE_EVENT#handler=
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-26 12:49:25 +00:00
suke 2e400ad1b8 * ext/win32ole/win32ole.c (Init_win32ole): add
WIN32OLE_EVENT#handler=, WIN32OLE_EVENT#handler

* test/win32ole/test_win32ole_event.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-26 12:27:57 +00:00
svn b403a1760c * 2008-07-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 22:48:30 +00:00
suke 6997482140 * ext/win32ole/win32ole.c (add_event_call_back): remove unused
variable.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 22:48:25 +00:00
nobu 0841c2e67b svn:eol-style LF
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 14:49:53 +00:00
nobu f421f68484 * gc.c (gc_sweep, obj_free, run_final): defer finalizers of IO and
Data.  [ruby-dev:35578]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 14:48:12 +00:00
nobu 1181a092af * lib/webrick/httputils.rb (WEBrick::HTTPUtils#split_header_value):
reduce backtrack.  based on a fix by Christian Neukirchen
  <chneukirchen AT gmail.com>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 14:35:21 +00:00
mame 65aa393ae7 * test/ruby/enc/test_koi8.rb: move from test/ruby/test_koi8.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 12:56:36 +00:00
suke 148d575264 * ext/win32ole/win32ole.c (ole_invoke, add_event_callback,
rescue_callback): refactoring.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 12:13:57 +00:00
suke 87f80a7dd7 * test/win32ole/err_in_callback.rb : add test of raising
exception in WIN32OLE_EVENT callback.

* test/win32ole/test_err_in_callback.rb : ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 11:59:53 +00:00
suke 4aec73e1ed * ext/win32ole/win32ole.c (Init_win32ole): add
WIN32OLE_EVENT#off_event.

* test/win32ole/test_win32ole_event.rb: ditto.
	
* test/win32ole/test_win32ole_event.rb: some refactoring.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 11:49:28 +00:00
nobu f37a49e8c8 * regint.c (xmalloc, xrealloc, xfree): not to use ruby managed memory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 10:50:52 +00:00
ko1 7c8ad088f5 * vm.c (vm_invoke_proc): skip setting safe_level if
it from bmethod.  This change makes test/ruby/test_proc.rb pass.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 06:56:23 +00:00
nobu 20796c9000 * ext/nkf/nkf-utf8/nkf.c (struct input_code.name, input_codename):
constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 05:48:32 +00:00
duerst 3e53486295 * test/ruby/test_transcode.rb: refactoring/cleanup of
test_iso_2022_jp(_1)



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 01:01:38 +00:00
naruse 32eca11325 fix ChangeLog.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-24 19:15:56 +00:00