X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=object.h;h=b6618d92bf04d549350d83b6237770c48734686f;hb=09b90fb3c065ac5ac2ad051596b036131ecedbd5;hp=89dd0c47a6c86fd3a63370c84e574e799830e1d3;hpb=77f143bf3e218857ec8e5244d7e862e8e0c1a041;p=git.git diff --git a/object.h b/object.h index 89dd0c47a..b6618d92b 100644 --- a/object.h +++ b/object.h @@ -6,11 +6,6 @@ struct object_list { struct object_list *next; }; -struct object_refs { - unsigned count; - struct object *ref[FLEX_ARRAY]; /* more */ -}; - struct object_array { unsigned int nr; unsigned int alloc; @@ -21,6 +16,8 @@ struct object_array { } *objects; }; +#define OBJECT_ARRAY_INIT { 0, 0, NULL } + #define TYPE_BITS 3 #define FLAG_BITS 27 @@ -72,11 +69,6 @@ struct object *lookup_unknown_object(const unsigned char *sha1); struct object_list *object_list_insert(struct object *item, struct object_list **list_p); -void object_list_append(struct object *item, - struct object_list **list_p); - -unsigned object_list_length(struct object_list *list); - int object_list_contains(struct object_list *list, struct object *obj); /* Object array handling .. */