alloc_nr, ALLOC_GROW, and ALLOC_GROW_BY are commonly used macros for dynamic array allocation. Moving these macros to git-compat-util.h with the other alloc macros focuses alloc.[ch] to allocation for Git objects and additionally allows us to remove inclusions to alloc.h from files that solely used the above macros. Signed-off-by: Calvin Wan <calvinwan@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
|---|---|---|
| .. | ||
| tr2_cfg.c | ||
| tr2_cfg.h | ||
| tr2_cmd_name.c | ||
| tr2_cmd_name.h | ||
| tr2_ctr.c | ||
| tr2_ctr.h | ||
| tr2_dst.c | ||
| tr2_dst.h | ||
| tr2_sid.c | ||
| tr2_sid.h | ||
| tr2_sysenv.c | ||
| tr2_sysenv.h | ||
| tr2_tbuf.c | ||
| tr2_tbuf.h | ||
| tr2_tgt.h | ||
| tr2_tgt_event.c | ||
| tr2_tgt_normal.c | ||
| tr2_tgt_perf.c | ||
| tr2_tls.c | ||
| tr2_tls.h | ||
| tr2_tmr.c | ||
| tr2_tmr.h | ||