Comment: | Get rid of + new. Additionally, make - accept return an autoreleased OFTCPSocket. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
5ca127891ca12cb8498ba6a9c6c5f435 |
User & Date: | js on 2009-05-03 21:33:49 |
Other Links: | manifest | tags |
2009-05-04
| ||
12:57 | Add Thread Local Storage support to OFThread. check-in: 4d1d644283 user: js tags: trunk | |
2009-05-03
| ||
21:33 |
Get rid of + new. Additionally, make - accept return an autoreleased OFTCPSocket. check-in: 5ca127891c user: js tags: trunk | |
17:19 | Make OFStream a class instead of a protocol and move readLine there. check-in: 7bf4b144ad user: js tags: trunk | |
Modified src/OFDictionary.m from [e7cc2d1d1a] to [9fb096432b].
︙ | |||
104 105 106 107 108 109 110 | 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | - + | if (key == nil || obj == nil) @throw [OFInvalidArgumentException newWithClass: isa]; hash = [key hash] & (size - 1); if (data[hash] == nil) |
︙ |
Modified src/OFObject.h from [8b1380da52] to [1bd5addeee].
︙ | |||
39 40 41 42 43 44 45 | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | - - - - - | * alloc will never return nil, instead, it will throw an * OFAllocFailedException. * * \return The allocated object. */ + alloc; |
︙ |
Modified src/OFObject.m from [ed4919e346] to [0826af6e82].
︙ | |||
67 68 69 70 71 72 73 | 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | - - - - - | instance = (OFObject*)((char*)instance + PRE_IVAR_ALIGN); memset(instance, 0, isize); instance->isa = self; return instance; } |
︙ |
Modified src/OFTCPSocket.h from [91d2dde531] to [5f9ebf21be].
︙ | |||
89 90 91 92 93 94 95 | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | - + - | /** * Listen on the socket. */ - listen; /** * Accept an incoming connection. |
︙ |
Modified src/OFTCPSocket.m from [645f0b0d2c] to [cec4aee89e].
︙ | |||
180 181 182 183 184 185 186 | 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | - + | - (OFTCPSocket*)accept { OFTCPSocket *newsock; struct sockaddr *addr; socklen_t addrlen; int s; |
︙ |
Modified tests/OFArray/OFArray.m from [45d0c67eff] to [5f4c7ca67b].
︙ | |||
123 124 125 126 127 128 129 | 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | - + | puts("== TESTING OFArray =="); TEST(OFArray) puts("== TESTING OFBigArray =="); TEST(OFBigArray) |
︙ |
Modified tests/OFAutoreleasePool/OFAutoreleasePool.m from [7a5cd85d7e] to [d3298de97f].
︙ | |||
82 83 84 85 86 87 88 | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | - + - - + + - + - - + + | withMethodFromClass: [TestObject class]]; release = [OFObject replaceMethod: @selector(release) withMethodFromClass: [TestObject class]]; OFObject *o1, *o2, *o3; OFAutoreleasePool *pool1, *pool2; |
Modified tests/OFDictionary/OFDictionary.m from [672670fbeb] to [51f348148f].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | - + | main() { BOOL caught; OFDictionary *dict = [OFDictionary dictionaryWithHashSize: 16]; OFIterator *iter = [dict iterator]; |
︙ |
Modified tests/OFObject/OFObject.m from [a82f199588] to [020015e81a].
︙ | |||
29 30 31 32 33 34 35 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | - + | puts([e cString]); \ puts("Resuming..."); \ } int main() { |
︙ |
Modified tests/OFPlugin/TestPlugin/TestPlugin.m from [616318c30f] to [d0407bc1f1].
︙ | |||
17 18 19 20 21 22 23 | 17 18 19 20 21 22 23 24 25 | - + | return num * 2; } @end id init_plugin() { |
Modified tests/OFString/OFString.m from [50c9f80545] to [a863061368].
︙ | |||
50 51 52 53 54 55 56 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | - + - + | i++; int main() { size_t i = 0; |
︙ |