mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (obj_free): make message formant consistent with one from
gc_mark(). [ruby-talk:149668] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d953cb4324
commit
38d5918439
3 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Jul 27 23:23:54 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* gc.c (obj_free): make message formant consistent with one from
|
||||
gc_mark(). [ruby-talk:149668]
|
||||
|
||||
Wed Jul 27 22:11:37 2005 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* sample/rss/tdiary_plugin: removed. because the plugin
|
||||
|
|
4
eval.c
4
eval.c
|
@ -8511,13 +8511,13 @@ proc_to_s(self)
|
|||
len += strlen(node->nd_file) + 2 + (SIZEOF_LONG*CHAR_BIT-NODE_LSHIFT)/3;
|
||||
str = rb_str_new(0, len);
|
||||
snprintf(RSTRING(str)->ptr, len+1,
|
||||
"#<%s:0x%lx@%s:%d>", cname, (VALUE)data->body,
|
||||
"#<%s:0x%.*lx@%s:%d>", cname, w, (VALUE)data->body,
|
||||
node->nd_file, nd_line(node));
|
||||
}
|
||||
else {
|
||||
str = rb_str_new(0, len);
|
||||
snprintf(RSTRING(str)->ptr, len+1,
|
||||
"#<%s:0x%lx>", cname, (VALUE)data->body);
|
||||
"#<%s:0x%.*lx>", cname, w, (VALUE)data->body);
|
||||
}
|
||||
RSTRING(str)->len = strlen(RSTRING(str)->ptr);
|
||||
if (OBJ_TAINTED(self)) OBJ_TAINT(str);
|
||||
|
|
4
gc.c
4
gc.c
|
@ -1256,8 +1256,8 @@ obj_free(obj)
|
|||
break;
|
||||
|
||||
default:
|
||||
rb_bug("gc_sweep(): unknown data type 0x%lx(%ld)", obj,
|
||||
RANY(obj)->as.basic.flags & T_MASK);
|
||||
rb_bug("gc_sweep(): unknown data type 0x%lx(0x%lx)",
|
||||
RANY(obj)->as.basic.flags & T_MASK, obj);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue