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

9270 Коммитов

Автор SHA1 Сообщение Дата
nobu cfb6b44bde * instruby.rb (install_recursive): skip .svn directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 07:05:39 +00:00
nobu 8782d3d977 * win32/Makefile.sub (config.status): rubyhdrdir was missing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 06:43:12 +00:00
akr cd67b62289 * Makefile.in: use --output-file for gperf to not leave lex.c.tmp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 06:26:24 +00:00
nobu 6b95829d71 * ext/extmk.rb: prepend also topdir to mflags at last.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 06:09:40 +00:00
nobu c389b3bb63 * Makefile.in, win32/Makefile.sub (XCFLAGS): -I. is needed for *.inc.
* ext/extmk.rb (parse_args): add also topdir to mflags.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 05:47:12 +00:00
nobu 7d8743d5c5 * test/ruby/test_beginendblock.rb (test_should_propagate_signaled):
get rid of invoking shell.  [ruby-dev:30942]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 04:46:17 +00:00
nobu d4d7164a9b * instruby.rb (install_recursive): skip backup files.
* instruby.rb (ext-comm): install only current platform headers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 03:55:15 +00:00
nobu 2b592580bf * include/ruby: moved public headers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 03:06:15 +00:00
akr 1b8a677b23 add document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 02:47:41 +00:00
akr 52ec7cc543 * lib/securerandom.rb: renamed from lib/secrand.rb.
suggested by NaHi.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 01:42:51 +00:00
akr e3dbf4cebd add ML ref. for lex.c change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-09 15:01:27 +00:00
akr 7d061438f1 * lib/secrand.rb: rename SecRand() to SecRand.random_number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 21:40:05 +00:00
akr 3a868301ea * ext/zlib/zlib.c (gzfile_s_open): use FilePathValue to support
to_path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 07:33:59 +00:00
ko1 3a6860058e * eval_jump.h: th->errinfo should clear with nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 07:10:50 +00:00
akr bfe9063990 documented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 06:12:49 +00:00
matz 4d43632852 * parse.y (call_args): allow splat argument after unpacked
assocs like 1.8 does.

* parse.y (call_args): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 05:58:06 +00:00
akr b1cd416c1a * lib/cgi/session.rb: use secrand for generating cookies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 05:39:13 +00:00
akr 94fdd87fdd * lib/secrand.rb: new file for secure random interface.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 05:26:20 +00:00
usa 250a29cc6b * {win32,wince}/Makefile.sub: add lex.c rule.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 03:49:07 +00:00
akr 1a8d5ed8cb follow previous lex.c change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 03:47:16 +00:00
akr c571d4702e * lex.c.blt: moved from lex.c.
* Makefile.in: use lex.c.blt if gperf is not available.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 02:56:12 +00:00
ko1 72734ac154 * thread.c (rb_thread_execute_interrupts): invoke ensure when
main thread exits.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-07 12:41:30 +00:00
akr 6f9ded1fb0 * lib/pp.rb: call original "method" method instead of redefined one.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-07 10:02:58 +00:00
ko1 d7d85f9ecd * iseq.c (prepare_iseq_build): freeze filename and name string.
* variable.c: freeze class name string.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-07 08:21:01 +00:00
ko1 8620de6b04 * cont.c (cont_restore_1): fix to check root fiber [ruby-dev:30911].
* test/ruby/test_fiber.rb: add a test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-07 03:48:13 +00:00
naruse b60d64b001 * lib/json/common.rb: Ponder offering parse\! method.
* lib/json/editor.rb: be a bit more robust while loading data.
* ext/json/ext/{generator,parser}/extconf.rb:
  add a have_header directive for st.h
