From 45d7aff47545f52136487fbb5b06cdcf716cbe9f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 13 Jan 2021 01:48:36 -0800 Subject: Major overhaul of some of the memory tracking code, as well as some cleanup of the compilation code. --- types.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'types.h') diff --git a/types.h b/types.h index 52b17e5..ad7781b 100644 --- a/types.h +++ b/types.h @@ -98,5 +98,14 @@ typedef struct def_s { struct def_s *next; } def_t; +// +// Structure used for tracking allocated ops, which must be freed when the file +// is freed. +// +typedef struct allocated_op_s { + struct allocated_op_s *next; + vm_op_t op; +} allocated_op_t; + #endif // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 -- cgit v1.2.3