commit-slab: support shared commit-slab

define_shared_commit_slab() could be used in a header file to define a
commit-slab. One of these C files must include commit-slab-impl.h and
"call" implement_shared_commit_slab().

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy
2018-05-19 07:28:18 +02:00
committed by Junio C Hamano
parent a9f1f1f9f8
commit 878f0bb819
3 changed files with 28 additions and 9 deletions

View File

@ -46,6 +46,6 @@
#define define_commit_slab(slabname, elemtype) \
declare_commit_slab(slabname, elemtype); \
implement_commit_slab(slabname, elemtype)
implement_static_commit_slab(slabname, elemtype)
#endif /* COMMIT_SLAB_H */