aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * lib/pp.rb (PP::PPMethods::seplist): revert last change to workmatz2007-06-052-3/+8
| | | | | | around wrapper bug. [ruby-dev:30840] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (int_round): should not just truncate.matz2007-06-052-17/+30
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c (kanji_convert): Fix guess fallback.naruse2007-06-052-4/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * call_cfunc.ci (call_cfunc): fixed typo.nobu2007-06-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c: fixed indentation.nobu2007-06-058-34/+36
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_win32.ci: fixed typo.nobu2007-06-052-4/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * call_cfunc.ci: protoized.nobu2007-06-052-6/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c, dir.c, eval.c, eval_jump.h, eval_method.h, numeric.c,nobu2007-06-0517-2230/+2261
| | | | | | | | pack.c, parse.y, re.c, thread.c, vm.c, vm_dump.c, call_cfunc.ci, thread_pthread.ci, thread_win32.ci: fixed indentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2007-06-04usa2007-06-041-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf: import nkf.c rev:1.124naruse2007-06-041-0/+3
| | | | | | | Support CP10001. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/json.rb, lib/json, ext/json, test/json:naruse2007-06-0469-70/+8551
| | | | | | | import JSON library. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (Fiber#pass): rename to Fiber#yield. Block parameterko12007-06-023-47/+68
| | | | | | | | | | | of fiber body receive first yield values. e.g.: Fiber.new{|x| p x}.yield(:ok) #=> :ok * cont.c: rename rb_context_t#retval to rb_context_t#value. * test/ruby/test_fiber.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (Init_Proc): remove a line break.ko12007-06-022-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (int_round): small optimization to handle bignums.matz2007-06-013-4/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insnhelper.h (INC_SP): shouldn't cast ``x'' to unsigned type becauseusa2007-06-013-6/+15
| | | | | | | | | | | | it might be a negative value. * insnhelper.h, insns.def: shoudn't use unary minus operator in index operator. some compilers (such as VC++8 x64) cannot deal it with expected way. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_round): should convert self to Float.nobu2007-06-012-5/+6
| | | | | | | [ruby-dev:30860] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_round): now takes optional argument to specifymatz2007-05-312-23/+47
| | | | | | | | number of digits, like round() in Python/PHP. * numeric.c (num_round): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (each_with_index_i): should work well with continuation.matz2007-05-313-6/+12
| | | | | | | a patch from sheepman <sheepman AT sheepman.sakura.ne.jp>. [ruby-dev:30846] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb (Benchmark::Job::item): avoid modifying thenobu2007-05-313-4/+9
| | | | | | | argument unintentionally. [ruby-talk:253676] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (cont_capture): store all local variables in heapko12007-05-305-10/+45
| | | | | | | | | | | ([ruby-dev:30832]). * vm.c (th_stack_to_heap): added. * test/ruby/test_continuation.rb: add a test for above. * eval_intern.h (th_get_ruby_level_cfp): fix to clean code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (ResponseParser#next_token): fixedshugo2007-05-302-2/+11
| | | | | | | | | | | error message. * lib/net/imap.rb (ResponseParser#parse_error): fixed the condition not to refer @token.symbol unexpectedly. Thanks, Dick Monahan. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XXshugo2007-05-302-0/+9
| | | | | | | responses for some FTP servers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.ci (thread_timer): must not be applied to trunk.nobu2007-05-302-11/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (thread_timer): timer thread should not receive any signals.nobu2007-05-292-0/+11
| | | | | | | submitted by Sylvain Joyeux. [ruby-core:08546] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval_cmd): just return if no exceptions.nobu2007-05-292-1/+6
| | | | | | | [ruby-dev:30820] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (interrupt_init): needs to pass nil for Interrupt.nobu2007-05-292-3/+6
| | | | | | | [ruby-core:11038] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (trap): fixed segfaults. [ruby-dev:30830]nobu2007-05-292-32/+78
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_source_filename, obj_free): supress warnings.nobu2007-05-292-7/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (garbage_collect, yarv_machine_stack_mark): fixed typo.nobu2007-05-292-7/+12
| | | | | | | http://bugs.debian.org/426267 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (open_args, arg_ambiguous, parser_warning): should not usenobu2007-05-293-7/+12
| | | | | | | rb_warning in the parser. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_opendir): removed duplicated code.nobu2007-05-292-23/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: fix bug around Continuation and Fiber.ko12007-05-293-3/+42
| | | | | | | | * 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
* * win32/win32.c (rb_w32_opendir, rb_w32_readdir): eliminate magicnobu2007-05-293-14/+23
| | | | | | | numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: fixed a function name.nobu2007-05-282-1/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: support Fiber. Check test/ruby/test_fiber.rb for detail.ko12007-05-279-89/+441
| | | | | | | | | | | | | 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
* * ext/tk/lib/tkextlib/tcllib/tablelist.rb: fix typo.nagai2007-05-254-3/+12
| | | | | | | | * 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
* * test/ruby/test_beginendblock.rb (test_should_propagate_signaled):nobu2007-05-251-0/+3
| | | | | | | | 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
* * eval.c (ruby_exec_internal): do nothing if no code.nobu2007-05-253-4/+13
| | | | | | | | * 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
* git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12385 ↵nobu2007-05-253-6/+39
| | | | b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * yarvcore.c (Init_VM): wrap already initialized structs to usenobu2007-05-252-27/+12
| | | | | | | it directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regint.h (include): on some platform, defines.h redefinesusa2007-05-253-4/+14
| | | | | | | | | | | 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
* * cont.c: check across trap violation.ko12007-05-244-2/+19
| | | | | | | | * eval.c, yarvcore.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c, yarvcore.c: fix to mark VM structure on startup.ko12007-05-244-5/+18
| | | | | | | | * yarvcore.h: disable USE_CACHED_VALUE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: support callcc which everyone love.ko12007-05-237-105/+334
| | | | | | | | | | | | 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
* * common.mk: add a rule for regsyntax.c.matz2007-05-232-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regsyntax.c, unicode.c: set eol-stylenobu2007-05-230-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI#[]): get rid of exceptions being raised.matz2007-05-232-0/+6
| | | | | | [ruby-dev:30740], Thanks Kentaro KAWAMOTO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * oniguruma.h: updated to Oniguruma 5.7.0.matz2007-05-2319-5503/+13885
| | | | | | * 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
* * ext/purelib.rb: commit miss.nobu2007-05-221-3/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb, ext/purelib.rb, lib/mkmf.rb, runruby.rb: clear defaultnobu2007-05-226-12/+26
| | | | | | | | 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