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

9049 Коммитов

Автор SHA1 Сообщение Дата
nobu a196c4ff5c * gc.c (garbage_collect, yarv_machine_stack_mark): fixed typo.
http://bugs.debian.org/426267


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-29 15:46:01 +00:00
nobu 0d2109239d * parse.y (open_args, arg_ambiguous, parser_warning): should not use
rb_warning in the parser.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-29 15:22:49 +00:00
nobu 82159c813b * win32/win32.c (rb_w32_opendir): removed duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-29 03:30:14 +00:00
ko1 d64609463f * cont.c: fix bug around Continuation and Fiber.
* test/ruby/test_continuation.rb: add tests for Continuation.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-29 01:59:53 +00:00
nobu d15b7d0509 * win32/win32.c (rb_w32_opendir, rb_w32_readdir): eliminate magic
numbers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-29 01:53:14 +00:00
nobu 7f41ff0ff6 * cont.c: fixed a function name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-28 01:25:55 +00:00
ko1 57062d91b9 * cont.c: support Fiber. Check test/ruby/test_fiber.rb for detail.
Fiber is known as "Micro Thread", "Coroutine", and other terms.
  At this time, only Fiber#pass is supported to change context.
  I want to know more suitable method name/API for Fiber (... do you
  know more suitable class name instead of Fiber?) as "suspend/resume",
  "call", "yield", "start/kick/stop/restart", ....
* eval.c, eval_intern.h, thread.c, yarvcore.c, yarvcore.h: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-27 19:12:43 +00:00
nagai b69b1af650 * ext/tk/lib/tkextlib/tcllib/tablelist.rb: fix typo.
* ext/tk/lib/tkextlib/tile/dialog.rb: forget to give an argument.
* ext/tk/lib/tkextlib/version.rb: update RELEASE_DATE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-25 16:10:42 +00:00
nobu 9372d4565c * test/ruby/test_beginendblock.rb (test_should_propagate_signaled):
skip tests for exitstatus and termsig on the platforms where
  signals not supported.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-25 16:10:37 +00:00
nobu b904e87f08 * eval.c (ruby_exec_internal): do nothing if no code.
* compile.c (rb_iseq_compile): check node if NULL before check
  nd_type.  [ruby-talk:252956]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-25 15:37:05 +00:00
nobu a1cb9efd34 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2007-05-25 15:04:05 +00:00
nobu d289b8e8c6 * yarvcore.c (Init_VM): wrap already initialized structs to use
it directly.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-25 07:03:30 +00:00
usa e8a5295841 * regint.h (include): on some platform, defines.h redefines
SIZE_OF_LONG_LONG so souldn't re-include config.h after included
	  defines.h.

	* regint.h (vsnprintf): ruby on windows already have vsnprintf macro.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-25 02:13:18 +00:00
