summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * 2007-09-08usa2007-09-071-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regenc.c, regenc.h (onigenc_single_byte_mbc_enc_len): should takeusa2007-09-073-2/+7
| | | | | | | | two arguments. [ruby-dev:31754] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: fix typo.ko12007-09-062-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_getc): rb_enc_mbclen() fix.matz2007-09-063-3/+8
| | | | | | * ext/stringio/stringio.c (strio_ungetc): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_getc): forgot to commit rb_enc_mbclen() fix.matz2007-09-063-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils::Entry_::copy): prevent self copy ofmatz2007-09-062-4/+16
| | | | | | | | | | directories. * lib/fileutils.rb (FileUtils::fu_each_src_dest0): use try_convert. * lib/fileutils.rb (FileUtils::fu_update_option): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ChangeLog entriesmatz2007-09-061-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_cycle): typo in rdoc. a patch from Yuguimatz2007-09-0619-133/+146
| | | | | | <yugui@yugui.sakura.ne.jp>. [ruby-dev:31748] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_succ, rb_str_chop_bang, rb_str_chop): m17n support.nobu2007-09-064-30/+109
| | | | | | | [ruby-dev:31734] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_subseq): need integer overflow check.matz2007-09-052-5/+13
| | | | | | | | | | [ruby-dev:31736] * array.c (rb_ary_splice): ditto. [ruby-dev:31737] * array.c (rb_ary_fill): ditto. [ruby-dev:31738] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_splice): integer overflow for length.matz2007-09-053-4/+9
| | | | | | [ruby-dev:31739] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: add WIN32OLE_EVENT#unadvise.suke2007-09-044-9/+90
| | | | | | | * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (vm.o): depends on st.h too.nobu2007-09-033-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/st.h (struct st_table): make num_entries bitfieldakr2007-09-022-2/+7
| | | | | | | instead of num_bins for speed. num_entries has less access. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:31709].akr2007-09-021-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: typo fixedmatz2007-09-011-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (_parse): improved parsing of ordinal dates.tadf2007-09-012-12/+28
| | | | | | | | | * lib/date/format.rb (_parse): use named character classes in some regular expressions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test_jump.rb, test_knownbug.rb: seems to be fixed.usa2007-09-012-11/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_jump.ci (rb_f_throw): wrap tag and TAG_THROW in a NODE_MEMOmatz2007-09-012-2/+7
| | | | | | node to make throw instruction to work well. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_knownbug.rb: add new test. [ruby-dev:31698]usa2007-09-011-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_jump.ci (rb_f_catch): generate new tag object if no argument ismatz2007-09-015-18/+62
| | | | | | | | | | | | | | | | | | | given. backported from MatzRuby. [ruby-dev:31609] * eval_jump.ci (rb_catch): call #catch without arguments if tag string is NULL. * eval_jump.ci (rb_f_throw): allow throwing non-symbol object. * eval.c (rb_catch_obj): new function to wait throw with arbitrary object. * eval.c (rb_throw_obj): new function to throw arbitrary object. * variable.c (check_autoload_table): prevent multiple calls from RSTRING_PTR(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (struct RBignum): embed digits in RBignum forakr2007-09-0112-203/+332
| | | | | | | | | | | | | | | | | | | | | | | | | | | small bignums. * bignum.c: RBignum embeded digits implemented. * include/ruby/intern.h: declare rb_big_resize. * gc.c: don't free embedded digits. * numeric.c: replace direct bignum field accessor by abstract field accessor such as RBIGNUM(val)->sign to RBIGNUM_SIGN(val). * sprintf.c: ditto. * compar.c: ditto. * marshal.c: ditto. * random.c: ditto. * .gdbinit: support embedded small bignums. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_event_free): IConnectionPoint should besuke2007-09-012-27/+40
| | | | | | | | | | | | released. * ext/win32ole/win32ole.c (EVENTSINK_Destructor): ITypeInfo should be released. * ext/win32ole/win32ole.c (fev_initialize): refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_tcp.rb (test_recvfrom): same as mswin32 on mswin64.usa2007-09-012-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/st.h (rb_index_t): use st_data_t for the platforms itnobu2007-09-012-8/+7
| | | | | | | is larger than int. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.c (st_numcmp, st_numhash): use st_data_t instead of long, becausenobu2007-09-014-26/+49
| | | | | | | | | | | | the former may be larger than the latter. * include/ruby/st.h (CHAR_BIT): get rid of magic number. * include/ruby/st.h (struct st_table): num_entries never exceed num_bins. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix comment.akr2007-08-311-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (SQRT_LONG_MAX): use SIZEOF_LONG instead of SIZEOF_VALUEusa2007-08-302-1/+6
| | | | | | | because SIZEOF_VALUE > SIZEOF_LONG on some platforms. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (f_norm_arg, f_arg_item): not croak already erred names.nobu2007-08-302-3/+6
| | | | | | | [ruby-dev:31687] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (assignable_gen): ignore already erred names.nobu2007-08-305-15/+21
| | | | | | | | * parse.y (shadowing_lvar_gen): always make new block local variable when shadowing outer local variable. [ruby-dev:31507] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regenc.h: check RUBY_EXTERN before including config.h and defines.husa2007-08-303-8/+18
| | | | | | | * common.mk: update header dependency. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (rb_obj_define_method): reverted. [ruby-talk:266637]nobu2007-08-302-2/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: initialize $top_srcdir always. [ruby-dev:31682]nobu2007-08-302-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (try_const, have_const): check for a const is defined.nobu2007-08-302-0/+43
| | | | | | | [ruby-core:04422] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (tr_trans, rb_str_squeeze_bang, rb_str_split_m): suppressnobu2007-08-301-2/+3
| | | | | | | warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add comment.akr2007-08-301-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (hash_alloc0, hash_alloc): unified because hash_alloc doesn'takr2007-08-302-12/+4
| | | | | | | allocate st_table now. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* forgot to modify akr2007-08-293-9/+13
| | | | | | | | | ext/json/ext/parser/parser.rl and ext/tk/tkutil/tkutil.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* enclose RHASH_XXX macros by parenthesis.akr2007-08-291-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h: declare rb_hash_tbl.akr2007-08-2912-59/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/ruby/ruby.h (RHash): delay st_table allocation. rename tbl field to ntbl to detect direct reference to the st_table as a compile error. (RHASH_TBL): abstract accessor defined. (RHASH_ITER_LEV): ditto. (RHASH_IFNONE): ditto. (RHASH_SIZE): ditto. (RHASH_EMPTY_P): ditto. * hash.c: delay st_table allocation. * gc.c: replace tbl by ntbl. * array.c: replace direct field accessor by abstract field accessor such as RHASH(hash)->tbl to RHASH_TBL(hash). * marshal.c: ditto. * insns.def: ditto. * ext/iconv/iconv.c: ditto. * ext/json/ext/generator/generator.c: ditto. * ext/json/ext/parser/parser.c: ditto. * ext/syck/rubyext.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_gsub): should not use mbclen2() which has broken API.matz2007-08-295-16/+13
| | | | | | * re.c: remove rb_reg_mbclen2(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: add :ftp_active_mode option.akr2007-08-292-1/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31609].akr2007-08-291-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e