diff options
author | Bad Diode <bd@badd10de.dev> | 2021-10-19 17:29:30 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-10-19 17:29:30 +0200 |
commit | 56ddeab2c7d32b2cd8e1e0435d3f006d7985cbe3 (patch) | |
tree | 9b3fafd2911b6e9d6e5226ba815e7d0ee32a0e4b /src/bootstrap/gc.h | |
parent | f7b5da260fc7b6b73b5ed6c87d3593de372db6ad (diff) | |
download | bdl-56ddeab2c7d32b2cd8e1e0435d3f006d7985cbe3.tar.gz bdl-56ddeab2c7d32b2cd8e1e0435d3f006d7985cbe3.zip |
Change gc.roots to use darray.h
Diffstat (limited to 'src/bootstrap/gc.h')
-rw-r--r-- | src/bootstrap/gc.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/bootstrap/gc.h b/src/bootstrap/gc.h index 038c820..da53a21 100644 --- a/src/bootstrap/gc.h +++ b/src/bootstrap/gc.h | |||
@@ -4,13 +4,6 @@ | |||
4 | #include "objects.h" | 4 | #include "objects.h" |
5 | #include "environment.h" | 5 | #include "environment.h" |
6 | 6 | ||
7 | // Stack of root nodes. | ||
8 | typedef struct RootNodes { | ||
9 | Object **buf; | ||
10 | size_t size; | ||
11 | size_t cap; | ||
12 | } RootNodes; | ||
13 | |||
14 | // Stack of active environments. | 7 | // Stack of active environments. |
15 | typedef struct ActiveEnvs { | 8 | typedef struct ActiveEnvs { |
16 | Environment **buf; | 9 | Environment **buf; |
@@ -32,7 +25,7 @@ typedef struct FreeList { | |||
32 | } FreeList; | 25 | } FreeList; |
33 | 26 | ||
34 | typedef struct GC { | 27 | typedef struct GC { |
35 | RootNodes roots; | 28 | Object **roots; |
36 | Environments envs; | 29 | Environments envs; |
37 | Object *objects; | 30 | Object *objects; |
38 | size_t obj_cap; | 31 | size_t obj_cap; |