ko1 e4aa7208e5 * cont.c: check across trap violation.
* eval.c, yarvcore.h: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-24 03:08:13 +00:00
ko1 7d200b94f9 * gc.c, yarvcore.c: fix to mark VM structure on startup.
* yarvcore.h: disable USE_CACHED_VALUE.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-24 02:47:22 +00:00
ko1 7c4ff2d332 * cont.c: support callcc which everyone love.
incomplete. please give me bug reports.
* common.mk, inits.c, thread.c: ditto.
* yarvcore.c: export thread_mark().
* yarvcore.h: disable value cache option.
* eval_intern.h: set th_get_ruby_level_cfp to inline.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-23 22:52:19 +00:00
matz d086dfc513 * common.mk: add a rule for regsyntax.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-23 06:38:46 +00:00
nobu b9b3247d8b * regsyntax.c, unicode.c: set eol-style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-23 02:02:04 +00:00
matz f7575739f9 * lib/cgi.rb (CGI#[]): get rid of exceptions being raised.
[ruby-dev:30740], Thanks Kentaro KAWAMOTO.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-23 01:45:37 +00:00
matz 6ee2e54239 * oniguruma.h: updated to Oniguruma 5.7.0.
* regsyntax.c, unicode.c: new files along with Oniguruma 5.x.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-23 01:32:08 +00:00
nobu 2cdb1c3376 * ext/purelib.rb: commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-22 21:09:22 +00:00
nobu 80a0e2f753 * ext/extmk.rb, ext/purelib.rb, lib/mkmf.rb, runruby.rb: clear default
load path to get rid of load pre-installed extensions/libraries.
  [ruby-core:11017]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-22 20:48:34 +00:00
matz 64bffee8d6 * ruby.c (set_arg0): support RSTRING_LEN on HP-UX. a patch from
WATANABE Tetsuya <Tetsuya.WATANABE AT nifty.com>.  [ruby-dev:30806]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-22 07:38:50 +00:00
ko1 affa7430b7 * compile.c, vm_macro.def: support tail call optimization
(on default, this feature is not enabled).
* iseq.c, compile.c, vm_opts.h: add "tailcall_optimization"
  option.
* sample/test.rb (test_ok): fix to adjust tailcall stack layout.
* insns.def, vm.c, compile.c, yarvcore.c, yarvcore.h:
  add opt_gt, opt_le instructions.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-21 04:46:51 +00:00
aamine 696cbbd7a6 * lib/net/smtp.rb: CRAM-MD5 authentication did not work. [ruby-dev:30770]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-20 18:33:25 +00:00
tadf 374e3d42d4 typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-19 01:41:08 +00:00
tadf 8bf9e0829f * lib/date/format.rb (Date._parse): detects some OFX dates
(Of course not fully).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-19 01:27:53 +00:00
nobu 3d18c14e2c * enum.c (enum_inject): minor improvement. [ruby-dev:30792]
* enum.c (one_i): no needs to iterate once the result became false.

* enum.c (enum_one): fix for an example.

* enum.c (one_iter_i, none_iter_i): DRY.;


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-18 18:06:54 +00:00
matz 9eec640e9d * enum.c (enum_inject): it is now can work without block. you
have to specify two argument method name as the first argument.

* enum.c (Init_Enumerable): reduce is new alias to inject.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-18 16:10:46 +00:00
nobu 62b3932c9c * file.c (Init_File): method definition mismatch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-18 16:04:22 +00:00
matz dcb9f150e5 * file.c (Init_File): add to_path method to File objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-18 07:57:51 +00:00
nobu 635c599d6b * ruby.c (DllMain, ruby_init_loadpath): use DLL instance handle given
to DllMain instead of VirtualQuery so that loadpath becomes relative
  from the DLL on WinCE too.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-18 02:11:42 +00:00
nobu b21d410d4e * misc/ruby-style.el (ruby-style-label-indent): for yacc rules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-17 08:02:02 +00:00
matz 2d239b4745 * parse.y (f_arg): remove typo from ripper description.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-17 04:31:05 +00:00
ko1 ebaec402a7 * parse.y, compile.c (set_arguments): fix to support in-paren
parameter (ex: def foo((a, b))).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-17 04:25:18 +00:00
ko1 8206839659 * iseq.c (ruby_iseq_disasm): fix to show post arg info.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-17 04:04:49 +00:00
ko1 84fbcb9694 * debug.c (ruby_debug_node): fix to show node line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-17 04:00:36 +00:00
nahi dfc0ac4298 * lib/logger.rb (Logger::Application): remove meaningless logdev
attribute and added logger attribute instead.  [ruby-core:11143]
          also added Logger#formatter rdoc comment.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-16 12:52:52 +00:00
nobu 2b9cbceb5e * test/ruby/test_beginendblock.rb (test_endblockwarn): now parser
warnings emit source names and line numbers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-15 07:38:59 +00:00
usa 216dcd80ff * win32/win32.c (init_stdhandle): stderr should be without buffering,
but mswin32 use buffering when stderr is not connected to tty.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-15 06:01:33 +00:00
matz 46590a4132 * array.c (rb_ary_zip): a.zip(b,c) should return an array, not
enumerator.

* array.c (rb_ary_zip): a.zip(b,c) should return array with size
  truncated to the size of its shortest argument array.
  [incompatible]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-13 17:15:25 +00:00
matz aa77090aef * array.c (rb_ary_choice): should return nil when the array is
empty.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-13 16:54:58 +00:00
eban 2216212554 * 2007-05-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-12 09:29:54 +00:00
aamine 22d6ff16d3 * lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]
* test/net/http/test_http.rb: test Net::HTTP.post_form.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-12 09:25:56 +00:00
nobu a1295b0f79 * iseq.c (iseq_data_to_ary): internal IDs must not be exposed.
[ruby-core:11073]

* parse.y (internal_id_gen): now returns scope local ID instead of
  global one.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-11 06:26:06 +00:00
usa cb272b7c2d * ext/iconv/iconv.c (iconv_s_conv): rdoc fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-10 06:20:33 +00:00
usa 54420c2614 * test/ruby/test_super.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-10 06:17:07 +00:00
usa adc782762b * ext/iconv/iconv.c (iconv_s_conv): rdoc fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-10 06:13:58 +00:00
nobu dc2a434cf2 * parse.y (POINTER_P): pointer may be larger than long.
* parse.y (vtable_size, vtable_included, vtable_tblcpy,
  vtable_to_tbl): constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-10 06:08:20 +00:00
nobu f563dc875c * thread.c (rb_thread_priority): rdoc fix; the initial value is
inherited from the creating thread.  [ruby-core:10607]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-10 01:12:10 +00:00