summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * re.c (match_inspect): avoid SEGV with MatchData.allocate.inspect.akr2008-02-162-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_strlen): revert r15507. [ruby-dev:33810]naruse2008-02-162-3/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_strlen): little more optimize.naruse2008-02-162-9/+16
| | | | | | (rb_enc_nth): remove needless variable 'c'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_compatible): empty strings are always compatible.akr2008-02-164-3/+62
| | | | | | | * string.c (rb_enc_cr_str_buf_cat): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML ref.akr2008-02-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_enc_strlen): UTF-8 character count moved to str_strlen.akr2008-02-162-29/+38
| | | | | | | | (str_strlen): UTF-8 character count is only applicable for valid UTF-8 string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:33807]akr2008-02-161-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* modify test according to changing WIN32OLE.codepage behavior.suke2008-02-162-2/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-02-161-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_sub_bang): stringize replacing hash values.akr2008-02-162-14/+25
| | | | | | | (str_gsub): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_enc_strlen): add search_nonascii like characternaruse2008-02-162-0/+34
| | | | | | counter for UTF-8. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_strlen): moved to string.c.akr2008-02-163-26/+40
| | | | | | | | | * string.c (rb_enc_strlen): use search_nonascii. (str_strlen): don't use search_nonascii. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/require_relative.rb: check require_relative call in eval.akr2008-02-162-2/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): set default_external before loadingnaruse2008-02-152-2/+7
| | | | | | libraries. [ruby-dev:33801] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/iso_8859_{4,13}.c: Windows-1257 is replica of ISO-8859-13.naruse2008-02-153-3/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLognaruse2008-02-151-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (single_byte_optimizable): rb_enc_mbminlen must be 1naruse2008-02-151-1/+1
| | | | | | | when rb_enc_mbmaxlen is 1. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_nth): moved to string.c.akr2008-02-153-30/+55
| | | | | | | | | | | * string.c (rb_enc_nth): moved from string.c. use search_nonascii for ASCII compatible string. (str_nth): wrong optimization removed to fix "a".force_encoding("EUC-JP").slice!(0,10) returns "a\x00\x00\x00\x00\x00\x00\x00\x00\x00" git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-02-151-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (rb_range_beg_len): check if responds to "begin" and "end"nobu2008-02-153-11/+12
| | | | | | | methods for non-Range object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_init_cp): initialize WIN32OLE.codepagesuke2008-02-153-4/+98
| | | | | | | | | according to Encoding.default_external. * test/win32ole/test_win32ole.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_sub_bang, str_gsub): allows hash for replacement.nobu2008-02-152-4/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_strlen): use search_nonascii() for performance.matz2008-02-153-11/+34
| | | | | | * string.c (str_nth): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (open_key_args): allow specifying both :mode and :encoding.matz2008-02-152-5/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_getbyte): new method.akr2008-02-152-0/+50
| | | | | | | (rb_str_setbyte): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/require_relative.rb: new file.akr2008-02-152-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_convert): check upper bound. a patch fromnobu2008-02-152-1/+9
| | | | | | | Daniel Luz at [ruby-Bugs-17910]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_quote): set US-ACII for ASCII-only string.nobu2008-02-152-1/+6
| | | | | | | [ruby-dev:33785] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {win,bcc}32/Makefile.sub (config.h): added HAVE_FTRUNCATE.nobu2008-02-153-0/+7
| | | | | | | [ruby-dev:33786] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (reg_compile_gen): reg_fragment_setenc might not raise annobu2008-02-152-3/+12
| | | | | | | exception before rb_reg_compile. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Preserve ri compatibility with 1.8drbrain2008-02-142-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ftruncate): check if available.nobu2008-02-143-3/+9
| | | | | | | * file.c (rb_file_truncate): check if ftruncate instead of truncate. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (sigsetmask): check when signal semantics is not POSIX.nobu2008-02-144-12/+26
| | | | | | | | * signal.c (USE_TRAP_MASK): set true if sigprocmask or sigsetmask is available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (reg_compile_gen): appends error message fromnobu2008-02-142-3/+15
| | | | | | | rb_reg_compile() to one from reg_fragment_setenc(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_error.c (error_print): append a newline to rest lines.nobu2008-02-141-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_reopen): check STDIN, STDOUT and STDERR mode according toakr2008-02-143-9/+26
| | | | | | | stdio streams. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:33072].akr2008-02-141-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_math.rb: actual-expected argument ordering formatz2008-02-142-25/+31
| | | | | | | test_math.rb fixed. a patch from Tadashi Saito <shiba AT mail2.accsnet.ne.jp> in [ruby-dev:33770]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_utime): inhibits with secure level 2 or higher.nobu2008-02-142-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for named class in regexp.akr2008-02-141-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more tests for embedding regexps.akr2008-02-141-0/+36
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_preprocess_dregexp): use non-preprocessed regexp sourceakr2008-02-143-11/+25
| | | | | | | for result. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/timeout.rb (Timeout::timeout): made sensitive to location on thenobu2008-02-132-3/+25
| | | | | | | stack. [ruby-core:15458] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (INSTRUBY_ARGS): pass mode to install. [ruby-dev:33766]nobu2008-02-134-24/+42
| | | | | | | * instruby.rb (parse_args): added --data-mode and --prog-mode options. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (eval): allow to eval in a binding that has a singleton method.mame2008-02-134-1/+256
| | | | | | | | | | | | [ruby-dev:33763] * test/ruby/test_proc.rb: add tests to achieve over 70% test coverage of time.c. * test/ruby/test_method.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#sub_ext): new method. [ruby-list:44608]akr2008-02-133-1/+27
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* wait signal arrival 10sec.akr2008-02-131-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_curry): new method. [ruby-dev:33676]mame2008-02-133-2/+172
| | | | | | | * test/ruby/test_proc.rb: add tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (RObject): add iv_index_tbl for shortcut ofakr2008-02-134-26/+56
| | | | | | | | | | | | | | | | RCLASS_IV_INDEX_TBL(rb_obj_class(obj)). (ROBJECT_IV_INDEX_TBL): defined. * object.c (init_copy): initialize iv_index_tbl in struct RObject. * variable.c (ivar_get): use ROBJECT_IV_INDEX_TBL. (rb_ivar_defined): ditto. (obj_ivar_each): ditto. (rb_obj_remove_instance_variable): ditto. (rb_ivar_set): update iv_index_tbl in struct RObject. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * filenames need comma.naruse2008-02-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e