static int cached_object_nr, cached_object_alloc;
static struct cached_object empty_tree = {
static int cached_object_nr, cached_object_alloc;
static struct cached_object empty_tree = {
{
int i;
struct cached_object *co = cached_objects;
for (i = 0; i < cached_object_nr; i++, co++) {
{
int i;
struct cached_object *co = cached_objects;
for (i = 0; i < cached_object_nr; i++, co++) {
struct cached_object *co;
hash_object_file(buf, len, type_name(type), oid);
struct cached_object *co;
hash_object_file(buf, len, type_name(type), oid);
return 0;
ALLOC_GROW(cached_objects, cached_object_nr + 1, cached_object_alloc);
co = &cached_objects[cached_object_nr++];
return 0;
ALLOC_GROW(cached_objects, cached_object_nr + 1, cached_object_alloc);
co = &cached_objects[cached_object_nr++];