Overview
| Comment: | {generators,utils/of{hash,http}}: Use generics |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
325f616d844bde9b571690c66582c7f1 |
| User & Date: | js on 2015-06-28 17:16:21 |
| Other Links: | manifest | tags |
Context
|
2015-06-28
| ||
| 18:06 | Update to Unicode 8.0 (check-in: 44f1c04c03 user: js tags: trunk) | |
| 17:16 | {generators,utils/of{hash,http}}: Use generics (check-in: 325f616d84 user: js tags: trunk) | |
| 17:09 | utils/ofzip: Recompose paths (check-in: 0d49a2e6a7 user: js tags: trunk) | |
Changes
Modified generators/TableGenerator.m from [0c58d98754] to [5a4e277bcb].
| ︙ | ︙ | |||
85 86 87 88 89 90 91 |
request = [OFHTTPRequest requestWithURL:
[OFURL URLWithString: UNICODE_DATA_URL]];
client = [OFHTTPClient client];
response = [client performRequest: request];
while ((line = [response readLine]) != nil) {
void *pool2;
| | | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
request = [OFHTTPRequest requestWithURL:
[OFURL URLWithString: UNICODE_DATA_URL]];
client = [OFHTTPClient client];
response = [client performRequest: request];
while ((line = [response readLine]) != nil) {
void *pool2;
OFArray OF_GENERIC(OFString*) *split;
OFString *const *splitObjects;
of_unichar_t codep;
if ([line length] == 0)
continue;
pool2 = objc_autoreleasePoolPush();
|
| ︙ | ︙ | |||
134 135 136 137 138 139 140 |
request = [OFHTTPRequest requestWithURL:
[OFURL URLWithString: CASE_FOLDING_URL]];
client = [OFHTTPClient client];
response = [client performRequest: request];
while ((line = [response readLine]) != nil) {
void *pool2;
| | | 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
request = [OFHTTPRequest requestWithURL:
[OFURL URLWithString: CASE_FOLDING_URL]];
client = [OFHTTPClient client];
response = [client performRequest: request];
while ((line = [response readLine]) != nil) {
void *pool2;
OFArray OF_GENERIC(OFString*) *split;
OFString *const *splitObjects;
of_unichar_t codep;
if ([line length] == 0 || [line hasPrefix: @"#"])
continue;
pool2 = objc_autoreleasePoolPush();
|
| ︙ | ︙ |
Modified utils/ofhash/OFHash.m from [145a9f9ca5] to [59a725be71].
| ︙ | ︙ | |||
67 68 69 70 71 72 73 |
return nil;
}
@implementation OFHash
- (void)applicationDidFinishLaunching
{
| | | 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
return nil;
}
@implementation OFHash
- (void)applicationDidFinishLaunching
{
OFArray OF_GENERIC(OFString*) *arguments = [OFApplication arguments];
id <OFHash> hash;
OFEnumerator *enumerator;
OFString *path;
int exitStatus = 0;
if ([arguments count] < 2)
help();
|
| ︙ | ︙ |
Modified utils/ofhttp/OFHTTP.m from [4ec503b029] to [9d72e08e88].
| ︙ | ︙ | |||
46 47 48 49 50 51 52 |
#define GIBIBYTE (1024 * 1024 * 1024)
#define MEBIBYTE (1024 * 1024)
#define KIBIBYTE (1024)
@interface OFHTTP: OFObject
{
| | | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
#define GIBIBYTE (1024 * 1024 * 1024)
#define MEBIBYTE (1024 * 1024)
#define KIBIBYTE (1024)
@interface OFHTTP: OFObject
{
OFArray OF_GENERIC(OFString*) *_URLs;
size_t _URLIndex;
int _errorCode;
OFString *_outputPath;
bool _continue, _detectFileName, _quiet, _verbose;
OFDataArray *_body;
of_http_request_method_t _method;
OFMutableDictionary *_clientHeaders;
|
| ︙ | ︙ | |||
543 544 545 546 547 548 549 |
- (void)downloadNextURL
{
OFString *URLString = nil;
OFURL *URL;
OFMutableDictionary *clientHeaders;
OFHTTPRequest *request;
OFHTTPResponse *response;
| | | 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 |
- (void)downloadNextURL
{
OFString *URLString = nil;
OFURL *URL;
OFMutableDictionary *clientHeaders;
OFHTTPRequest *request;
OFHTTPResponse *response;
OFDictionary OF_GENERIC(OFString*, OFString*) *headers;
OFString *fileName = nil, *lengthString, *type;
_length = -1;
_received = _resumedFrom = 0;
if (_output != of_stdout)
[_output release];
|
| ︙ | ︙ | |||
668 669 670 671 672 673 674 |
} else
lengthString = @"unknown";
[of_stdout writeFormat: @" Name: %@\n", fileName];
if (_verbose) {
void *pool = objc_autoreleasePoolPush();
| > | | 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 |
} else
lengthString = @"unknown";
[of_stdout writeFormat: @" Name: %@\n", fileName];
if (_verbose) {
void *pool = objc_autoreleasePoolPush();
OFDictionary OF_GENERIC(OFString*, OFString*) *headers =
[response headers];
OFEnumerator *keyEnumerator = [headers keyEnumerator];
OFEnumerator *objectEnumerator =
[headers objectEnumerator];
OFString *key, *object;
while ((key = [keyEnumerator nextObject]) != nil &&
(object = [objectEnumerator nextObject]) != nil)
|
| ︙ | ︙ |