ruby-changes:3867
From: ko1@a...
Date: Thu, 31 Jan 2008 15:11:12 +0900 (JST)
Subject: [ruby-changes:3867] naruse - Ruby:r15356 (trunk): * marshal.c (r_object0): call r_entry/r_leave to call proc when TYPE_FIXNUM,
naruse 2008-01-31 15:10:56 +0900 (Thu, 31 Jan 2008) New Revision: 15356 Modified files: trunk/ChangeLog trunk/marshal.c Log: * marshal.c (r_object0): call r_entry/r_leave to call proc when TYPE_FIXNUM, TYPE_NIL, TYPE_TRUE, TYPE_FALSE, TYPE_SYMBOL. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15356&r2=15355&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/marshal.c?r1=15356&r2=15355&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 15355) +++ ChangeLog (revision 15356) @@ -1,3 +1,8 @@ +Thu Jan 31 15:06:50 2008 NARUSE, Yui <naruse@r...> + + * marshal.c (r_object0): call r_entry/r_leave to call proc when TYPE_FIXNUM, + TYPE_NIL, TYPE_TRUE, TYPE_FALSE, TYPE_SYMBOL. + Thu Jan 31 14:03:38 2008 NAKAMURA Usaku <usa@r...> * lib/rdoc/ri/display.rb (display_method_list, display_class_list): Index: marshal.c =================================================================== --- marshal.c (revision 15355) +++ marshal.c (revision 15356) @@ -1208,14 +1208,20 @@ case TYPE_NIL: v = Qnil; + v = r_entry(v, arg); + v = r_leave(v, arg); break; case TYPE_TRUE: v = Qtrue; + v = r_entry(v, arg); + v = r_leave(v, arg); break; case TYPE_FALSE: v = Qfalse; + v = r_entry(v, arg); + v = r_leave(v, arg); break; case TYPE_FIXNUM: @@ -1223,6 +1229,8 @@ long i = r_long(arg); v = LONG2FIX(i); } + v = r_entry(v, arg); + v = r_leave(v, arg); break; case TYPE_FLOAT: @@ -1497,6 +1505,8 @@ case TYPE_SYMBOL: v = ID2SYM(r_symreal(arg)); + v = r_entry(v, arg); + v = r_leave(v, arg); break; case TYPE_SYMLINK: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/