Differences From Artifact [17f16f253f]:
- File src/OFList.m — part of check-in [db15314420] at 2020-11-06 00:58:06 on branch trunk — OFList: Avoid -[allocMemoryWithSize:] (user: js, size: 9456) [annotate] [blame] [check-ins using] [more...]
To Artifact [5f900e9ac3]:
- File
src/OFList.m
— part of check-in
[627511b032]
at
2020-11-14 12:23:55
on branch trunk
— Rename of_malloc and of_calloc
The new names should be more accurate. (user: js, size: 9451) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
93 94 95 96 97 98 99 | [super dealloc]; } - (of_list_object_t *)appendObject: (id)object { of_list_object_t *listObject; | | | 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | [super dealloc]; } - (of_list_object_t *)appendObject: (id)object { of_list_object_t *listObject; listObject = of_alloc(1, sizeof(of_list_object_t)); listObject->object = [object retain]; listObject->next = NULL; listObject->previous = _lastListObject; if (_lastListObject != NULL) _lastListObject->next = listObject; |
︙ | ︙ | |||
116 117 118 119 120 121 122 | return listObject; } - (of_list_object_t *)prependObject: (id)object { of_list_object_t *listObject; | | | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | return listObject; } - (of_list_object_t *)prependObject: (id)object { of_list_object_t *listObject; listObject = of_alloc(1, sizeof(of_list_object_t)); listObject->object = [object retain]; listObject->next = _firstListObject; listObject->previous = NULL; if (_firstListObject != NULL) _firstListObject->previous = listObject; |
︙ | ︙ | |||
139 140 141 142 143 144 145 | } - (of_list_object_t *)insertObject: (id)object beforeListObject: (of_list_object_t *)listObject { of_list_object_t *newListObject; | | | 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | } - (of_list_object_t *)insertObject: (id)object beforeListObject: (of_list_object_t *)listObject { of_list_object_t *newListObject; newListObject = of_alloc(1, sizeof(of_list_object_t)); newListObject->object = [object retain]; newListObject->next = listObject; newListObject->previous = listObject->previous; if (listObject->previous != NULL) listObject->previous->next = newListObject; |
︙ | ︙ | |||
163 164 165 166 167 168 169 | } - (of_list_object_t *)insertObject: (id)object afterListObject: (of_list_object_t *)listObject { of_list_object_t *newListObject; | | | 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | } - (of_list_object_t *)insertObject: (id)object afterListObject: (of_list_object_t *)listObject { of_list_object_t *newListObject; newListObject = of_alloc(1, sizeof(of_list_object_t)); newListObject->object = [object retain]; newListObject->next = listObject->next; newListObject->previous = listObject; if (listObject->next != NULL) listObject->next->previous = newListObject; |
︙ | ︙ | |||
297 298 299 300 301 302 303 | listObject = NULL; previous = NULL; @try { for (of_list_object_t *iter = _firstListObject; iter != NULL; iter = iter->next) { | | | 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 | listObject = NULL; previous = NULL; @try { for (of_list_object_t *iter = _firstListObject; iter != NULL; iter = iter->next) { listObject = of_alloc(1, sizeof(of_list_object_t)); listObject->object = [iter->object retain]; listObject->next = NULL; listObject->previous = previous; if (copy->_firstListObject == NULL) copy->_firstListObject = listObject; if (previous != NULL) |
︙ | ︙ |