aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-20svn2009-05-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-19svn2009-05-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-18svn2009-05-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/setup.mak (-version-): r23426.nobu2009-05-171-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c: fixed types.nobu2009-05-171-14/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (cmdline_options_init): initialize encodings.nobu2009-05-171-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (set_arg0): get rids of overrun.nobu2009-05-163-23/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb: add nil check.kou2009-05-162-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: add RSS::Maker.supported?(version).kou2009-05-162-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/entry.rb: fix a typo.kou2009-05-162-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: commit miss.nobu2009-05-161-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (magic_comment_encoding): ignores unused emacs-stylenobu2009-05-162-3/+4
| | | | | | | encoding comment, as like Vim styles. [ruby-core:23470] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * defs/keywords (reserved_word): made inline function static.nobu2009-05-165-47/+68
| | | | | | | | | [ruby-core:23210] * parse.y (rb_reserved_word): ordinary function for ripper. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (magic_comment_encoding): use rb_compile_warning() tonobu2009-05-162-2/+7
| | | | | | | show the currently parsing file name. [ruby-core:23469] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ruby_version): now version.h includesnobu2009-05-163-3/+9
| | | | | | | | include/ruby/version.h, so need to tell to cpp to see $(srcdir)/include. [ruby-core:23468] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_shift, rb_ary_shift_m): clears unused elements.nobu2009-05-152-0/+11
| | | | | | | [ruby-dev:38448] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_autoload_load): checks if iv_tbl is valid.nobu2009-05-153-8/+26
| | | | | | | [ruby-dev:38456] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: forgotten to mention reporter.usa2009-05-151-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-15svn2009-05-151-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/setup.mak (-version-): now version.h includesusa2009-05-151-0/+6
| | | | | | | | | include/ruby/version.h, so need to tell to cpp to check $(srcdir)/include. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/etc/etc.c (etc_getpwuid): use rb_uid_t. [ruby-dev:38443]nobu2009-05-142-6/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e