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

7782 Коммитов

Автор SHA1 Сообщение Дата
matz e5f2b421c0 * ext/socket/socket.c (sock_accept): revert to avoid ambiguity of
argument evaluation order.  [ruby-dev:28861]

* ext/socket/socket.c (sock_accept_nonblock): ditto.

* io.c (pipe_open): avoid closing uninitialized file descriptors.
  a patch from <tommy at tmtm.org> [ruby-dev:28600]

* parse.y: replace terminal token names with more descriptive
  name, i.e. kEND to keyword_end.  [ruby-list:42477]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-26 14:15:49 +00:00
nagai 6fa7d6cb01 * ext/tk/tcltklib.c (ip_delete): fix SEGV when a slave-ip is deleted
on callback.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-26 09:41:34 +00:00
nobu 439600afbd * Makefile.in, mkconfig.rb: catch-up for latest autoconf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-25 14:03:10 +00:00
akr 6f9183d650 add extconf.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-25 09:42:05 +00:00
akr 609d6e570e ML ref: [ruby-dev:28843]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-25 09:19:34 +00:00
akr 1615bce205 add ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-25 08:47:31 +00:00
akr 6143716587 * parse.y (paren_args): wrap $2 by escape_Qundef because it may be
Qundef.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-25 08:45:44 +00:00
suke afdc2b89bd support some kind of method of word. [ruby-Bugs#3237]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-25 08:21:29 +00:00
suke 38321af30c avoid Argument Error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-25 08:16:44 +00:00
suke b2df5084b4 change test class name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-25 08:15:06 +00:00
eban abeddbf66a * 2006-06-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-24 16:31:45 +00:00
akr 32f499f9d5 add message for an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-24 15:38:21 +00:00
akr f20b5c9995 refine previous description.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-24 14:58:22 +00:00
akr bb87f28346 * eval.c (rb_eval): use rb_ary_new2 instead of rb_ary_new4 to avoid
GC problem.
  (rb_yield_values): use rb_ary_new2 instead of rb_ary_new4.

* array.c (rb_ary_new4): don't set len as n.  make it safe with GC.

  [ruby-dev:28826]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-24 14:52:59 +00:00
eban b72f065343 * 2006-06-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-24 03:42:23 +00:00
akr 934847fbeb add extconf.h to .cvsignore.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-24 01:15:08 +00:00
akr a1dc1d6a8c * ruby.h, lib/drb/drb.rb, lib/drb/invokemethod.rb: remove Values class.
[ruby-dev:28805]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-23 14:39:01 +00:00
nobu f6ef26c411 * ChangeLog: fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-23 13:03:23 +00:00
nobu ac9910e727 * eval.c (rb_block_pass): removed.
* eval.c (rb_thread_start_1): use rb_proc_yield() instead of
  rb_block_pass().  fixed: [ruby-dev:28794]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-23 08:28:04 +00:00
eban ab63980325 * 2006-06-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-23 02:01:26 +00:00
matz dd01cf9869 * lib/net/http.rb (Net::HTTPResponse): duplicated error 501;
HTTPInternalServerError should be error 500.  [ruby-core:08037]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-23 01:52:11 +00:00
matz 4024730959 * variable.c (rb_mod_name): returns nil for anonymous modules.
[ruby-talk:198440]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-22 02:49:28 +00:00
eban cb6f1b4f2e * 2006-06-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-22 01:41:32 +00:00
matz 66de9ef349 * string.c (rb_str_aref): "abc"[3] should not return an empty
string but nil.  [ruby-dev:28786]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-22 01:39:44 +00:00
akr b77a4e2a4e * ext/socket/socket.c (sock_s_socketpair): try GC only once.
[ruby-dev:28778]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21 20:19:07 +00:00
tadf 274ae70db2 fixed an issue about mathn.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21 12:23:58 +00:00
usa bc6a1d8dcf * ext/socket/getaddrinfo.c (freeaddrinfo, get_name): fixed typo.
* ext/tk/tcltklib.c (tcl_eval, tcl_global_eva): ditto.

* ext/zlib/zlib.c (rscheck): constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21 08:32:22 +00:00
matz 7dd70df4b0 * lib/pp.rb (PP::PPMethods::seplist): should have preserved
original reference to the array.  [ruby-dev:28747]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21 08:20:12 +00:00
matz 2ca2a4a43b * parse.y (block_param): do not use multiple assignment for a sole
block parameter.  [ruby-dev:28710]

* eval.c (rb_yield_0): pass a raw yielded value to a sole block
  parameter if a value is passed by yield.

* eval.c (proc_invoke): args may not be an array.

* eval.c (rb_proc_yield): pass original value without wrapping
  it in an array.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21 08:08:36 +00:00
akr ad5f0fc6cc use fork to isolate rlimit effect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21 07:08:34 +00:00
matz 7b5d9d7086 * parse.y (method_call): remove (fn)(args) style lambda
invocation, add fn.(args) instead.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21 05:13:48 +00:00
matz 1b7465e893 * eval.c, file.c, etc.: code-cleanup patch from Stefan Huehner
<stefan at huehner.org>.  [ruby-core:08029]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20 18:02:17 +00:00
eban 866e083484 * 2006-06-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20 16:46:41 +00:00
nobu e394fed724 * parse.y (reswords): modifier token is no longer returned in fname
state.  fixed: [ruby-dev:28775]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20 16:40:35 +00:00
nobu 8446b6c59b * ext/extmk.rb (parse_args): provisional catch-up for the recent changes.
* lib/optparse.rb (OptionParser::List#summarize, OptionParser#order!): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20 14:28:49 +00:00
matz 3be20019c1 * eval.c (proc_invoke): intercept break and return from lambda
Proc objects.  [ruby-dev:28742]

* eval.c (proc_invoke): remove unnecessary YIELD_PROC_CALL flag.

* eval.c (YIELD_EXACT_ARGS): renamed from YIELD_LAMBDA_CALL, which
  is no longer related to the behavior turned on by this flag.

* eval.c (return_jump): no need to care about PROT_YIELD.

* eval.c (break_jump): no jump to toplevel PROT_TREAD tag.

* eval.c (rb_yield_0): fix confusion between lambda (which is a
  property of a proc) and pcall (which depends on whether it's
  called via yield or call).

* eval.c (rb_thread_yield): no need to specify YIELD_LAMBDA_CALL.

* eval.c (rb_block_pass): update blkid in prot_tag.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20 06:09:04 +00:00
eban 765c807219 * 2006-06-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20 02:34:53 +00:00
drbrain 905cd041c9 RDoc from Hugh Sasse [ruby-core:8012]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 22:07:42 +00:00
naruse a6db3fc7b8 Mon Jun 19 23:40:59 2006 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/lib/kconv.rb: remove default -m0 and fix document.

	  * ext/nkf/nkf-8/{nkf.c, config.h, utf8tbl.c, utf8tbl.h}:
	    imported nkf 2.0.7.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 14:44:30 +00:00
naruse a59c6fe7c9 * kconv.rb: remove default -m0 and fix document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 14:40:23 +00:00
naruse 5c691de442 * ext/nkf/nkf-utf8/nkf.c: imported nkf 2.0.7
* Fix: fallback in CP51932
  * ANSI C
  * Fix bug arround MIME encode NL


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 14:25:06 +00:00
suke cd15cdca77 should not test when win32ole is not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 11:00:12 +00:00
matz 9612bd51f4 * sample/test.rb (proc_return3): return within non lambda block
should terminate surrounding method.  [ruby-dev:28741]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 08:19:18 +00:00
matz e3cd29bc63 * ext/socket/socket.c (unix_sysaccept): typo fixed.
* ext/socket/socket.c (sock_connect): remove an unused local
  variable tmpaddr.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 07:14:28 +00:00
matz 4ee699999d * ext/socket/socket.c (tcp_accept_nonblock): forgot to remove
abandoned hacks.  [ruby-dev:28740]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 04:10:42 +00:00
eban 3cbe446867 * 2006-06-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18 15:07:23 +00:00
nagai 60976b119f * ext/tk/lib/multi-tk.rb: fix bug: initialize improper tables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18 15:05:01 +00:00
usa 6dea5cdb5b * 2006-06-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18 13:59:01 +00:00
suke 33311b653c support PROPERTYPUTREF. [ruby-talk:183042]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18 11:34:53 +00:00
drbrain 20afef590b Add Test::Unit::Assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18 03:04:48 +00:00