From 9e587a06d88b01d21ccc7a1cb25dc156b40efcab Mon Sep 17 00:00:00 2001 From: eunhhu Date: Sun, 4 Oct 2026 13:58:19 +0100 Subject: Count in loops that nest, break, and keep an event's own lists, every event bounded (018 stage 2) --- core/module-list.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/module-list.c') diff --git a/core/module-list.c b/core/module-list.c index 1f3b900..3e643ce 100644 --- a/core/module-list.c +++ b/core/module-list.c @@ -1323,6 +1323,8 @@ void pure_undo_commit(PureUndo *undo) { undo->count = undo->cell_count = 0; } +size_t pure_undo_size(const PureUndo *undo) { return undo->count * sizeof(Entry) + undo->cell_count * sizeof(PureCell); } + void pure_undo_free(PureUndo *undo) { free(undo->entries); free(undo->cells); -- cgit v1.2.3