1 /* -----------------------------------------------------------------------------
2 (c) The University of Glasgow 2001
4 Arena allocation interface.
5 -------------------------------------------------------------------------- */
10 // Abstract type of arenas
11 typedef struct _Arena Arena;
14 extern Arena * newArena ( void );
16 // Allocate memory in an arena
17 extern void * arenaAlloc ( Arena *, size_t );
19 // Free an entire arena
20 extern void arenaFree ( Arena * );
22 // For internal use only:
23 extern unsigned long arenaBlocks( void );