Rename BUFFER, I-LIST, PRIOQUEUE & SHARED _clean in _reset to avoid confusing _clean & _clear functions. See #97

This commit is contained in:
Patrick Pelissier committed 2021-10-28 18:08:07 +02:00
1 parent 826d251ffe
commit 836d892832
9 files changed
+51 -24

No files matched your search

+4 -4
View File
@@ -59,14 +59,14 @@ static void test1(void)
shared_int_init_set(p2, p1);
assert(f(p2) == 12);
shared_int_clean(p1);
shared_int_reset(p1);
assert(shared_int_NULL_p(p1));
assert(!shared_int_NULL_p(p2));
assert(f(p2) == 12);
shared_int_set(p1, p2);
shared_int_clean(p2);
shared_int_reset(p2);
assert(!shared_int_NULL_p(p1));
assert(shared_int_NULL_p(p2));
assert(f(p1) == 12);
@@ -75,8 +75,8 @@ static void test1(void)
assert(!shared_int_NULL_p(p2));
assert(f(p2) == 12);
shared_int_clean(p2);
shared_int_clean(p1);
shared_int_reset(p2);
shared_int_reset(p1);
assert(shared_int_NULL_p(p1));
assert(shared_int_NULL_p(p2));