Remove UPDATE opertor as there are no default operators that define it (and no one uses it as it is poorly documented). Replace by SET for RB-THREE. Replace by ADD for the splice function of dictionary

This commit is contained in:
Patrick Pelissier committed 2021-10-02 13:06:30 +02:00
1 parent e19c9d31a8
commit 7a08ddce9e
5 files changed
+8 -23

No files matched your search

+2 -2
View File
@@ -991,7 +991,7 @@
M_C(name, _clean)(d2); \
} \
, \
M_IF_METHOD(UPDATE, value_oplist)( \
M_IF_METHOD(ADD, value_oplist)( \
static inline void \
M_C(name, _splice)(dict_t d1, dict_t d2) \
{ \
@@ -1005,7 +1005,7 @@
if (ptr == NULL) { \
M_C(name, _set_at)(d1, item->key, item->value); \
} else { \
M_CALL_UPDATE(value_oplist, *ptr, item->value); \
M_CALL_ADD(value_oplist, *ptr, *ptr, item->value); \
} \
} \
M_C(name, _clean)(d2); \