ded0b83151
FossilOrigin-Name: 8766275cac121ced2142c9dee80f2c21a0337e9eb65501961807aba8fca0f252
40 lines
844 B
C
40 lines
844 B
C
/*
|
|
* Treebird - Lightweight frontend for Pleroma
|
|
*
|
|
* Licensed under the BSD 3-Clause License
|
|
*/
|
|
|
|
/* Everything seen here is info for the super curious, and does not really
|
|
have anything to do with Treebird :-) */
|
|
|
|
#ifndef TREEBIRD_MEMSTUF_H
|
|
#define TREEBIRD_MEMSTUF_H
|
|
#include <stdlib.h>
|
|
|
|
extern int tb_memory_allocated_est;
|
|
extern int tb_memory_allocated;
|
|
extern int tb_memory_free;
|
|
|
|
extern int tb_memory_times_allocated;
|
|
extern int tb_memory_times_freed;
|
|
|
|
#if 0
|
|
#define tb_malloc malloc
|
|
#define tb_calloc calloc
|
|
#define tb_realloc realloc
|
|
#define tb_free free
|
|
#endif // Nothing
|
|
|
|
void* tb_malloc(size_t size);
|
|
void* tb_calloc(size_t nmemb, size_t size);
|
|
void* tb_realloc(void* ptr, size_t size);
|
|
void tb_free(void* ptr);
|
|
|
|
#ifdef __GLIBC__
|
|
void propagate_memory();
|
|
#else
|
|
#define propagate_memory() ;
|
|
#endif
|
|
|
|
#endif // TREEBIRD_MEMSTUF_H
|