Uniformization with list _remove operator.

This commit is contained in:
Patrick Pelissier committed 2017-05-22 21:20:16 +02:00
1 parent 4f7755bc95
commit d345284faf
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -602,9 +602,10 @@
} \
\
static inline void \
M_C3(array_,name, _remove)(array_it_t it) \
M_C3(array_,name, _remove)(array_t a, array_it_t it) \
{ \
M_C3(array_, name, _pop_at)(NULL, it->array, it->index); \
assert (a == it->array); \
M_C3(array_, name, _pop_at)(NULL, a, it->index); \
} \
\
M_IF_METHOD(CMP, oplist) \
+1 -1
View File
@@ -262,7 +262,7 @@ static void test_d(void)
}
array_it_uint_t it;
array_uint_it(it, a1);
array_uint_remove (it);
array_uint_remove (a1, it);
assert (array_uint_size(a1) == 299);
array_uint_it_last (it, a1);