goat3d
diff libs/openctm/liblzma/Alloc.h @ 14:188c697b3b49
- added a document describing the goat3d file format chunk hierarchy
- started an alternative XML-based file format
- added the openctm library
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 26 Sep 2013 04:47:05 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/openctm/liblzma/Alloc.h Thu Sep 26 04:47:05 2013 +0300 1.3 @@ -0,0 +1,34 @@ 1.4 +/* Alloc.h -- Memory allocation functions 1.5 +2008-03-13 1.6 +Igor Pavlov 1.7 +Public domain */ 1.8 + 1.9 +#ifndef __COMMON_ALLOC_H 1.10 +#define __COMMON_ALLOC_H 1.11 + 1.12 +#include <stddef.h> 1.13 + 1.14 +#include "NameMangle.h" 1.15 + 1.16 +void *MyAlloc(size_t size); 1.17 +void MyFree(void *address); 1.18 + 1.19 +#ifdef _WIN32 1.20 + 1.21 +void SetLargePageSize(); 1.22 + 1.23 +void *MidAlloc(size_t size); 1.24 +void MidFree(void *address); 1.25 +void *BigAlloc(size_t size); 1.26 +void BigFree(void *address); 1.27 + 1.28 +#else 1.29 + 1.30 +#define MidAlloc(size) MyAlloc(size) 1.31 +#define MidFree(address) MyFree(address) 1.32 +#define BigAlloc(size) MyAlloc(size) 1.33 +#define BigFree(address) MyFree(address) 1.34 + 1.35 +#endif 1.36 + 1.37 +#endif