Overview
Comment: | There's no need for + initialize to return anything. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
917188fdcc3a833e0006730f93db1793 |
User & Date: | js on 2009-05-13 19:49:50 |
Other Links: | manifest | tags |
Context
2009-05-13
| ||
20:31 | Rename - free to - (void)dealloc. check-in: 9e6dd00ef5 user: js tags: trunk | |
19:49 | There's no need for + initialize to return anything. check-in: 917188fdcc user: js tags: trunk | |
19:39 | Get rid of a @try block in OFString. check-in: 1c798ffa3f user: js tags: trunk | |
Changes
Modified src/OFAutoreleasePool.m from [82173abc64] to [5bcc5ee828].
︙ | ︙ | |||
32 33 34 35 36 37 38 | for (iter = first; iter != NULL; iter = iter->next) release(iter->object, @selector(release)); [(OFList*)list release]; } @implementation OFAutoreleasePool | | < < | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | for (iter = first; iter != NULL; iter = iter->next) release(iter->object, @selector(release)); [(OFList*)list release]; } @implementation OFAutoreleasePool + (void)initialize { pool_list_key = [[OFTLSKey alloc] initWithDestructor: release_list]; } + (void)addToPool: (OFObject*)obj { OFList *pool_list; @try { |
︙ | ︙ |
Modified src/OFObject.h from [1bd5addeee] to [daf333a5b7].
︙ | ︙ | |||
27 28 29 30 31 32 33 | /** * This code is executed once when a method of the class is called for the first * time. * Derived classes can override this to execute their own code on * initialization. */ | | | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | /** * This code is executed once when a method of the class is called for the first * time. * Derived classes can override this to execute their own code on * initialization. */ + (void)initialize; /** * Allocates memory for an instance of the class. * * alloc will never return nil, instead, it will throw an * OFAllocFailedException. * |
︙ | ︙ |
Modified src/OFObject.m from [0826af6e82] to [168ac17ab0].
︙ | ︙ | |||
37 38 39 40 41 42 43 | #define PRE_IVAR ((struct pre_ivar*)((char*)self - PRE_IVAR_ALIGN)) static struct { Class isa; } alloc_failed_exception; @implementation OFObject | | < | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #define PRE_IVAR ((struct pre_ivar*)((char*)self - PRE_IVAR_ALIGN)) static struct { Class isa; } alloc_failed_exception; @implementation OFObject + (void)initialize { } + alloc { OFObject *instance; #ifdef __objc_INCLUDE_GNU size_t isize = class_get_instance_size(self); |
︙ | ︙ |
Modified src/OFSocket.m from [84d000978b] to [3e54369073].
︙ | ︙ | |||
19 20 21 22 23 24 25 | #ifndef INVALID_SOCKET #define INVALID_SOCKET -1 #endif @implementation OFSocket #ifdef _WIN32 | | < < | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #ifndef INVALID_SOCKET #define INVALID_SOCKET -1 #endif @implementation OFSocket #ifdef _WIN32 + (void)initialize { WSADATA wsa; if (WSAStartup(MAKEWORD(2, 0), &wsa)) @throw [OFInitializationFailedException newWithClass: self]; } #endif - init { self = [super init]; |
︙ | ︙ |