diff options
author | Robert de Bath <rdebath@poboxes.com> | 2003-01-29 21:07:56 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:48:48 +0200 |
commit | ded00c0d1c0dc38e63b2c48ff8cbb12c1b60c70f (patch) | |
tree | d453e3353975e51525ef0a9b08e751ebc5ff9c29 /libc/include/malloc.h | |
parent | b5790e52270b149e92531a8eb0cd521ff2854dff (diff) | |
download | dev86-ded00c0d1c0dc38e63b2c48ff8cbb12c1b60c70f.tar.gz |
Import Dev86src-0.16.11.tar.gzv0.16.11
Diffstat (limited to 'libc/include/malloc.h')
-rw-r--r-- | libc/include/malloc.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libc/include/malloc.h b/libc/include/malloc.h deleted file mode 100644 index e8fdb0a..0000000 --- a/libc/include/malloc.h +++ /dev/null @@ -1,30 +0,0 @@ - -#ifndef __MALLOC_H -#define __MALLOC_H -#include <features.h> -#include <sys/types.h> - -/* - * Mini malloc allows you to use a less efficient but smaller malloc the - * cost is about 100 bytes of code in free but malloc (700bytes) doesn't - * have to be linked. Unfortunatly memory can only be reused if everything - * above it has been freed - * - */ - -extern void free __P((void *)); -extern void *malloc __P((size_t)); -extern void *realloc __P((void *, size_t)); -extern void *alloca __P((size_t)); - -extern void *(*__alloca_alloc) __P((size_t)); - -#ifdef __LIBC__ -#define __MINI_MALLOC__ -#endif - -#ifdef __MINI_MALLOC__ -#define malloc(x) ((*__alloca_alloc)(x)) -#endif - -#endif |