From 3cd474599f1ede41863c523ddf76c94941b08164 Mon Sep 17 00:00:00 2001 From: Thiago Farina Date: Sat, 28 Aug 2010 23:04:17 -0300 Subject: object.h: Add OBJECT_ARRAY_INIT macro and make use of it. Signed-off-by: Thiago Farina Signed-off-by: Junio C Hamano --- object.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'object.h') diff --git a/object.h b/object.h index 82877c831c..4d1d61546f 100644 --- a/object.h +++ b/object.h @@ -21,6 +21,8 @@ struct object_array { } *objects; }; +#define OBJECT_ARRAY_INIT { 0, 0, NULL } + #define TYPE_BITS 3 #define FLAG_BITS 27 -- cgit v1.2.3 From 0564d937bfac6729dac8ea5a2b15de52fcd4b8ec Mon Sep 17 00:00:00 2001 From: Jakob Pfender Date: Mon, 14 Mar 2011 17:23:52 +0100 Subject: object.h: Remove obsolete struct object_refs 7914053 (Remove unused object-ref code, 2008-02-25) removed all uses of the structure from the code, but forgot to remove the type definition itself. Signed-off-by: Jakob Pfender Signed-off-by: Junio C Hamano --- object.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'object.h') diff --git a/object.h b/object.h index 4d1d61546f..b6618d92bf 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; -- cgit v1.2.3