25 lines
No EOL
551 B
C
25 lines
No EOL
551 B
C
// Copyright: Durand Miller <clutter@djm.co.za>
|
|
#ifndef LIBALLOC_H
|
|
#define LIBALLOC_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <sys/log.h>
|
|
|
|
#define PREFIX(func) func
|
|
|
|
#ifdef _DEBUG
|
|
void liballoc_dump();
|
|
#endif // _DEBUG
|
|
|
|
extern int liballoc_lock();
|
|
extern int liballoc_unlock();
|
|
extern void *liballoc_alloc(size_t);
|
|
extern int liballoc_free(void *, size_t);
|
|
|
|
extern void *PREFIX(malloc)(size_t);
|
|
extern void *PREFIX(realloc)(void *, size_t);
|
|
extern void *PREFIX(calloc)(size_t, size_t);
|
|
extern void PREFIX(free)(void *);
|
|
|
|
#endif // LIBALLOC_H
|