author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 14 Sep 2007 07:31:18 +0000 (03:31 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 Sep 2007 10:22:30 +0000 (03:22 -0700) | ||
commit | 7a2bff45937a60d846abf3ccb42015539aedcb40 | |
tree | 05e1b2a563b3947195b1cc6c522790af18272cbd | tree | snapshot |
parent | f1ae391e17be638a14c7505598b73430dbf328f1 | commit | diff |
Replace custom memory growth allocator with ALLOC_GROW
The ALLOC_GROW macro is a shorter way to implement an array that
grows upon demand as additional items are added to it. We have
mostly standardized upon its use within git and transport.c is
not an exception.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The ALLOC_GROW macro is a shorter way to implement an array that
grows upon demand as additional items are added to it. We have
mostly standardized upon its use within git and transport.c is
not an exception.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c | diff | blob | history |