Update _insert functions to update

iterators as per new specification.
This commit is contained in:
Patrick Pelissier committed 2020-07-19 00:55:35 +02:00
1 parent 8c1eb1fcb5
commit 784c42d850
3 files changed
+4

No files matched your search

+1
View File
@@ -755,6 +755,7 @@
{ \
assert (it != NULL && a == it->array); \
M_C(name, _push_at)(a, it->index + 1, x); \
it->index ++; \
} \
, /* End of INIT_SET */ ) \
\
+1
View File
@@ -481,6 +481,7 @@ typedef struct ilist_head_s {
M_CALL_INIT_SET(oplist, *p, x); \
type *obj = M_C(name, _ref)(it); \
M_C(name, _push_after)(obj, p); \
it->current = p; \
(void) list; \
ILISTI_CONTRACT(name, list); \
} \
+2
View File
@@ -472,6 +472,8 @@
next->next = current->next; \
current->next = next; \
} \
/* Update insertion_point to this element */ \
insertion_point->current = next; \
LISTI_CONTRACT(list); \
} \
\