summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * gc.c: fixed types.nobu2009-05-262-7/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (bignum.o, numeric.o): depend on util.h.nobu2009-05-267-64/+87
| | | | | | | | | | | * bignum.c, marshal.c: fixed types. * numeric.c (infinite_value): use ruby_div0. * include/ruby/util.h (ruby_div0): moved from marshal.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bignew_1): inline memory allocation.matz2009-05-262-6/+20
| | | | | | | | * bignum.c (bigtrunc): call rb_big_resize() only when needed. * bignum.c (bigfixize): declare inline. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Tue May 26 11:01:41 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>takano322009-05-262-2/+6
| | | | | | | | * lib/mkmf.rb: use map! to replace strings in $objs array. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yyerror): get rid of possible overflow.nobu2009-05-261-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (FilePathValue): prevent from GC.nobu2009-05-252-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (NUM2LONG): added GCC specific optimization.nobu2009-05-252-2/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (rb_gmtime, rb_localtime): gmtime and localtime returnnobu2009-05-253-3/+24
| | | | | | | NULL on error. [ruby-core:23551] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_each_char, rb_str_each_codepoint): stringnobu2009-05-253-4/+10
| | | | | | | length must be long. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Mon May 25 13:27:32 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>takano322009-05-252-1/+5
| | | | | | | | * lib/mkmf.rb: dont use gsub! method for frozen string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/mkconfig.rb, tool/instruby.rb: removed redundant code.nobu2009-05-253-3/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_hash): avoid calling rb_enc_str_asciionly_p().matz2009-05-252-24/+41
| | | | | | | | | | * string.c (rb_str_replace): avoid redundant calling rb_str_new4(). * string.c (str_replace): factor out replacement from rb_str_replace() without type check nor discarding the destination contents. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_rpartition): ditto.nobu2009-05-243-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_hash.rb (TestHash::test_equal2): recursive hashesmatz2009-05-243-2/+11
| | | | | | | | are handled properly now. ref: [ruby-core:23402] * test/ruby/test_m17n.rb (TestM17N#test_sprintf_p): test fixed git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_partition): should use the converted result. anobu2009-05-243-0/+8
| | | | | | | patch from Marc-Andre Lafortune at [ruby-core:23540]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-25svn2009-05-241-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (CGI::HTTP_STATUS): typo fixed. a patch frommatz2009-05-242-1/+6
| | | | | | Nobuhiro IMAI. [ruby-dev:38538] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_exec_recursive_paired): new function for propernobu2009-05-245-26/+87
| | | | | | | | | | | handling of recursive arrays. [EXPERIMENTAL] [ruby-core:23402] * array.c (rb_ary_equal, rb_ary_eql, rb_ary_cmp): use above. * hash.c (hash_equal): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (syserr_initialize): errno is int.nobu2009-05-242-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update rdoc.akr2009-05-241-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in ($ridir): new configuration. [ruby-core:23520].yugui2009-05-237-15/+48
| | | | | | | | | | | | | | | | | | | | c.f. [ruby-core:23519]. (--with-ridir): new configure option. * tool/instruby.rb (:doc, :rdoc): uses $ridir instead of a fixed path. * lib/rdoc/ri/paths.rb: follows $ridir. * Makefile.in: removes RIDATADIR which is no longer used. * bcc32/Makefile.sub: generates the 'ridir' entry for RbConfig. removes RIDATADIR which is no longer used. * win32/Makefile.sub: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-24svn2009-05-231-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_each_char): return original string.matz2009-05-232-2/+13
| | | | | | | | | [ruby-core:23499] * string.c (rb_str_each_codepoint): protect string from modification. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_s_sym): added a method to accessnobu2009-05-232-10/+54
| | | | | | | | | | using RTLD_NEXT. [ruby-dev:38152] * ext/dl/handle.c (Init_dlhandle): added constants DEFAULT and NEXT which correspond to RTLD_DEFAULT and RTLD_NEXT. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/cparser.rb (DL::CParser#parse_struct_signature):nobu2009-05-232-2/+6
| | | | | | | | splitting with regexp source string is obsolete. a patch from Minwoo Lee at [ruby-core:23494]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_cmp): return signed value, and restrictnobu2009-05-232-1/+9
| | | | | | | to Fixnum. [ruby-dev:38533] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/vsnprintf.c (errno): [BUG] fixes a compilation yugui2009-05-222-1/+11
| | | | | | | error on SIZEOF_LONG > SIZEOF_INT. (BSD_vfprintf): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-23svn2009-05-221-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * spec/default.mspec: follows runruby.rb's move at r23542.yugui2009-05-222-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: add Time#to_r.mame2009-05-222-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update rdoc.akr2009-05-221-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * config.guess: moved into tool/.yugui2009-05-226-3/+16
| | | | | | | | | | | | * config.sub: ditto. * install-sh: ditto * configure.in: follows the moves. * LEGAL: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: moved into tool/.yugui2009-05-228-10/+26
| | | | | | | | | | | | | | | | * mkconfig.rb: ditto. * rubytest.rb: ditto. * runruby.rb: ditto. * common.mk: follows the moves. * configure.in: ditto. * win32/Makefile.sub: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_slice_bang): avoid call of rb_scan_args() unlessmatz2009-05-212-3/+14
| | | | | | it's really necessary. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-22svn2009-05-211-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_count): optimized for 1byte string count bymatz2009-05-212-6/+23
| | | | | | avoiding tr_setup_table(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/id.h.tmpl, id.h (enum ruby_method_ids): added some IDs.nobu2009-05-215-117/+210
| | | | | | | | | * debug.c (dummy_gdb_enums): added enum ruby_method_ids. * .gdbinit (rp): improved output of Symbol. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit (rp): missing "else" after T_NODE block.nobu2009-05-211-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/vsnprintf.c (BSD_vfprintf): support for 'z' modifier.nobu2009-05-212-27/+60
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gem_prelude.rb (Gem.default_dir and misc.): use rubylibprefix.yugui2009-05-212-8/+9
| | | | | | follows the chagne in r23368. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (RB_EVENT_HOOKS_HAVE_CALLBACK_DATA):nobu2009-05-214-4/+27
| | | | | | | new macro for compatibility check. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (rb_long2int, RARRAY_LENINT): check long tonobu2009-05-207-21/+45
| | | | | | | | | cast to int. [ruby-dev:38508] * struct.c, vm_eval.c, vm_insnhelper.c: use RARRAY_LENINT. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* NEWS (--program-prefix and --program-suffix): describe r23368.yugui2009-05-201-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rb_enc_get_index: allows an arbitrary RData as the argument but notyugui2009-05-202-0/+9
| | | | | | only what points a rb_encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * spec/.gitignore: ignores rubyspec/ and mspec/.yugui2009-05-202-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c (rb_struct_new): get rid of too large alloca.nobu2009-05-202-5/+15
| | | | | | | * struct.c (rb_struct_hash): use long. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c, vm_insnhelper.c: argument number is restricted tonobu2009-05-203-19/+24
| | | | | | | int, and fixed overflow. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (inspect_enumerator): should use long.nobu2009-05-202-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (zip_ary): should use long.nobu2009-05-202-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_fast_mbclen): faster mbclen for strings knownmatz2009-05-204-25/+91
| | | | | | | | | | | | | | | to be valid. * string.c (enc_strlen): coderange specified version of rb_enc_strlen(). use rb_enc_fast_mbclen() if coderange is 7bit or valid. * string.c (str_gsub): use rb_enc_fast_mbclen(). * string.c (rb_str_reverse, rb_str_split_m, rb_str_each_char, scan_once): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e