From c200dd832789afa298ba45e0b9efdec96c0e92cc Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 5 Dec 2021 11:55:10 -0800 Subject: Chore: simplified allocator interfaces. I was never happy with the allocator/reallocator split. It was originally designed to accomodate things like arenas that don't free. But the majority of the time you don't care about this. --- src/base/fmt/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/fmt/open.c') diff --git a/src/base/fmt/open.c b/src/base/fmt/open.c index b6829bb..2020a2a 100644 --- a/src/base/fmt/open.c +++ b/src/base/fmt/open.c @@ -27,7 +27,7 @@ fmt·open(int fd, int len, char *buf, fmt·State *io) io->n = 0; /* no heap needed */ io->heap = nil; - io->mem = (mem·Reallocator){ 0 }; + io->mem = (mem·Allocator){ 0 }; fmt·setlocale(io, nil, nil, nil); -- cgit v1.2.1