shada: Refactor history merger to use statically sized 2linked list

Also fixes the error: when writing shada files existing history items may be
freed.

Warning: valgrind reports some memory leaks.
This commit is contained in:
ZyX
2015-07-10 21:07:49 +03:00
parent 875d287d4b
commit 0018b4f579
2 changed files with 211 additions and 30 deletions

View File

@@ -597,7 +597,7 @@ static void init_type_metadata(Dictionary *metadata)
}
/// Creates a deep clone of an object
static Object copy_object(Object obj)
Object copy_object(Object obj)
{
switch (obj.type) {
case kObjectTypeNil: