| 485 | } |
| 486 | |
| 487 | static struct object_entry *new_object(struct object_id *oid) |
| 488 | { |
| 489 | struct object_entry *e; |
| 490 | |
| 491 | if (blocks->next_free == blocks->end) |
| 492 | alloc_objects(object_entry_alloc); |
| 493 | |
| 494 | e = blocks->next_free++; |
| 495 | oidcpy(&e->idx.oid, oid); |
| 496 | return e; |
| 497 | } |
| 498 | |
| 499 | static struct object_entry *find_object(struct object_id *oid) |
| 500 | { |
no test coverage detected