Overview
Comment: | Add of_asprintf and allow %@ in format strings. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
4c4608fbbaba40e0e009199c7b183935 |
User & Date: | js on 2011-01-29 19:01:32 |
Other Links: | manifest | tags |
Context
2011-01-29
| ||
19:16 | Use %@ where it is useful. check-in: d0eace5cd1 user: js tags: trunk | |
19:01 | Add of_asprintf and allow %@ in format strings. check-in: 4c4608fbba user: js tags: trunk | |
2011-01-24
| ||
20:20 | ObjC++ needs those defines for <stdin.h>. check-in: 5ad479153e user: js tags: trunk | |
Changes
Modified src/Makefile from [b73e183993] to [25fedfa6c0].
︙ | |||
38 39 40 41 42 43 44 45 46 47 48 49 50 51 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | + | OFTCPSocket.m \ ${OFTHREAD_M} \ OFURL.m \ OFXMLAttribute.m \ OFXMLElement.m \ OFXMLElementBuilder.m \ OFXMLParser.m \ of_asprintf.m \ unicode.m INCLUDES := ${SRCS:.m=.h} \ OFCollection.h \ ObjFW.h \ asprintf.h \ ${ATOMIC_H} \ |
︙ |
Modified src/OFMutableString.m from [8301473e4d] to [751ced34bb].
︙ | |||
29 30 31 32 33 34 35 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | - + | # define madvise(addr, len, advise) #endif #import "OFString.h" #import "OFExceptions.h" #import "macros.h" |
︙ | |||
228 229 230 231 232 233 234 235 236 237 238 239 | 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | + - + - - - - - - + + + - - + + | va_end(args); } - (void)appendFormat: (OFString*)fmt withArguments: (va_list)args { char *t; int len; if (fmt == nil) @throw [OFInvalidArgumentException newWithClass: isa selector: _cmd]; |
︙ |
Modified src/OFStream.m from [c9c58ea96b] to [91d5f2f808].
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - + | #import "OFStream.h" #import "OFString.h" #import "OFDataArray.h" #import "OFExceptions.h" #import "macros.h" |
︙ | |||
672 673 674 675 676 677 678 | 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 | - + - + - - - - - + - + | return ret; } - (size_t)writeFormat: (OFString*)fmt withArguments: (va_list)args { |
︙ |
Modified src/OFString.m from [a9943514ef] to [d45226b27d].
︙ | |||
33 34 35 36 37 38 39 | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | - + | #import "OFString.h" #import "OFArray.h" #import "OFFile.h" #import "OFAutoreleasePool.h" #import "OFExceptions.h" #import "macros.h" |
︙ | |||
462 463 464 465 466 467 468 | 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 | - + - + - - - - - - + + - + | - initWithFormat: (OFString*)fmt arguments: (va_list)args { self = [super init]; @try { |
︙ |
Modified src/OFXMLElement.m from [5cd0b460a8] to [866cd32b8c].
︙ | |||
111 112 113 114 115 116 117 | 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | - + | @try { name = [name_ copy]; ns = [ns_ copy]; if (stringval != nil) { OFAutoreleasePool *pool; |
︙ |
Modified src/ObjFW.h from [f49c5a28b5] to [ec1ce05ff2].
︙ | |||
66 67 68 69 70 71 72 | 66 67 68 69 70 71 72 73 | + | #ifdef OF_THREADS # import "OFThread.h" # import "threading.h" #endif #import "asprintf.h" #import "of_asprintf.h" |
Added src/of_asprintf.h version [8c49ad9e92].
|
Added src/of_asprintf.m version [939c56bbd9].