diff options
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); |
