fast-import: introduce mem_pool type
authorJameson Miller <jamill@microsoft.com>
Mon, 26 Mar 2018 17:03:50 +0000 (13:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Mar 2018 15:50:54 +0000 (08:50 -0700)
Introduce the mem_pool type which encapsulates all the information
necessary to manage a pool of memory. This change moves the existing
variables in fast-import used to support the global memory pool to use
this structure.

These changes allow for the multiple instances of a memory pool to
exist and be reused outside of fast-import. In a future commit the
mem_pool type will be moved to its own file.

Signed-off-by: Jameson Miller <jamill@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found