Differences From Artifact [2bd483c89b]:
- File generators/TableGenerator.m — part of check-in [4f8251772c] at 2013-01-28 14:29:05 on branch trunk — TableGenerator: Process files on-the-fly. (user: js, size: 12632) [annotate] [blame] [check-ins using]
To Artifact [d6bc06fa8f]:
- File
generators/TableGenerator.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 12618) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
176 177 178 179 180 181 182 | @"#include \"config.h\"\n" @"\n" @"#import \"OFString.h\"\n\n" @"static const of_unichar_t nop_page[0x100] = {};\n\n"]; /* Write uppercase_page_%u */ for (i = 0; i < 0x110000; i += 0x100) { | | | | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | @"#include \"config.h\"\n" @"\n" @"#import \"OFString.h\"\n\n" @"static const of_unichar_t nop_page[0x100] = {};\n\n"]; /* Write uppercase_page_%u */ for (i = 0; i < 0x110000; i += 0x100) { bool isEmpty = true; for (j = i; j < i + 0x100; j++) { if (uppercaseTable[j] != 0) { isEmpty = false; uppercaseTableSize = i >> 8; uppercaseTableUsed[uppercaseTableSize] = YES; break; } } if (!isEmpty) { |
︙ | ︙ | |||
214 215 216 217 218 219 220 | objc_autoreleasePoolPop(pool2); } } /* Write lowercase_page_%u */ for (i = 0; i < 0x110000; i += 0x100) { | | | | 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | objc_autoreleasePoolPop(pool2); } } /* Write lowercase_page_%u */ for (i = 0; i < 0x110000; i += 0x100) { bool isEmpty = true; for (j = i; j < i + 0x100; j++) { if (lowercaseTable[j] != 0) { isEmpty = false; lowercaseTableSize = i >> 8; lowercaseTableUsed[lowercaseTableSize] = YES; break; } } if (!isEmpty) { |
︙ | ︙ | |||
252 253 254 255 256 257 258 | objc_autoreleasePoolPop(pool2); } } /* Write titlecase_page_%u if it does NOT match uppercase_page_%u */ for (i = 0; i < 0x110000; i += 0x100) { | | | | | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | objc_autoreleasePoolPop(pool2); } } /* Write titlecase_page_%u if it does NOT match uppercase_page_%u */ for (i = 0; i < 0x110000; i += 0x100) { bool isEmpty = true; for (j = i; j < i + 0x100; j++) { if (titlecaseTable[j] != 0) { isEmpty = !memcmp(uppercaseTable + i, titlecaseTable + i, 256 * sizeof(of_unichar_t)); titlecaseTableSize = i >> 8; titlecaseTableUsed[titlecaseTableSize] = (isEmpty ? 2 : 1); break; } } |
︙ | ︙ | |||
293 294 295 296 297 298 299 | objc_autoreleasePoolPop(pool2); } } /* Write casefolding_page_%u if it does NOT match lowercase_page_%u */ for (i = 0; i < 0x110000; i += 0x100) { | | | | | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | objc_autoreleasePoolPop(pool2); } } /* Write casefolding_page_%u if it does NOT match lowercase_page_%u */ for (i = 0; i < 0x110000; i += 0x100) { bool isEmpty = true; for (j = i; j < i + 0x100; j++) { if (casefoldingTable[j] != 0) { isEmpty = !memcmp(lowercaseTable + i, casefoldingTable + i, 256 * sizeof(of_unichar_t)); casefoldingTableSize = i >> 8; casefoldingTableUsed[casefoldingTableSize] = (isEmpty ? 2 : 1); break; } } |
︙ | ︙ |