alloc: add repository argument to alloc_report
This is a small mechanical change; it doesn't change the implementation to handle repositories other than the_repository yet. Use a macro to catch callers passing a repository other than the_repository at compile time. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
13e3fdcb76
commit
17bfe87369
3
cache.h
3
cache.h
@ -1774,7 +1774,8 @@ extern void *alloc_commit_node_the_repository(void);
|
||||
extern void *alloc_tag_node_the_repository(void);
|
||||
#define alloc_object_node(r) alloc_object_node_##r()
|
||||
extern void *alloc_object_node_the_repository(void);
|
||||
extern void alloc_report(void);
|
||||
#define alloc_report(r) alloc_report_##r()
|
||||
extern void alloc_report_the_repository(void);
|
||||
extern unsigned int alloc_commit_index(void);
|
||||
|
||||
/* pkt-line.c */
|
||||
|
Reference in New Issue
Block a user