From fcc3d4e64fddf8d396fbc9e8b291708bf5dfb277 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Thu, 7 Feb 2019 19:32:31 -0800 Subject: [PATCH] About to scrap old undo system --- 4ed_undo.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/4ed_undo.h b/4ed_undo.h index eb7a6fc6..661cd148 100644 --- a/4ed_undo.h +++ b/4ed_undo.h @@ -40,18 +40,20 @@ struct Edit_Step{ struct Edit_Stack{ u8 *strings; - i32 size, max; - + i32 size; + i32 max; Edit_Step *edits; - i32 edit_count, edit_max; + i32 edit_count; + i32 edit_max; }; struct Small_Edit_Stack{ u8 *strings; - i32 size, max; - + i32 size; + i32 max; Buffer_Edit *edits; - i32 edit_count, edit_max; + i32 edit_count; + i32 edit_max; }; struct Undo_Data{ @@ -60,7 +62,8 @@ struct Undo_Data{ Edit_Stack history; Small_Edit_Stack children; - i32 history_block_count, history_head_block; + i32 history_block_count; + i32 history_head_block; i32 edit_history_cursor; b32 current_block_normal; };