-
Notifications
You must be signed in to change notification settings - Fork 0
/
VdmGC.h
44 lines (30 loc) · 917 Bytes
/
VdmGC.h
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
34
35
36
37
38
39
40
41
42
43
44
/* VERSION: For the version of VDM2C used to generate this project, refer to one of the generated files. */
#ifndef VDMGC_H_
#define VDMGC_H_
#include "Vdm.h"
#include "VdmUnpackString.h"
struct alloc_list_node
{
TVP loc;
struct alloc_list_node *next;
};
void vdm_gc_init();
void vdm_gc();
void vdm_gc_shutdown();
void add_allocd_mem_node(TVP l);
void remove_allocd_mem_node(struct alloc_list_node *node);
void remove_allocd_mem_node_by_location(TVP loc);
extern struct alloc_list_node *allocd_mem_head;
extern struct alloc_list_node *allocd_mem_current;
/* ==== Gargabe collected versions ====== */
TVP newTypeValueGC(vdmtype type, TypedValueType value);
TVP vdmCloneGC(TVP x);
TVP newIntGC(int x);
TVP newBoolGC(bool x);
TVP newRealGC(double x);
TVP newCharGC(char x);
TVP newQuoteGC(unsigned int x);
TVP newTokenGC(TVP x);
TVP newUnknownGC();
TVP vdmEqualsGC(TVP a, TVP b);
#endif /*VDMGC_H_*/