* test/json: fix some tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 22:38:42 +00:00
ko1 6d2dee14f3 * test_fiber.rb: add a test (Continuation and Fiber).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 18:30:14 +00:00
ko1 d80e7373cf * cont.c (cont_new): add debug message.
* cont.c (cont_restore_1): copy stack information from fiber.
* cont.c (rb_fiber_s_new): fix to mark created fiber.
* test/ruby/test_fiber.rb: add some tests around Thread and Fiber.
* yarvcore.c (thread_free): fix to skip freeing stack if root fiber
  is available.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 18:19:42 +00:00
ko1 ed88975237 * eval_intern.h, eval.c (ruby_init): remove POP_TAG_INIT().
* cont.c (rb_fiber_start): remove zero-clearing tag.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 16:04:02 +00:00
ko1 6c5a50ff33 * insns.def (invokeblock): fix of splat argument.
(splat same as normal method dispatch)



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 11:24:42 +00:00
usa 7e5b2304c5 * insns.def: fixed indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 07:26:27 +00:00
nobu ea05b809b5 * lib/json/pure: set properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 05:30:25 +00:00
ko1 bf544c05d2 * eval.c (rb_yield): fix to check Qundef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 01:57:36 +00:00
ko1 9c0b2b8b65 * test/ruby/test_continuation.rb: add a test for last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 01:56:49 +00:00
ko1 15b31b0d80 * cont.c (rb_cont_call): forbid calling dead fiber with
Cotinuation#call.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 01:55:09 +00:00
nobu a96aacb08c * ext/json, lib/json, test/json: set properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 01:54:44 +00:00
ko1 9a524fad38 * compile.c (iseq_compile_each): fix around yield arguments
(with NODE_ARGSCAT).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 01:51:45 +00:00
nobu b244c0dd3a * ext/json/ext/{generator,parser}/extconf.h: removed intermediate files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 01:34:08 +00:00
ko1 64ffdb4440 * cont.c (rb_fiber_start): clear th->tag and check error to fix
[ruby-dev:30888] and [ruby-dev:30889].
* eval_intern.h: fix rb_fiber_start() prototype.
* test/ruby/test_fiber.rb: add tests for above.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 17:55:07 +00:00
usa 5f05c269e9 * insnhelper.h, insns.def (DEC_SP): shoudn't use unary minus operator
in pointer operation. some compilers (such as VC++8 x64) cannot deal
	  it with expected way.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 17:39:52 +00:00
ko1 78029f00d5 * parse.y (new_yield), compile.c (iseq_compile_each): fix
passing parameter.
* eval.c, eval_jump.h: simplify rb_yield*.
* proc.c (proc_mark): fix to mark proc->block.proc.
* proc.c (Init_Proc): add Proc#lambda?
* test/ruby/test_lambda.rb: add some tests.
* vm.c (invoke_block): fix to check lambda block or not.
* vm.c (th_yield_setup_args): fix to check arguments size
  when lambda block.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 17:26:00 +00:00
matz d686a73d91 * io.c (rb_f_p): returns arguments to intervene. [ruby-dev:29736]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 07:35:34 +00:00
ko1 203286673d * insns.def (invokeblock): check block is created by lambda
or Proc.new.
* vm.c (block_proc_is_lambda): added.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 07:13:52 +00:00
matz 8ef2289a49 * lib/pp.rb (PP::PPMethods::seplist): revert last change to work
around wrapper bug.  [ruby-dev:30840]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 05:48:45 +00:00
matz 931614a341 * numeric.c (int_round): should not just truncate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 05:31:05 +00:00
naruse 3c17590061 * ext/nkf/nkf-utf8/nkf.c (kanji_convert): Fix guess fallback.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 05:11:04 +00:00
nobu 243cd204df * call_cfunc.ci (call_cfunc): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 04:59:07 +00:00
nobu 194a01a484 * compile.c: fixed indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 04:49:54 +00:00
nobu 35eb542588 * thread_win32.ci: fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 04:30:38 +00:00
nobu 3d3e46d4c7 * call_cfunc.ci: protoized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 04:27:45 +00:00