Overview
Comment: | Rework OFAutoreleasePool and remove now unnecessary hack from OFList. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a99f512a4aacfd32fc1474a81919cafa |
User & Date: | js on 2009-09-16 16:22:27 |
Other Links: | manifest | tags |
Context
2009-09-16
| ||
17:22 | Completely remove tests/OFAutoreleasePool, it's for the old version. check-in: f8005a79c1 user: js tags: trunk | |
16:22 | Rework OFAutoreleasePool and remove now unnecessary hack from OFList. check-in: a99f512a4a user: js tags: trunk | |
2009-09-15
| ||
14:17 | +[stringWithCString:length:] requires a \0 at the end of the string. check-in: 16db39752c user: js tags: trunk | |
Changes
Modified src/OFAutoreleasePool.h from [9729efb348] to [33de3af070].
︙ | |||
16 17 18 19 20 21 22 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | - - + + | /** * The OFAutoreleasePool class provides a class that keeps track of objects * that will be released when the autorelease pool is released. * Every thread has its own stack of autorelease pools. */ @interface OFAutoreleasePool: OFObject { |
︙ |
Modified src/OFAutoreleasePool.m from [d23a1326bd] to [b3f1509666].
︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | + + + + + + + + + + - + + + + + + - + + - - - + + + - - - + - - + - + + + + + - + + + + + + - + + + + - + - - - - + + + + + + + + + - + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + - - + - - - - + + + - - - - - - - - + - + + + + + + - + + + + + - + - - + | * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #include "config.h" #include <stdlib.h> #ifndef _WIN32 #include <pthread.h> #else #include <windows.h> #endif #import "OFAutoreleasePool.h" #import "OFList.h" #import "OFThread.h" #import "OFExceptions.h" /* * Pay special attention to NULL and nil in this file, they might be different! * Use NULL for TLS values and nil for instance variables. */ |
︙ |
Modified src/OFList.h from [d42967ddf0] to [677855ce18].
︙ | |||
29 30 31 32 33 34 35 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | - - - - - - - - - | * The OFList class provides easy to use double-linked lists. */ @interface OFList: OFObject <OFCopying> { of_list_object_t *first; of_list_object_t *last; size_t count; |
︙ |
Modified src/OFList.m from [18ec5ebfcc] to [b22035331b].
︙ | |||
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | - - - - - - - - - - - | return [[[self alloc] init] autorelease]; } - init { self = [super init]; |
︙ | |||
77 78 79 80 81 82 83 | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | - - + | last = o; if (first == NULL) first = o; count++; |
︙ | |||
101 102 103 104 105 106 107 | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | - - + | first = o; if (last == NULL) last = o; count++; |
︙ | |||
127 128 129 130 131 132 133 | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | - - + | listobj->prev = o; if (listobj == first) first = o; count++; |
︙ | |||
153 154 155 156 157 158 159 | 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | - - + - - + | listobj->next = o; if (listobj == last) last = o; count++; |
︙ | |||
209 210 211 212 213 214 215 | 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | - + - - - - - - - + | assert(iter == NULL && iter2 == NULL); return YES; } - (id)copy { |
Modified tests/Makefile from [2533f0275e] to [c768dbff65].
1 2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | - - + | include ../extra.mk |
Modified tests_new/main.m from [f0c02f400c] to [3bad531e54].
︙ | |||
12 13 14 15 16 17 18 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | - - + + | #include "config.h" #ifdef STDOUT #include <stdio.h> #endif #include <stdlib.h> |
︙ |