Differences From Artifact [2577a47d50]:
- File
src/OFXMLComment.m
— part of check-in
[0ddaac3f5b]
at
2020-11-05 00:24:29
on branch trunk
— Avoid -[allocMemoryWithSize:] for temporary memory
-[allocMemoryWithSize:] has book keeping overhead that is unnecessary
for temporary memory. (user: js, size: 2988) [annotate] [blame] [check-ins using] [more...]
To Artifact [ed66bc6cfa]:
- File
src/OFXMLComment.m
— part of check-in
[627511b032]
at
2020-11-14 12:23:55
on branch trunk
— Rename of_malloc and of_calloc
The new names should be more accurate. (user: js, size: 2987) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
112 113 114 115 116 117 118 | - (OFString *)XMLStringWithIndentation: (unsigned int)indentation level: (unsigned int)level { OFString *ret; if (indentation > 0 && level > 0) { | | | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | - (OFString *)XMLStringWithIndentation: (unsigned int)indentation level: (unsigned int)level { OFString *ret; if (indentation > 0 && level > 0) { char *whitespaces = of_alloc((level * indentation) + 1, 1); memset(whitespaces, ' ', level * indentation); whitespaces[level * indentation] = 0; @try { ret = [OFString stringWithFormat: @"%s<!--%@-->", whitespaces, _comment]; |
︙ | ︙ |