Fix MODE=tiny build

This commit is contained in:
Justine Tunney 2024-12-17 01:36:29 -08:00
parent c8c81af0c7
commit 906bd06a5a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
5 changed files with 10 additions and 3 deletions

View file

@ -19,6 +19,8 @@
#include "libc/mem/mem.h"
#include "third_party/dlmalloc/dlmalloc.h"
__static_yoink("free");
/**
* Allocates n * itemsize bytes, initialized to zero.
*
@ -31,4 +33,3 @@
void *calloc(size_t n, size_t itemsize) {
return dlcalloc(n, itemsize);
}

View file

@ -19,6 +19,8 @@
#include "libc/mem/mem.h"
#include "third_party/dlmalloc/dlmalloc.h"
__static_yoink("free");
/**
* Allocates uninitialized memory.
*

View file

@ -19,6 +19,8 @@
#include "libc/mem/mem.h"
#include "third_party/dlmalloc/dlmalloc.h"
__static_yoink("free");
/**
* Allocates aligned memory.
*
@ -35,4 +37,3 @@
void *memalign(size_t align, size_t bytes) {
return dlmemalign(align, bytes);
}

View file

@ -19,6 +19,8 @@
#include "libc/mem/mem.h"
#include "third_party/dlmalloc/dlmalloc.h"
__static_yoink("free");
/**
* Allocates / resizes / frees memory, e.g.
*
@ -60,4 +62,3 @@
void *realloc(void *p, size_t n) {
return dlrealloc(p, n);
}

View file

@ -16,6 +16,8 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*/
#include "libc/intrin/weaken.h"
#include "libc/mem/mem.h"
#include "libc/stdio/internal.h"
#include "libc/testlib/testlib.h"