mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
(_o_@XX@_description): Instead of "@%", use %s and [s cStringNoCopy].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1552 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
56f57a6657
commit
2c22c1f4fc
1 changed files with 9 additions and 7 deletions
|
@ -251,11 +251,13 @@ _o_@XX@_copy_with_zone(o_@XX@_t *xx, NSZone *zone)
|
|||
inline NSString *
|
||||
_o_@XX@_description(o_@XX@_t *xx)
|
||||
{
|
||||
return [NSString stringWithFormat:@"magic_number = %#x;\nserial_number = %d;\nname = %@;\nextra = %@;\nzone = %@;\n",
|
||||
o_@XX@_magic_number(xx),
|
||||
o_@XX@_serial_number(xx),
|
||||
o_@XX@_name(xx),
|
||||
o_describe(o_@XX@_extra_callbacks(xx),
|
||||
o_@XX@_extra(xx), xx),
|
||||
NSZoneName(o_@XX@_zone(xx))];
|
||||
return [NSString
|
||||
stringWithFormat: @"magic_number = %#x;\nserial_number = %d;\n"
|
||||
@"name = %s;\nextra = %s;\nzone = %s;\n",
|
||||
o_@XX@_magic_number(xx),
|
||||
o_@XX@_serial_number(xx),
|
||||
[o_@XX@_name(xx) cStringNoCopy],
|
||||
[o_describe(o_@XX@_extra_callbacks(xx), o_@XX@_extra(xx), xx)
|
||||
cStringNoCopy],
|
||||
[NSZoneName(o_@XX@_zone(xx)) cStringNoCopy]];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue