From fe90355361430dc52f858845a821370db0c54c80 Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Mon, 8 May 2023 13:38:06 -0400 Subject: object: add object_array initializer helper function The object_array API has an OBJECT_ARRAY_INIT macro, but lacks a function to initialize an object_array at a given location in memory. Introduce `object_array_init()` to implement such a function. Signed-off-by: Taylor Blau 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 96e52e24fb..c335435f9c 100644 --- a/object.h +++ b/object.h @@ -57,6 +57,8 @@ struct object_array { #define OBJECT_ARRAY_INIT { 0 } +void object_array_init(struct object_array *array); + /* * object flag allocation: * revision.h: 0---------10 15 23------27 -- cgit v1.2.3