Differences From Artifact [120ac4ff9d]:
- File src/runtime/arc.m — part of check-in [d07c56a8bb] at 2017-04-02 01:06:35 on branch trunk — Add OF_CONSTRUCTOR() / OF_DESTRUCTOR() (user: js, size: 5477) [annotate] [blame] [check-ins using]
To Artifact [ae0f383c89]:
- File
src/runtime/arc.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 5479) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
142 143 144 145 146 147 148 | old->locations[old->count]; /* * We don't care if making it smaller * fails. */ if ((locations = realloc(old->locations, | | | 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | old->locations[old->count]; /* * We don't care if making it smaller * fails. */ if ((locations = realloc(old->locations, old->count * sizeof(id *))) != NULL) old->locations = locations; } break; } } } |
︙ | ︙ | |||
164 165 166 167 168 169 170 | OBJC_ERROR("Not enough memory to allocate weak " "reference!"); objc_hashtable_set(hashtable, value, ref); } if ((ref->locations = realloc(ref->locations, | | | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | OBJC_ERROR("Not enough memory to allocate weak " "reference!"); objc_hashtable_set(hashtable, value, ref); } if ((ref->locations = realloc(ref->locations, (ref->count + 1) * sizeof(id *))) == NULL) OBJC_ERROR("Not enough memory to allocate weak " "reference!") ref->locations[ref->count++] = object; } else value = nil; |
︙ | ︙ |