summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * benchmark/driver.rb: fix notations.ko12007-09-2816-4/+1173
| | | | | | | | | | | | | | | | | | | | | | * benchmark/bm_loop_whileloop.rb: ditto. * benchmark/bm_loop_whileloop2.rb: ditto. * benchmark/bm_app_uri.rb: added. * benchmark/bm_vm1_ivar_set.rb: ditto. * benchmark/bm_so_binary_trees.rb: added from Computer Language Benchmarks Game (http://shootout.alioth.debian.org/). * benchmark/bm_so_fannkuch.rb: ditto. * benchmark/bm_so_mandelbrot.rb: ditto. * benchmark/bm_so_meteor_contest.rb: ditto. * benchmark/bm_so_nbody.rb: ditto. * benchmark/bm_so_nsieve.rb: ditto. * benchmark/bm_so_nsieve_bits.rb: ditto. * benchmark/bm_so_partial_sums.rb: ditto. * benchmark/bm_so_pidigits.rb: ditto. * benchmark/bm_so_spectralnorm.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_comparable): need not to check asciicompat here.matz2007-09-283-35/+49
| | | | | | | | | | * encoding.c (rb_enc_check): ditto. * string.c (rb_enc_str_coderange): tuned a bit; no broken check. * encoding.c (rb_enc_check): new encoding comparison criteria. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (rb_vm_struct): fix typo: bufferd -> buffered.matz2007-09-284-6/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/driver.rb: fix to output benchmark resultsko12007-09-284-37/+71
| | | | | | | | | | to file "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}". * benchmark/bm_io_file_create.rb: remove useless codes. * benchmark/bm_vm2_eval.rb: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check codepage for SJIS pathname test.akr2007-09-281-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h: export rb_ivar_foreach.akr2007-09-2817-193/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/ruby/ruby.h: modify struct RObject and RClass for optimizing T_OBJECT space. [ruby-dev:31853] (ROBJECT_LEN, ROBJECT_PTR) (RCLASS_IV_TBL, RCLASS_M_TBL, RCLASS_SUPER, RCLASS_IV_INDEX_TBL) (RMODULE_IV_TBL, RMODULE_M_TBL, RMODULE_SUPER): abstract accessor defined. * variable.c: support the modified RObject and RClass. * object.c: ditto. * class.c: ditto. * gc.c: ditto. * marshal.c: ditto. * eval_method.ci: use the abstract accessor. * insns.def: ditto. * proc.c: ditto. * struct.c: ditto. * eval.c: ditto. * error.c: ditto. * vm.c: ditto. * insnhelper.ci: ditto. * ext/digest/digest.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_getline_fast, rb_io_getline_1): set encoding to thenobu2007-09-282-5/+15
| | | | | | | result string, as well as getc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/bm_app_erb.rb: added.ko12007-09-285-0/+77
| | | | | | | | * benchmark/bm_io_file_(create|read|write).rb: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/driver.rb: fix file selection algorithm.ko12007-09-283-17/+41
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread variable test refined.akr2007-09-281-18/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for thread local variable with fiber.akr2007-09-271-0/+35
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/REAMDE.win32: follow recent changes.usa2007-09-272-7/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/driver.rb: fix to output some helpful messages.ko12007-09-273-9/+26
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/driver.rb: added.ko12007-09-276-17/+216
| | | | | | | | | | * common.mk: fix to use above driver. * benchmark/prepare_so_count_words.rb: added. * benchmark/bm_so_count_words.rb: fix benchmark process. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fiber/fiber.c: modify prototype declaration.ko12007-09-272-1/+6
| | | | | | | | [ruby-core:12247] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (strings, xstring, regexp, dsym): empty strings havenobu2007-09-272-6/+12
| | | | | | | US-ASCII encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine a test.akr2007-09-261-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb (assert_finish): new method.akr2007-09-263-5/+61
| | | | | | | | * bootstraptest/test_knownbug.rb: add test for [ruby-dev:31866] using assert_finish. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_associate_encoding): commit miss.nobu2007-09-261-16/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_associate_index): deal with ASCII compatiblenobu2007-09-265-20/+120
| | | | | | | | | | | | | | | | | | | | flags. * encoding.c (rb_enc_check): allow ASCII compatible strings. * parse.y (rb_intern_str): use ASCII encoding for ASCII string. * string.c (rb_enc_str_coderange): check for code-range. * string.c (rb_str_modify): clear code-range flags. * string.c (rb_str_hash, rb_str_eql): ASCII compatible strings are comparable. * include/ruby/encoding.h: added code-range flags. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_mark_set): new function to mark keys.nobu2007-09-264-9/+38
| | | | | | | | * marshal.c (struct dump_arg, struct load_arg): added wrappers to mark data and compat_tbl entries. [ruby-dev:31870] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (struct dump_arg, struct load_arg): added wrappers to marknobu2007-09-262-19/+60
| | | | | | | compat_tbl entries. [ruby-dev:31870] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_waitpid): no needs to poll. [ruby-dev:31871]nobu2007-09-263-10/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_knownbug.rb: remove a fixed test.ko12007-09-262-18/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_knownbug.rb: move fixed tests.ko12007-09-264-27/+35
| | | | | | | | | * bootstraptest/test_method.rb: ditto. * test/ruby/test_io.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML number.ko12007-09-261-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (eval): fix to check stack overflow.ko12007-09-264-6/+13
| | | | | | | | * eval_intern.h, vm.h: move CHECK_STACK_OVERFLOW() macro. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insnhelper.ci (vm_throw): fix to move increment point.ko12007-09-262-1/+6
| | | | | | | | [ruby-dev:31840] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: Fiber as SemiCoroutine on default. [ruby-core:12146]ko12007-09-263-5/+11
| | | | | | | | * ext/fiber/fiber.c: enable Fiber#transfer. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_check): check for ASCII-compatibilities.nobu2007-09-268-53/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * parse.y (parser_tokadd_string, parser_parse_string, parser_here_document, parser_yylex): set encoding to US-ASCII. * parse.y (rb_enc_symname_p): check if valid with encoding. * parse.y (rb_intern3): let symbols have encoding. * string.c (rb_str_hash): add encoding index. * string.c (rb_str_comparable, rb_str_equal, rb_str_eql): check if compatible encoding. * string.c (sym_inspect): made encoding aware. * insns.def (opt_eq): compare with encoding. * include/ruby/encoding.h (rb_enc_asciicompat): check if ASCII compatible. * include/ruby/encoding.h (rb_enc_get_index): added prototype. * include/ruby/intern.h (rb_str_comparable, rb_str_equal): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_method.ci (rb_get_alloc_func): cast to suppress a warning.nobu2007-09-262-2/+8
| | | | | | | * eval_method.ci (remove_method): local variable to be initialized. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* new file.akr2007-09-261-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as othernobu2007-09-252-1/+6
| | | | | | | objects. [ruby-Bugs-14228] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yyerror): limit error message length.nobu2007-09-253-5/+24
| | | | | | | [ruby-dev:31848] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_ungetc): reallocate internal buffer if pushing datamatz2007-09-253-9/+15
| | | | | | excess capacity. [ruby-dev:31650] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_method.ci (remove_method): should not remove undef placematz2007-09-252-2/+13
| | | | | | holder. [ruby-dev:31816], [ruby-dev:31817] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_longjmp): source file information may be NULL.matz2007-09-253-7/+21
| | | | | | | | [ruby-dev:31849] * eval.c (ruby_finalize_0): clear trace_func before finalization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_equal): should handle recursive array.matz2007-09-243-26/+34
| | | | | | * hash.c (hash_equal): should handle recursive hash. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (hash_i): avoid too frequent hash conflict where key andmatz2007-09-242-0/+5
| | | | | | | value are same. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:31802] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/weakref.rb (WeakRef): remove debug print. [ruby-dev:31799]matz2007-09-243-5/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c (strscan_initialize, strscan_getch): use thenobu2007-09-242-3/+7
| | | | | | | | encoding of the target string instead of setting to StringScanner instance. [ruby-dev:31831] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/net/http.rb: fix typo.shyouhei2007-09-242-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: an SSL verification (the server hostname shouldgotoyuzo2007-09-234-11/+32
| | | | | | | | | | | | | | | | be matched with its certificate's commonName) is added. this verification can be skipped by "Net::HTTP#enable_post_connection_check=(false)". suggested by Chris Clark <cclark at isecpartners.com> * lib/net/open-uri.rb: use Net::HTTP#enable_post_connection_check to perform SSL post connection check. * ext/openssl/lib/openssl/ssl.c (OpenSSL::SSL::SSLSocket#post_connection_check): refine error message. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (os_obj_of, os_each_obj): hide objects to be finalized.nobu2007-09-232-37/+10
| | | | | | | [ruby-dev:31810] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_method.ci (rb_attr): should not use alloca for unknowen sizenobu2007-09-223-7/+11
| | | | | | | | | input. [ruby-dev:31816] * parse.y (rb_intern_str): prevent str from optimization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge tests for [ruby-dev:31816] and [ruby-dev:31817].akr2007-09-221-12/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31817].akr2007-09-221-1/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_method.ci (remove_method): check for undefined method.nobu2007-09-223-10/+20
| | | | | | | [ruby-dev:31816] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/options.rb (Options::check_diagram): dot -V outputshyouhei2007-09-222-2/+7
| | | | | | | changed. [ ruby-Bugs-11978 ], Thanks Florian Frank. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31818].akr2007-09-221-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e