| 472 | #endif |
| 473 | |
| 474 | static void alloc_objects(unsigned int cnt) |
| 475 | { |
| 476 | struct object_entry_pool *b; |
| 477 | |
| 478 | b = xmalloc(sizeof(struct object_entry_pool) |
| 479 | + cnt * sizeof(struct object_entry)); |
| 480 | b->next_pool = blocks; |
| 481 | b->next_free = b->entries; |
| 482 | b->end = b->entries + cnt; |
| 483 | blocks = b; |
| 484 | alloc_count += cnt; |
| 485 | } |
| 486 | |
| 487 | static struct object_entry *new_object(struct object_id *oid) |
| 488 | { |
no test coverage detected