Overview
Comment: | Remove usage of empty initializer extension |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f178d11592665c32cdd7a172899413c5 |
User & Date: | js on 2014-05-15 04:06:12 |
Other Links: | manifest | tags |
Context
2014-05-15
| ||
04:07 | Don't return void expressions check-in: 3c7bf2e50c user: js tags: trunk | |
04:06 | Remove usage of empty initializer extension check-in: f178d11592 user: js tags: trunk | |
03:39 | objc_exit(): Fix the first class not being free'd check-in: 428520105b user: js tags: trunk | |
Changes
Modified generators/TableGenerator.m from [190bc6c6d8] to [f2ce487543].
︙ | ︙ | |||
180 181 182 183 184 185 186 | mode: @"wb"]; of_unichar_t i, j; [file writeString: COPYRIGHT @"#include \"config.h\"\n" @"\n" @"#import \"OFString.h\"\n\n" | | | 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | mode: @"wb"]; of_unichar_t i, j; [file writeString: COPYRIGHT @"#include \"config.h\"\n" @"\n" @"#import \"OFString.h\"\n\n" @"static const of_unichar_t emptyPage[0x100] = { 0 };\n\n"]; /* Write uppercasePage%u */ for (i = 0; i < 0x110000; i += 0x100) { bool isEmpty = true; for (j = i; j < i + 0x100; j++) { if (_uppercaseTable[j] != 0) { |
︙ | ︙ |
Modified src/OFDate.m from [99de8e6f4d] to [6d1066057e].
︙ | ︙ | |||
234 235 236 237 238 239 240 | - initWithDateString: (OFString*)string format: (OFString*)format { self = [super init]; @try { | | | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | - initWithDateString: (OFString*)string format: (OFString*)format { self = [super init]; @try { struct tm tm = { 0 }; tm.tm_isdst = -1; if (of_strptime([string UTF8String], [format UTF8String], &tm) == NULL) @throw [OFInvalidFormatException exception]; |
︙ | ︙ | |||
279 280 281 282 283 284 285 | - initWithLocalDateString: (OFString*)string format: (OFString*)format { self = [super init]; @try { | | | 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 | - initWithLocalDateString: (OFString*)string format: (OFString*)format { self = [super init]; @try { struct tm tm = { 0 }; tm.tm_isdst = -1; if (of_strptime([string UTF8String], [format UTF8String], &tm) == NULL) @throw [OFInvalidFormatException exception]; |
︙ | ︙ |
Modified src/OFMapTable.m from [3156715ede] to [05916c8969].
︙ | ︙ | |||
32 33 34 35 36 37 38 | #define MIN_CAPACITY 16 struct of_map_table_bucket { void *key, *value; uint32_t hash; }; | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #define MIN_CAPACITY 16 struct of_map_table_bucket { void *key, *value; uint32_t hash; }; static struct of_map_table_bucket deleted = { 0 }; static void* defaultRetain(void *value) { return value; } |
︙ | ︙ |
Modified src/OFSet_hashtable.m from [42cf3a3ab0] to [68e410fce6].
︙ | ︙ | |||
56 57 58 59 60 61 62 | static of_map_table_functions_t keyFunctions = { .retain = retain, .release = release, .hash = hash, .equal = equal }; | | | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | static of_map_table_functions_t keyFunctions = { .retain = retain, .release = release, .hash = hash, .equal = equal }; static of_map_table_functions_t valueFunctions = { 0 }; @implementation OFSet_hashtable - init { return [self initWithCapacity: 0]; } |
︙ | ︙ |
Modified src/unicode.m from [ce4a079ffd] to [7ceed35e3d].
︙ | ︙ | |||
14 15 16 17 18 19 20 | * file. */ #include "config.h" #import "OFString.h" | | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #import "OFString.h" static const of_unichar_t emptyPage[0x100] = { 0 }; static const of_unichar_t uppercasePage0[0x100] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
︙ | ︙ |