]> git.ipfire.org Git - thirdparty/git.git/commit - object.h
object: add object_array initializer helper function
authorTaylor Blau <me@ttaylorr.com>
Mon, 8 May 2023 17:38:06 +0000 (13:38 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 May 2023 19:05:55 +0000 (12:05 -0700)
commitfe90355361430dc52f858845a821370db0c54c80
tree0305ffe40554f02b6ed4316b1aa1dc2b2894141a
parentfc23c397c7088a397a693bc5cb483a5894f59f53
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 <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object.c
object.h