Differences From Artifact [61830ce984]:
- File src/OFMutableString.m — part of check-in [e7e8efd297] at 2009-05-18 18:09:08 on branch trunk — More separation for OFString and OFMutableString. (user: js, size: 4843) [annotate] [blame] [check-ins using]
To Artifact [91e1854508]:
- File src/OFMutableString.m — part of check-in [6ba395bacb] at 2009-05-18 18:45:35 on branch trunk — Only let - copy create an actual copy if necessary. (user: js, size: 4905) [annotate] [blame] [check-ins using]
︙ | |||
29 30 31 32 33 34 35 36 37 38 39 40 41 42 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | + + + + + | #import "OFMacros.h" #ifndef HAVE_ASPRINTF #import "asprintf.h" #endif @implementation OFMutableString - (id)copy { return [OFString stringWithCString: string]; } - setToCString: (const char*)str { size_t len; if (string != NULL) [self freeMem: string]; |
︙ |