aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-14 19:43:30 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-14 19:43:30 -0800
commit2c43d65c7db47f2b682b8924669b8e6aef22ec0a (patch)
tree54eef343d568fa5272b9114fab2d40c197076ae8 /types.h
parent3cd61e3abc79a80d38afa9c633c59585aeb0311a (diff)
Made all the heap garbage collection code optional, which saves some
time and memory.
Diffstat (limited to 'types.h')
-rw-r--r--types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/types.h b/types.h
index 30a0e9e..65dcb5a 100644
--- a/types.h
+++ b/types.h
@@ -94,7 +94,10 @@ typedef struct match_s {
struct match_s *child, *nextsibling;
vm_op_t *op;
// Intrusive linked list nodes for garbage collection:
- struct match_s **atme, *next;
+ struct match_s *next;
+#ifdef DEBUG_HEAP
+ struct match_s **atme;
+#endif
int refcount;
} match_t;