Debian Codegraph @

terps/alan3/memory.h

raw symbols SCIP
1 #ifndef MEMORY_H_
2 #define MEMORY_H_
3 /*----------------------------------------------------------------------*\
4
5 The Amachine memory
6
7 \*----------------------------------------------------------------------*/
8
9 /* IMPORTS */
10 #include "sysdep.h"
11 #include "acode.h"
12
13 #ifdef DMALLOC
14 #include <dmalloc.h>
15 #endif
16
17
18 /* CONSTANTS */
19
20
21 /* TYPES */
22
23
24 /* DATA */
25 extern Aword *memory;
26 extern ACodeHeader *header;
27 extern int memTop;
28
29
30 /* FUNCTIONS */
31 extern void *allocate(unsigned long lengthInBytes);
32 extern void *duplicate(void *original, unsigned long len);
33 extern void deallocate(void *memory);
34
35 extern void resetPointerMap(void);
36 extern void *fromAptr(Aptr aptr);
37 extern Aptr toAptr(void *ptr);
38
39 #endif /* MEMORY_H_ */