move oldmalloc to its own directory under src/malloc
commit384c0131ccda2656dec23a0416ad3f14101151a7
authorRich Felker <dalias@aerifal.cx>
Wed, 3 Jun 2020 23:22:12 +0000 (3 19:22 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 3 Jun 2020 23:23:02 +0000 (3 19:23 -0400)
tree0561f403dafc58c8e29de0f0105fc9d69e095550
parenteaa0f2496700c238e7e3c112d36445f3aee06ff1
move oldmalloc to its own directory under src/malloc

this sets the stage for replacement, and makes it practical to keep
oldmalloc around as a build option for a while if that ends up being
useful.

only the files which are actually part of the implementation are
moved. memalign and posix_memalign are entirely generic. in theory
calloc could be pulled out too, but it's useful to have it tied to the
implementation so as to optimize out unnecessary memset when
implementation details make it possible to know the memory is already
clear.
Makefile
src/malloc/oldmalloc/aligned_alloc.c [moved from src/malloc/aligned_alloc.c with 100% similarity]
src/malloc/oldmalloc/malloc.c [moved from src/malloc/malloc.c with 100% similarity]
src/malloc/oldmalloc/malloc_impl.h [moved from src/malloc/malloc_impl.h with 100% similarity]
src/malloc/oldmalloc/malloc_usable_size.c [moved from src/malloc/malloc_usable_size.c with 100% similarity]