summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * lib/tempfile.rb (Tempfile#unlink): close first for Windows. amatz2009-05-202-1/+9
| | | | | | patch from Florian Frank. [ruby-core:23505] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_codepoint_len): combine rb_enc_codepoint()matz2009-05-196-46/+81
| | | | | | | | | | | | | | | | | | | and rb_enc_codelen() in one function to reduce calls. * encoding.c (rb_enc_codepoint): compatibility function. * sprintf.c (rb_str_format): use rb_enc_codepoint_len(). * string.c (rb_str_inspect, rb_str_upcase_bang, rb_str_downcase_bang, rb_str_capitalize_bang, rb_str_swapcase_bang, trnext, tr_trans, rb_str_delete_bang, rb_str_squeeze_bang, rb_str_count, rb_str_split_m, rb_str_each_line, rb_str_each_codepoint, rb_str_lstrip_bang, sym_printable): ditto. * transcode.c (make_econv_exception): use rb_enc_mbc_to_codepoint() git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-20svn2009-05-191-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_attr): should preserve encoding info.matz2009-05-192-1/+9
| | | | | | [ruby-dev:38498] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_minus): always return a Float. [ruby-dev:38446]mame2009-05-192-1/+32
| | | | | | | * time.c (time_to_r): new method. [ruby-dev:38461] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (clone_method): add cast to remove warning frommatz2009-05-192-1/+6
| | | | | | rb_gc_write_barrier(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c (struct_ivar_get): new function to avoid repeatedmatz2009-05-193-10/+31
| | | | | | | | | | | | | | | rb_intern() calls. * struct.c (rb_struct_iv_get): use struct_ivar_get() * struct.c (num_members): ditto. * struct.c (rb_struct_s_members): ditto. * class.c (rb_singleton_class): cache symbol to reduce calls to rb_intern(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-19svn2009-05-181-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_time.rb: make tests timezone independent.akr2009-05-182-2/+7
| | | | | | | | reported by zunda. [ruby-dev:38492] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-18svn2009-05-181-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#sub): suppress a warning. [ruby-dev:38488]akr2009-05-182-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (SRC_EXT): should be flat.nobu2009-05-172-1/+6
| | | | | | http://twitter.com/_tad_/status/1825862632 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (ruby_init_loadpath_safe): VARIABLE_LIBPATH is alwaysnobu2009-05-172-1/+6
| | | | | | | defined, see its value instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/setup.mak (-version-): r23426.nobu2009-05-171-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h (nd_line): NODE_LMASK is not needed.nobu2009-05-172-2/+8
| | | | | | | * node.h (NOEX_SAFE): made int. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c: fixed types.nobu2009-05-171-14/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (rb_parse_in_eval): returns true in true eval, not innobu2009-05-173-4/+12
| | | | | | | | | main. [ruby-dev:38382] * parse.y (program): inherits dvars in eval or main. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (ruby_script): sets also VM toplevel program name.nobu2009-05-174-22/+21
| | | | | | | * ruby.c (process_options): no longer needs additional frame. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (rb_vm_get_sourceline): should not access out of bound.nobu2009-05-172-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (cmdline_options_init): initialize encodings.nobu2009-05-171-2/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (cmdline_options_init): initialize encodings.nobu2009-05-172-28/+41
| | | | | | | | | | | * ruby.c (add_modules, require_libraries, process_sflag): * ruby.c (process_sflag): not process twice. * ruby.c (moreswitches): get rid of possible overflow. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (foletypelib_name): should returnsuke2009-05-172-2/+8
| | | | | | | encoded name corresponding to WIN32OLE.codepage. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (ruby_init_loadpath_safe): support for cygwin 1.7. seenobu2009-05-172-5/+50
| | | | | | | | [ruby-core:23241]. gets rid of possible buffer overflow with realpath(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (set_arg0): get rids of overrun.nobu2009-05-163-23/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb: add nil check.kou2009-05-162-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rss/test_maker_atom_feed.rb: suppress warnings.kou2009-05-162-3/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: add RSS::Maker.supported?(version).kou2009-05-162-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb, test/test_parser_1.0.rb: fix foaf:Imagekou2009-05-166-11/+49
| | | | | | | element causes parse error even if ignore_unknown_element mode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker.rb, lib/rss/maker/0.9.rb,kou2009-05-168-0/+50
| | | | | | | test/test_maker_*.rb: add RSS::Maker.supported? git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/content/*, lib/rss/dublincore/*: fix circular require.kou2009-05-167-6/+7
| | | | | | | | * test/test_maker_atom_feed.rb, test/test_maker_atom_entry.rb: suppress warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/feed.rb, test/test_maker_atom_feed.rb:kou2009-05-163-7/+32
| | | | | | | remove needless codes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/entry.rb: fix a typo.kou2009-05-162-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/feed.rb, test/test_maker_atom_entry.rb,kou2009-05-164-0/+36
| | | | | | | | test/test_maker_atom_feed.rb: fix duplicated dc:date. Reported by Kazuhiro NISHIYAMA. Thanks!!! [ruby-list:46014] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/base.rb, lib/rss/maker/1.0.rb, lib/rss/maker/feed.rb,kou2009-05-166-0/+58
| | | | | | | | | test/rss/test_maker_1.0.rb, test/rss/test_maker_atom_feed.rb: RSS 1.0 and Atom feed maker treat maker.channel.language as maker.channel.dc_language. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/callback.rb (DL#remove_callback_internal): ignorenobu2009-05-162-1/+6
| | | | | | | unbound function. [ruby-dev:38474] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/rss/rss_recent.rb, sample/rss/list_description.rb: use UTF-8.kou2009-05-163-4/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, test/rss/test_version.rb (RSS::VERSION): 0.2.5 -> 0.2.6.kou2009-05-163-2/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (rb_iseq_clone): use longlife object and insert write barrier.nari2009-05-164-7/+15
| | | | | | | | | | * vm_insnhelper.c (vm_cref_push): ditto. * vm_insnhelper.h (COPY_CREF): insert write barrier. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_autoload_load): gets rid of false warning.nobu2009-05-162-9/+23
| | | | | | | [ruby-core:23466] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/drb/dhasenc.rb: add magic comment for encoding.matz2009-05-164-1/+11
| | | | | | | | * sample/mine.rb: ditto. * ext/tk/sample/tcltklib/sample1.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e