Differences From Artifact [7dd06b0a1f]:
- File
src/of_asprintf.m
— part of check-in
[0232e0c975]
at
2013-11-23 03:02:17
on branch trunk
— of_asprintf: Don't accept length modifiers for %@.
Same for %C. (user: js, size: 12902) [annotate] [blame] [check-ins using]
To Artifact [3466f7d906]:
- File
src/of_asprintf.m
— part of check-in
[5eada9f7b0]
at
2013-11-23 03:24:43
on branch trunk
— of_asprintf: Change %C to %k.
In Cocoa, %C means unichar, which is unsigned short and thus compilers
expect %C to be unichar when the language is set to ObjC. It would be
hard to let compilers detect whether %C should be unichar or
of_unichar_t, especially when mixing ObjFW and Cocoa code, thus the
change to %k. (user: js, size: 12902) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
315 316 317 318 319 320 321 | "(nil)"); } @catch (id e) { free(ctx->buffer); @throw e; } break; | | | 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 | "(nil)"); } @catch (id e) { free(ctx->buffer); @throw e; } break; case 'k': if (ctx->lengthModifier != LENGTH_MODIFIER_NONE) return false; ctx->subformat[ctx->subformatLen - 1] = 's'; { char buffer[5]; |
︙ | ︙ |