2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 17:41:55 +00:00

Added old allot/forget calls for backwards compatibility.

This commit is contained in:
Michael Brown 2005-05-12 16:38:07 +00:00
parent eff4fa5a04
commit 94d512b979

View File

@ -59,4 +59,24 @@ static inline void * erealloc ( void *ptr, size_t size, unsigned int align ) {
return emalloc ( size, align );
}
/*
* Legacy API calls
*
*/
static inline void * allot ( size_t size ) {
return emalloc ( size, sizeof ( void * ) );
}
static inline void forget ( void *ptr ) {
efree ( ptr );
}
static inline void * allot2 ( size_t size, uint32_t mask ) {
return emalloc ( size, mask + 1 );
}
static inline void forget2 ( void *ptr ) {
efree ( ptr );
}
#endif /* HEAP_H */