From 67c5c2d2f02e0c90e13b4463b2f1aac458767483 Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Thu, 9 Jul 2009 13:02:45 -0400 Subject: COLLECTION Adding flat traversal & copy The collection is hearachical. The flattening of the collection was not implemented before both for traversal and copying. This patch introduces functionality to traverse or iterate through collection as flat set and also copy collection into another flattening it and automatically resolving conflicts. Also imptoved tracability and fixed memory leak in unbind iterator code. --- collection/collection_priv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'collection/collection_priv.h') diff --git a/collection/collection_priv.h b/collection/collection_priv.h index fc11a1f..699479a 100644 --- a/collection/collection_priv.h +++ b/collection/collection_priv.h @@ -57,6 +57,7 @@ struct collection_iterator { struct collection_item **stack; unsigned stack_size; unsigned stack_depth; + unsigned item_level; int flags; struct collection_item *end_item; }; -- cgit