mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 18:21:04 +00:00
(o_hash_description): Instead of @%, use %s and [s cStringNoCopy].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1553 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a3c554ffdc
commit
09caef3a6a
1 changed files with 5 additions and 5 deletions
|
@ -1108,15 +1108,15 @@ o_hash_description(o_hash_t *hash)
|
|||
#define DESCRIBE(E) o_describe(callbacks, (E), hash)
|
||||
|
||||
[string appendFormat:@"element_count = %d;\n", o_hash_count(hash)];
|
||||
[string appendFormat:@"not_an_element_marker = %@;\n",
|
||||
DESCRIBE(o_hash_not_an_element_marker(hash))];
|
||||
[string appendFormat:@"not_an_element_marker = %s;\n",
|
||||
[DESCRIBE(o_hash_not_an_element_marker(hash)) cStringNoCopy]];
|
||||
[string appendString:@"elements = {\n"];
|
||||
|
||||
while (o_hash_enumerator_next_element(&enumerator, &element))
|
||||
[string appendFormat:@"%@,\n", DESCRIBE(element)];
|
||||
[string appendFormat:@"%s,\n", [DESCRIBE(element) cStringNoCopy]];
|
||||
|
||||
[string appendFormat:@"%@};\n",
|
||||
DESCRIBE(o_hash_not_an_element_marker(hash))];
|
||||
[string appendFormat:@"%s};\n",
|
||||
[DESCRIBE(o_hash_not_an_element_marker(hash)) cStringNoCopy]];
|
||||
|
||||
#undef DESCRIBE
|
||||
|
||||
|
|
Loading…
Reference in a new issue