Differences From Artifact [bb33e92df8]:
- File src/OFHTTPClient.m — part of check-in [6bd37697f2] at 2013-09-30 16:11:14 on branch trunk — OFHTTPClient: Status in delegate for redirection. (user: js, size: 15242) [annotate] [blame] [check-ins using]
To Artifact [80b58be37f]:
- File
src/OFHTTPClient.m
— part of check-in
[fa6496efc7]
at
2013-12-05 17:48:11
on branch trunk
— Make coding style consistent.
A file documenting the coding style will be written soon. This will
hopefully prevent conflicts in the future, such as whether static
functions are written in camelCase or_with_underscores, like was the
case here. (user: js, size: 15240) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
44 45 46 47 48 49 50 | #import "OFUnsupportedVersionException.h" #import "OFWriteFailedException.h" #import "autorelease.h" #import "macros.h" static OF_INLINE void | | | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #import "OFUnsupportedVersionException.h" #import "OFWriteFailedException.h" #import "autorelease.h" #import "macros.h" static OF_INLINE void normalizeKey(char *str_) { uint8_t *str = (uint8_t*)str_; bool firstLetter = true; while (*str != '\0') { if (!isalnum(*str)) { firstLetter = true; |
︙ | ︙ | |||
489 490 491 492 493 494 495 | if ((keyC = malloc(tmp - lineC + 1)) == NULL) @throw [OFOutOfMemoryException exceptionWithRequestedSize: tmp - lineC + 1]; memcpy(keyC, lineC, tmp - lineC); keyC[tmp - lineC] = '\0'; | | | 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 | if ((keyC = malloc(tmp - lineC + 1)) == NULL) @throw [OFOutOfMemoryException exceptionWithRequestedSize: tmp - lineC + 1]; memcpy(keyC, lineC, tmp - lineC); keyC[tmp - lineC] = '\0'; normalizeKey(keyC); @try { key = [OFString stringWithUTF8StringNoCopy: keyC freeWhenDone: true]; } @catch (id e) { free(keyC); @throw e; |
︙ | ︙ |