From cf97068884083c7d1d1bc95fb3099b113d7e8dad Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Sun, 21 Aug 2016 12:12:59 +0200 Subject: Adding new functions to API - Encode a dyntree object hirarchy into json - Decode a json string to a dyntree object hirarchy - Split a tree in two (no longer related) sub-trees - Merge two non-related subtrees together --- lib/dyn_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dyn_tree.c') diff --git a/lib/dyn_tree.c b/lib/dyn_tree.c index 095d379..6cb456b 100644 --- a/lib/dyn_tree.c +++ b/lib/dyn_tree.c @@ -9,7 +9,6 @@ #define RDB_REC_DEF_SIZE 2 #define RDB_REC_MULTIPLY 2 -#define REAL_STRLEN(str) (strlen(str) + 1) dt_err dtree_malloc(dtree *(*data)) { @@ -42,6 +41,7 @@ dt_err dtree_resettype(dtree *data) /* Set the data type to unset */ data->type = UNSET; + data->encset = DYNTREE_ENCODE_NONE; data->size = 0; data->used = 0; -- cgit v1.2.3