blob: ac62c6cf3811340d00decaea0178db60bc1e4cd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* -----------------------------------------------------------------------------
(c) The University of Glasgow 2001
Arena allocation interface.
-------------------------------------------------------------------------- */
#ifndef ARENA_H
#define ARENA_H
// Abstract type of arenas
typedef struct _Arena Arena;
// Start a new arena
RTS_PRIVATE Arena * newArena ( void );
// Allocate memory in an arena
RTS_PRIVATE void * arenaAlloc ( Arena *, size_t );
// Free an entire arena
RTS_PRIVATE void arenaFree ( Arena * );
// For internal use only:
RTS_PRIVATE unsigned long arenaBlocks( void );
#endif /* ARENA_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
|