Moving more things to EXT
This commit is contained in:
1 parent
97f46b3a81
commit
63eb525406
10 files changed
+1902
-1814
No files matched your search
@@ -10,6 +10,7 @@ C_MACRO_COLLECTIONS_ALL(CMC, HASHMULTISET, (hms, hashmultiset, , , int))
|
||||
C_MACRO_COLLECTIONS_ALL(CMC, HASHSET, ( hs, hashset, , , int))
|
||||
C_MACRO_COLLECTIONS_ALL(CMC, HEAP, ( h, heap, , , int))
|
||||
C_MACRO_COLLECTIONS_ALL(CMC, INTERVALHEAP, ( ih, intervalheap, , , int))
|
||||
C_MACRO_COLLECTIONS_ALL(CMC, LINKEDLIST, ( ll, linkedlist, , , int))
|
||||
|
||||
struct
|
||||
{
|
||||
@@ -35,6 +36,7 @@ int main(void)
|
||||
(struct hashset_fval *)&int_ftab);
|
||||
struct heap *h = h_new(100, CMC_MAX_HEAP, (struct heap_fval *)&int_ftab);
|
||||
struct intervalheap *ih = ih_new(100, (struct intervalheap_fval *)&int_ftab);
|
||||
struct linkedlist *ll = ll_new((struct linkedlist_fval *)&int_ftab);
|
||||
|
||||
d_to_string(d, stdout);
|
||||
d_print(d, stdout, "\n[ ", ", ", " ]\n");
|
||||
@@ -50,6 +52,8 @@ int main(void)
|
||||
h_print(h, stdout, "\n[ ", ", ", " ]\n");
|
||||
ih_to_string(ih, stdout);
|
||||
ih_print(ih, stdout, "\n[ ", ", ", " ]\n");
|
||||
ll_to_string(ll, stdout);
|
||||
ll_print(ll, stdout, "\n[ ", ", ", " ]\n");
|
||||
|
||||
fprintf(stdout, "\n");
|
||||
|
||||
@@ -60,6 +64,7 @@ int main(void)
|
||||
hs_insert(hs, 0);
|
||||
h_insert(h, 0);
|
||||
ih_insert(ih, 0);
|
||||
ll_push_back(ll, 0);
|
||||
|
||||
d_to_string(d, stdout);
|
||||
d_print(d, stdout, "\n[ ", ", ", " ]\n");
|
||||
@@ -75,6 +80,8 @@ int main(void)
|
||||
h_print(h, stdout, "\n[ ", ", ", " ]\n");
|
||||
ih_to_string(ih, stdout);
|
||||
ih_print(ih, stdout, "\n[ ", ", ", " ]\n");
|
||||
ll_to_string(ll, stdout);
|
||||
ll_print(ll, stdout, "\n[ ", ", ", " ]\n");
|
||||
|
||||
for (int i = 1; i < 20; i++)
|
||||
{
|
||||
@@ -85,6 +92,7 @@ int main(void)
|
||||
hs_insert(hs, i);
|
||||
h_insert(h, i);
|
||||
ih_insert(ih, i);
|
||||
ll_push_back(ll, i);
|
||||
}
|
||||
|
||||
fprintf(stdout, "\n");
|
||||
@@ -103,6 +111,8 @@ int main(void)
|
||||
h_print(h, stdout, "\n[ ", ", ", " ]\n");
|
||||
ih_to_string(ih, stdout);
|
||||
ih_print(ih, stdout, "\n[ ", ", ", " ]\n");
|
||||
ll_to_string(ll, stdout);
|
||||
ll_print(ll, stdout, "\n[ ", ", ", " ]\n");
|
||||
|
||||
d_free(d);
|
||||
hm_free(hm);
|
||||
|
||||
Reference in new issue
Block a user