Differences From Artifact [5705c589f5]:
- File
src/OFXMLProcessingInstructions.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: 3273) [annotate] [blame] [check-ins using] [more...]
To Artifact [3f7941e3fa]:
- File
src/OFXMLProcessingInstructions.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: 3272) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
113 114 115 116 117 118 119 | - (OFString *)XMLStringWithIndentation: (unsigned int)indentation level: (unsigned int)level { OFString *ret; if (indentation > 0 && level > 0) { | | | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | - (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, _processingInstructions]; } @finally { |
︙ | ︙ |