зеркало из https://github.com/github/ruby.git
* marshal.c (w_object): do not dump generic instance variable when
marshal_dump is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
95cd9e4bb2
Коммит
df71dae11f
|
@ -1,3 +1,8 @@
|
|||
Sat Aug 9 10:36:21 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* marshal.c (w_object): do not dump generic instance variable when
|
||||
marshal_dump is defined.
|
||||
|
||||
Sat Aug 9 00:35:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
|
||||
|
||||
* ext/bigdecimal.c: F style output(like 1234.56789) implemented
|
||||
|
|
|
@ -486,7 +486,7 @@ w_object(obj, arg, limit)
|
|||
w_byte(TYPE_USRMARSHAL, arg);
|
||||
w_unique(rb_class2name(CLASS_OF(obj)), arg);
|
||||
w_object(v, arg, limit);
|
||||
if (ivtbl) w_ivar(ivtbl, &c_arg);
|
||||
if (ivtbl) w_ivar(0, &c_arg); /* do not dump generic_ivar */
|
||||
return;
|
||||
}
|
||||
if (rb_respond_to(obj, s_dump)) {
|
||||
|
@ -498,7 +498,7 @@ w_object(obj, arg, limit)
|
|||
}
|
||||
w_class(TYPE_USERDEF, obj, arg);
|
||||
w_bytes(RSTRING(v)->ptr, RSTRING(v)->len, arg);
|
||||
if (ivtbl) w_ivar(ivtbl, &c_arg);
|
||||
if (ivtbl) w_ivar(0, &c_arg);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче