aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * bootstraptest/test_method.rb: use assert_normal_exit to testakr2007-10-012-2/+6
| | | | | | | [ruby-dev:31818]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (id2ref): skip ICLASS.nobu2007-10-012-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb (assert_normal_exit): use `` instead ofakr2007-10-012-1/+6
| | | | | | | system. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (id2ref): T_VALUES is less than T_BLOCK. [ruby-dev:31911]nobu2007-10-014-15/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (require_libraries): use require method instead of callingnobu2007-10-012-5/+9
| | | | | | | rb_require directly. [ruby-dev:31322] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_options), ruby.c (proc_options, process_options): notnobu2007-10-014-12/+26
| | | | | | | | | call exit(2) directly. [ruby-dev:31912] * eval.c (ruby_run_node): deal with direct exit code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_append): always set encoding, and coderangenobu2007-09-303-2/+15
| | | | | | | | | | cache bits. * include/ruby/encoding.h (ENC_CODERANGE_SET): fixed a bug not to set chache bits. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31913].akr2007-09-301-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb (pretty): don't show beginning empty line.akr2007-09-302-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c: use #ifdef for test LONG_LONG_VALUE.akr2007-09-302-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31911].akr2007-09-301-0/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2007-09-291-7/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c: use SIZEOF_LONG instead of SIZEOF_ULONG which is notakr2007-09-292-4/+9
| | | | | | | defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (Init_Regexp): test DEFAULT_KCODE in C code becauseakr2007-09-292-13/+13
| | | | | | | KCODE_EUC, etc are enum. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (obj_ivar_each): get rid of warning.usa2007-09-293-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * main.c (main): use platform-independent per-process initialization.nobu2007-09-297-25/+65
| | | | | | | | | | | | | | | | [ruby-dev:31900] * ruby.c (ruby_sysinit): new function for per-process initialization. * include/ruby/ruby.h (RUBY_GLOBAL_SETUP): toplevel setup declaration. * include/ruby/win32.h, win32/mkexports.rb: alias NtInitialize ruby_sysinit. * win32/win32.c (rb_w32_sysinit): renamed from NtInitialize. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_combination): new method to give all combinationmatz2007-09-294-1/+175
| | | | | | | | | | | | | of elements from an array. [ruby-list:42671] * array.c (rb_ary_product): a new method to get all combinations of elements from two arrays. can be extended to combinations of n-arrays, e.g. a.product(b,c,d). anyone volunteer? * array.c (rb_ary_permutation): empty function body to calculate permutations of array elements. need volunteer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_leave): move proc invocation from r_entry() tomatz2007-09-292-4/+9
| | | | | | avoid potential crash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Marshal.load instead of binary string.akr2007-09-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb (assert_normal_exit): new method.akr2007-09-293-0/+36
| | | | | | | * bootstraptest/test_knownbug.rb: add test for Marshal.load. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for a define_method wrapper.akr2007-09-291-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_ivar_set): fix class instance variable.akr2007-09-293-0/+9
| | | | | | | * object.c (rb_class_real): cl argument may be 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_class_real): use BUILTIN_TYPE instead of TYPE.akr2007-09-292-1/+7
| | | | | | | | access flags directly intead of FL_TEST. they are enough because cl argument is a class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h (strcasecmp): needed for type_strcasehash.nobu2007-09-282-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (ruby.o): using encoding.h.nobu2007-09-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (origarg): commit miss.nobu2007-09-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (struct cmdline_options): static variables packed.nobu2007-09-282-183/+203
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_fdopen): create IO object from fd.nobu2007-09-285-25/+65
| | | | | | | | | * parse.y (yycompile): use encoding of the source as default. * ruby.c (proc_options, load_file): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_alias): allow encodings multiple aliases.nobu2007-09-286-12/+128
| | | | | | | | | | | | | | | | | | | | * encoding.c (rb_enc_find_index): search the encoding which has the given name and return its index if found, or -1. * st.c (type_strcasehash): case-insensitive string hash type. * string.c (rb_str_force_encoding): force encoding of self. this name comes from [ruby-dev:31894] by Martin Duerst. [ruby-dev:31744] * include/ruby/encoding.h (rb_enc_find_index, rb_enc_associate_index): prototyped. * include/ruby/encoding.h (rb_enc_isctype): direct interface to ctype. * include/ruby/st.h (st_init_strcasetable): prototyped. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: Thread local storage should be fiber local.ko12007-09-285-31/+44
| | | | | | | | | * bootstraptest/test_knownbug.rb, test/ruby/test_fiber.rb: move a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine previous change.akr2007-09-284-95/+101
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't generate temporary files under current directory.akr2007-09-288-87/+106
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* UNIXServer.new("a\0b") test removed becauseakr2007-09-281-1/+0
| | | | | | | UNIXServer.new accepts NUL as abstruct unix sockets. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insnhelper.ci (vm_call_method): allow send! to call protectedmatz2007-09-284-1/+11
| | | | | | methods as well. [ruby-core:12280] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/bm_so_fasta.rb: added.ko12007-09-287-0/+196
| | | | | | | | | | | | * benchmark/bm_so_k_nucleotide.rb: added. * benchmark/bm_so_reverse_complement.rb: added. * benchmark/make_fasta_output.rb: added. * benchmark/prepare_so_k_nucleotide.rb: added. * benchmark/prepare_so_reverse_complement.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rb_classext_t member order exchanged toakr2007-09-281-1/+1
| | | | | | | make frequently accessed member at first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@13545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check codepage for SJIS pathname test.akr2007-09-281-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@13541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/driver.rb: fix file selection algorithm.ko12007-09-283-17/+41
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread variable test refined.akr2007-09-281-18/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for thread local variable with fiber.akr2007-09-271-0/+35
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/REAMDE.win32: follow recent changes.usa2007-09-272-7/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@13535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e