1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* marshal.c (r_object0): call r_entry/r_leave to call proc when TYPE_FIXNUM,

TYPE_NIL, TYPE_TRUE, TYPE_FALSE, TYPE_SYMBOL.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-01-31 06:10:56 +00:00
parent d2bb8975e1
commit b0a18f4d9f
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Jan 31 15:06:50 2008 NARUSE, Yui <naruse@ruby-lang.org>
* 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@ruby-lang.org>
* lib/rdoc/ri/display.rb (display_method_list, display_class_list):

View file

@ -1208,14 +1208,20 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
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 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
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 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
case TYPE_SYMBOL:
v = ID2SYM(r_symreal(arg));
v = r_entry(v, arg);
v = r_leave(v, arg);
break;
case TYPE_SYMLINK: