PPC NCG: Remove Darwin support
[ghc.git] / rts / Arena.h
1 /* -----------------------------------------------------------------------------
2 (c) The University of Glasgow 2001
3
4 Arena allocation interface.
5 -------------------------------------------------------------------------- */
6
7 #pragma once
8
9 // Abstract type of arenas
10 typedef struct _Arena Arena;
11
12 // Start a new arena
13 RTS_PRIVATE Arena * newArena ( void );
14
15 // Allocate memory in an arena
16 RTS_PRIVATE void * arenaAlloc ( Arena *, size_t );
17
18 // Free an entire arena
19 RTS_PRIVATE void arenaFree ( Arena * );
20
21 // For internal use only:
22 RTS_PRIVATE unsigned long arenaBlocks( void );