summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* add test for [ruby-dev:31816].akr2007-09-221-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::List::summarize): use each_line ifnobu2007-09-212-1/+8
| | | | | | | defined rather than each. [ruby-Patches-14096] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_init): separate from strio_initializenobu2007-09-213-7/+21
| | | | | | | to share with strio_reopen properly. [ruby-Bugs-13919] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_mark_rest): copy just used part.nobu2007-09-212-7/+24
| | | | | | | | | | | * gc.c (gc_mark_children): mark u1 and u2 of NODE_ARGSCAT. * gc.c (os_obj_of): hide T_VALUES too. [ruby-dev:31804] * gc.c (run_final): freeze temporary argument array. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-style.el (ruby-style-label-indent): fix for function topnobu2007-09-202-3/+28
| | | | | | | level labels. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.c (hash_32a.c): reverted the original keywords.nobu2007-09-201-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_match_m): evaluate a block if match. it would makematz2007-09-203-2/+42
| | | | | | | | condition statement much shorter, if no else clause is needed. * string.c (rb_str_match_m): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (hash_equal): should call rb_eql when argument eql is set.matz2007-09-203-4/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (popen_exec), process.c (rb_spawn): stop other threads beforenobu2007-09-204-7/+23
| | | | | | | exec. [ruby-core:08262] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190]keiju2007-09-182-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTP::GenericRequest#initialize): check path is not nil. ↵aamine2007-09-172-0/+6
| | | | | | [ruby-dev:31149] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ripper): rename event: arglist_* -> args_*.aamine2007-09-173-70/+94
| | | | | | | | | | | | | * parse.y (ripper): rename event: restparam -> rest_param. * parse.y (ripper): rename event: constpath_* -> const_path_*. * parse.y (ripper): rename event: topconst_* -> top_const_*. * parse.y (ripper): rename event: iter_block -> method_add_block. * parse.y (ripper): support block local parameter declaration. * parse.y (ripper): introduce new macro params_new. * ext/ripper/lib/ripper/sexp.rb: should not dispose event arguments whose name ends with "_new" but arity != 0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (struct parser_params): common members in the parser andnobu2007-09-152-2/+6
| | | | | | | ripper must be placed at each same location. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_rstrip_bang): fixed too much rstrip. [ruby-dev:31786]kou2007-09-152-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_initialize): set default encoding. [ruby-dev:31787]nobu2007-09-153-8/+18
| | | | | | | | * ruby.c (load_file): make new parse instance after processing shebang line options. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_associate_index, rb_enc_get_index): check ifnobu2007-09-153-1/+51
| | | | | | | | | object is encoding capable. [ruby-dev:31780] * string.c (rb_str_subpat_set): check for if the argument is a String. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss.rb, lib/rss/, test/rss/:kou2007-09-1519-18/+296
| | | | | | | | - 0.1.9 -> 0.2.0. - supported Slash module. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (fev_unadvise): no needs to resetsuke2007-09-142-5/+8
| | | | | | | | event handlers. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb: tests which cause SEGV should not beko12007-09-143-1/+22
| | | | | | | | | added. * bootstraptest/test_knownbug.rb: add above test to known bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insnhelper.ci (vm_expandarray): assignment should be placedko12007-09-142-1/+8
| | | | | | | | after creating new array. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb: add a stress test (-s).ko12007-09-142-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.h, eval_intern.h: move some macros to eval_intern.h.ko12007-09-145-19/+20
| | | | | | | | | * eval_jump.ci (rb_f_throw): fix to use NEW_THROW_OBJECT(). * eval.c (rb_f_loop): remove additional macro. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insnhelper.ci (vm_expandarray): should be volatile value for GC.ko12007-09-143-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): inline cache entries are overwrittennobu2007-09-132-8/+9
| | | | | | | in iseq_build_body(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (brace_block): should use compstmt. patch submitted bynobu2007-09-132-1/+6
| | | | | | | Kirill A. Shutemov <k.shutemov AT gmail.com> [ruby-core:12154]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fixed typo.nobu2007-09-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_id2str): fixed typo.nobu2007-09-133-5/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (proc_options): -W should be allowed in RUBYOPTmatz2007-09-122-1/+6
| | | | | | environment variable. [ruby-core:12118] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_s_sysopen): should not use alloca for unknowen sizenobu2007-09-125-19/+24
| | | | | | | | | | | input. [ruby-dev:31775] * parse.y (rb_id2str): ditto. * marshal.c (w_float): use snprintf instead of sprintf. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* forgot to follow RHash change.akr2007-09-111-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb (Tempfile::make_tmpname): Allow to specify aknu2007-09-112-4/+27
| | | | | | | | | | | suffix for a temporary file name. * lib/tempfile.rb (Tempfile::make_tmpname): Make temporary file names less predictable by including a random string. [inspired by: akr] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb: Add shellescape() and shelljoin().knu2007-09-112-18/+141
| | | | | | | | | | | | | | | * lib/shellwords.rb: Rename shellwords() to shellsplit() and make the former an alias to the latter. * lib/shellwords.rb: Add escape(), split(), join() as class methods, which are aliases to their respective long names prefixed with `shell'. * lib/shellwords.rb: Add String#shellescape(), String#shellsplit() and Array#shelljoin() for convenience. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_dumper): make uninitialized range dumpable.akr2007-09-103-3/+13
| | | | | | | (range_loader): make uninitialized range loadable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c: represent initialized state using EXCL instead of FL_USER3.akr2007-09-103-6/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_cycle): avoid infinite loop for empty array.matz2007-09-102-1/+6
| | | | | | based on a patch from David Flanagan. [ruby-core:12085] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_object0): struct allocation first to check if amatz2007-09-092-5/+10
| | | | | | class is a struct. compatibility check should come next. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_step): fixed integer overflow. [ruby-dev:31763]matz2007-09-093-4/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (_strptime): now also attaches an elementtadf2007-09-092-2/+12
| | | | | | | | which denotes leftover substring if exists. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_object0): check T_STRUCT type for structs.akr2007-09-082-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* values doesn't needs to be volatile since it is passed to rb_struct_initialize.akr2007-09-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_object0): don't call user-defined initialize forakr2007-09-084-2/+12
| | | | | | | | | | | T_STRUCT objects. * include/ruby/intern.h (rb_struct_initialize): declared. * struct.c (rb_struct_initialize): export. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* abolish warnings.akr2007-09-081-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31650] and [ruby-dev:31659].akr2007-09-081-0/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_method.ci (rb_get_alloc_func): new function to get allocationakr2007-09-086-52/+279
| | | | | | | | | | | | | | | | | | | | | | | function. * include/ruby/intern.h (rb_alloc_func_t): declared. (rb_define_alloc_func): declared. (rb_marshal_define_compat): declared. * range.c: use T_STRUCT for Range. * inits.c: move Init_marshal() prior to Init_Range() because Init_Range calls rb_marshal_define_compat which needs marshal's compat_allocator_tbl initialized. * marshal.c: support marshal format compatibility layer designed for marshaling T_STRUCT Range using T_OBJECT format. (rb_marshal_define_compat): defined. [ruby-dev:31710] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: conflict resolutionmatz2007-09-081-8/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c (rb_struct_s_members): check if __members__ is anmatz2007-09-082-0/+11
| | | | | | array to prevent segmentation fault. [ruby-dev:31759] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (str[fp]time): now check specifications moretadf2007-09-083-44/+56
| | | | | | | | | | strictly. * and some trivial changes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31759].akr2007-09-071-4/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_fiber.rb (TestFiber::test_throw): uncaught throwmatz2007-09-072-1/+6
| | | | | | now raise ArgumentError exception. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c (rb_struct_s_members): should raise TypeError insteadmatz2007-09-073-4/+8
| | | | | | | | of call rb_bug(). [ruby-dev:31709] * marshal.c (r_object0): no nil check require any more. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e