summaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
...
* * io.c (Init_IO): remove obsolete variables: $defout, $deferr.matz2007-10-041-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (kcode_setter): Perl-ish global variable `$=' no longermatz2007-10-041-0/+5
| | | | | | effective. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (reg_compile_gen): copy encoding from source string ifnobu2007-10-041-2/+3
| | | | | | | non-empty. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (reg_compile_gen): copy encoding from source string.nobu2007-10-041-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_obj_encoding): returns encoding of the given object.nobu2007-10-041-0/+8
| | | | | | | | | * re.c (Init_Regexp): new method Regexp#encoding. * string.c (str_encoding): moved to encoding.c git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_permutation): remove C99 dependency.matz2007-10-041-0/+7
| | | | | | | | [ruby-dev:31934] * array.c (rb_ary_product): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2007-10-041-13/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML numbermatz2007-10-031-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf.c, bin/ri, bin/irb: fixed typos in doc and comments.matz2007-10-031-0/+5
| | | | | | a patch from Eugene Ossintsev <eugoss AT gmail.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/driver.rb: enable specify label to executable.ko12007-10-031-0/+5
| | | | | | | | (-e "ruby1::/path/to/ruby1; ruby2::/path/to/ruby2; ...") git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_str_new, parser_yylex, rb_intern3): set code-rangenobu2007-10-031-0/+11
| | | | | | | | | | | | | bits. * parse.y (parser_tokadd_string): check code-range. * parse.y (parser_parse_string, parser_here_document): ditto. * parse.y (parser_set_encode): check if valid encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_cvar_set): check whether class variable ismatz2007-10-031-0/+9
| | | | | | | | | | defined in superclasses. root classes have higher priority. removes lower class variable entry from IV_TBL (if it's defined in classes, not modules). * variable.c (rb_cvar_get): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (ruby_process_options): push frame with program name.nobu2007-10-031-0/+5
| | | | | | | [ruby-core:12351] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (init_env): refactoring. remove unused code.usa2007-10-021-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_product): generalized product, now takesmatz2007-10-021-0/+6
| | | | | | | arbitrary number of arrays. a patch from David Flanagan <david AT davidflanagan.com>. [ruby-core:12346] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_permutation): small dirty hack by Matz to avoidmatz2007-10-011-0/+3
| | | | | | arrays on stack. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_permutation): implementation contributed frommatz2007-10-011-5/+8
| | | | | | | | | David Flanagan. [ruby-core:12344] * array.c (rb_ary_combination): RDoc update to clarify. a patch from David Flanagan. [ruby-core:12344] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_dup): proc->block.proc should be self.ko12007-10-011-0/+7
| | | | | | | | | * bootstraptest/test_knownbug.rb, test_method.rb: move a fixed test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_combination): revisit #combination behavior.matz2007-10-011-0/+5
| | | | | | suggested by David Flanagan. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_method.rb: use assert_normal_exit to testakr2007-10-011-0/+5
| | | | | | | [ruby-dev:31818]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (id2ref): skip ICLASS.nobu2007-10-011-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb (assert_normal_exit): use `` instead ofakr2007-10-011-0/+5
| | | | | | | system. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (id2ref): T_VALUES is less than T_BLOCK. [ruby-dev:31911]nobu2007-10-011-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (require_libraries): use require method instead of callingnobu2007-10-011-0/+5
| | | | | | | rb_require directly. [ruby-dev:31322] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_options), ruby.c (proc_options, process_options): notnobu2007-10-011-0/+7
| | | | | | | | | call exit(2) directly. [ruby-dev:31912] * eval.c (ruby_run_node): deal with direct exit code. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_append): always set encoding, and coderangenobu2007-09-301-0/+8
| | | | | | | | | | cache bits. * include/ruby/encoding.h (ENC_CODERANGE_SET): fixed a bug not to set chache bits. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb (pretty): don't show beginning empty line.akr2007-09-301-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c: use #ifdef for test LONG_LONG_VALUE.akr2007-09-301-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2007-09-291-7/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c: use SIZEOF_LONG instead of SIZEOF_ULONG which is notakr2007-09-291-0/+5
| | | | | | | defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (Init_Regexp): test DEFAULT_KCODE in C code becauseakr2007-09-291-0/+5
| | | | | | | KCODE_EUC, etc are enum. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (obj_ivar_each): get rid of warning.usa2007-09-291-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * main.c (main): use platform-independent per-process initialization.nobu2007-09-291-0/+14
| | | | | | | | | | | | | | | | [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: http://svn.ruby-lang.org/repos/ruby/trunk@13569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_combination): new method to give all combinationmatz2007-09-291-0/+12
| | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@13568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_leave): move proc invocation from r_entry() tomatz2007-09-291-0/+5
| | | | | | avoid potential crash. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb (assert_normal_exit): new method.akr2007-09-291-0/+6
| | | | | | | * bootstraptest/test_knownbug.rb: add test for Marshal.load. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_ivar_set): fix class instance variable.akr2007-09-291-0/+6
| | | | | | | * object.c (rb_class_real): cl argument may be 0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_class_real): use BUILTIN_TYPE instead of TYPE.akr2007-09-291-0/+6
| | | | | | | | access flags directly intead of FL_TEST. they are enough because cl argument is a class. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h (strcasecmp): needed for type_strcasehash.nobu2007-09-281-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (struct cmdline_options): static variables packed.nobu2007-09-281-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_fdopen): create IO object from fd.nobu2007-09-281-0/+8
| | | | | | | | | * parse.y (yycompile): use encoding of the source as default. * ruby.c (proc_options, load_file): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_alias): allow encodings multiple aliases.nobu2007-09-281-0/+19
| | | | | | | | | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@13556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: Thread local storage should be fiber local.ko12007-09-281-0/+7
| | | | | | | | | * bootstraptest/test_knownbug.rb, test/ruby/test_fiber.rb: move a fixed test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insnhelper.ci (vm_call_method): allow send! to call protectedmatz2007-09-281-0/+5
| | | | | | methods as well. [ruby-core:12280] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/bm_so_fasta.rb: added.ko12007-09-281-0/+14
| | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@13550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/driver.rb: fix notations.ko12007-09-281-0/+33
| | | | | | | | | | | | | | | | | | | | | | * 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-281-0/+10
| | | | | | | | | | * 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-281-0/+4
| | | | 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-281-0/+9
| | | | | | | | | | 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
* * include/ruby/intern.h: export rb_ivar_foreach.akr2007-09-281-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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