X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=object.h;h=6accda33d8c8d6b8ef33a4df50bf350d9f088dc6;hb=34143b2639625f29edf7b1c0c5af58e545845911;hp=5af530da5decf0abbfafeee041143c0acd0d600a;hpb=f10e0e0b18c8e2e69535e7380fb3c1f9b097cfda;p=git.git diff --git a/object.h b/object.h index 5af530da..6accda33 100644 --- a/object.h +++ b/object.h @@ -17,6 +17,7 @@ struct object { void *util; }; +extern int track_object_refs; extern int nr_objs; extern struct object **objs; @@ -41,6 +42,9 @@ void mark_reachable(struct object *obj, unsigned int mask); 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);