Differences From Artifact [2108c2f8fb]:
- File
src/runtime/hashtable.m
— part of check-in
[963db3089f]
at
2012-05-10 18:21:18
on branch runtime
— objc_hashtable_alloc() -> objc_hashtable_new().
For consistency. (user: js, size: 3940) [annotate] [blame] [check-ins using]
To Artifact [f9877d131a]:
- File src/runtime/hashtable.m — part of check-in [bc531024f5] at 2012-05-10 18:38:16 on branch runtime — Return objects as void* instead of const void*. (user: js, size: 3941) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
171 172 173 174 175 176 177 | insert(h, key, obj); return; } h->data[idx]->obj = obj; } | | | | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | insert(h, key, obj); return; } h->data[idx]->obj = obj; } void* objc_hashtable_get(struct objc_hashtable *h, const char *key) { int64_t idx = index_for_key(h, key); if (idx < 0) return NULL; return (void*)h->data[idx]->obj; } void objc_hashtable_free(struct objc_hashtable *h) { uint32_t i; |
︙ | ︙ |