1 /* -----------------------------------------------------------------------------
2 $Id: Arena.h,v 1.1 2001/10/18 14:41:01 simonmar Exp $
3 (c) The University of Glasgow 2001
5 Arena allocation interface.
6 -------------------------------------------------------------------------- */
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 );