From 2c43d65c7db47f2b682b8924669b8e6aef22ec0a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 14 Jan 2021 19:43:30 -0800 Subject: Made all the heap garbage collection code optional, which saves some time and memory. --- types.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'types.h') 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; -- cgit v1.2.3