diff options
| author | eunhhu <[email protected]> | 2026-10-04 13:58:19 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-10-04 13:58:19 +0100 |
| commit | 9e587a06d88b01d21ccc7a1cb25dc156b40efcab (patch) | |
| tree | 7f65478fa708c5908dc13e36aab524b170296358 /core/module-list.c | |
| parent | 09a34871f97c9917735b4dfd40cbad22ccf9b001 (diff) | |
| download | pure-9e587a06d88b01d21ccc7a1cb25dc156b40efcab.tar.gz pure-9e587a06d88b01d21ccc7a1cb25dc156b40efcab.zip | |
Count in loops that nest, break, and keep an event's own lists, every event bounded (018 stage 2)
Diffstat (limited to 'core/module-list.c')
| -rw-r--r-- | core/module-list.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
