Latest compatible version of Classicube from the original GitHub repository (https://github.com/ClassiCube/ClassiCube) that can be compiled on Classicube for PowerMac PPC running Mac OS X 10.4.
This commit is contained in:
20
third_party/tinyalloc/tinyalloc.h
vendored
Normal file
20
third_party/tinyalloc/tinyalloc.h
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
bool ta_init(const void *base, const void *limit, const size_t heap_blocks, const size_t split_thresh, const size_t alignment);
|
||||
void *ta_alloc(size_t num);
|
||||
void *ta_calloc(size_t num, size_t size);
|
||||
bool ta_free(void *ptr);
|
||||
|
||||
size_t ta_num_free();
|
||||
size_t ta_num_used();
|
||||
size_t ta_num_fresh();
|
||||
bool ta_check();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user