diff options
| author | Michael Brown | 2005-05-12 18:38:07 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-05-12 18:38:07 +0200 |
| commit | 94d512b97957ee369ad15f4c0518ee0c18237ab4 (patch) | |
| tree | fcc00d3c19352c5a4abc24e707c1c9b47f2b3738 /src | |
| parent | Merged the unaligned and aligned heap APIs and simplified the code. (diff) | |
| download | ipxe-94d512b97957ee369ad15f4c0518ee0c18237ab4.tar.gz ipxe-94d512b97957ee369ad15f4c0518ee0c18237ab4.tar.xz ipxe-94d512b97957ee369ad15f4c0518ee0c18237ab4.zip | |
Added old allot/forget calls for backwards compatibility.
Diffstat (limited to 'src')
| -rw-r--r-- | src/include/heap.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/heap.h b/src/include/heap.h index 2b25a45e0..6ae3dd7f7 100644 --- a/src/include/heap.h +++ b/src/include/heap.h @@ -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 */ |
