Add a recursive object merge strategy and bind it to *

This commit adds a jv_object_merge_recursive function, that performs
recursive object merging, and binds it to multiply when applied to
two objects.

Added docs and tests.

Closes #320
This commit is contained in:
Filippo Valsorda committed 2014-03-08 03:56:05 +01:00
1 parent 219bb9ecb7
commit 2aa8a43c5b
5 files changed
+44 -1

No files matched your search

+1
View File
@@ -104,6 +104,7 @@ jv jv_object_set(jv object, jv key, jv value);
jv jv_object_delete(jv object, jv key);
int jv_object_length(jv object);
jv jv_object_merge(jv, jv);
jv jv_object_merge_recursive(jv, jv);
int jv_object_iter(jv);
int jv_object_iter_next(jv, int);