Code formatting and moving more things around
This commit is contained in:
1 parent
59a1e2a682
commit
649f02665f
23 files changed
+361
-293
No files matched your search
@@ -14,6 +14,7 @@ C_MACRO_COLLECTIONS_ALL(CMC, INTERVALHEAP, ( ih, intervalheap, , , int))
|
||||
C_MACRO_COLLECTIONS_ALL(CMC, LINKEDLIST, ( ll, linkedlist, , , int))
|
||||
C_MACRO_COLLECTIONS_ALL(CMC, LIST, ( l, list, , , int))
|
||||
C_MACRO_COLLECTIONS_ALL(CMC, QUEUE, ( q, queue, , , int))
|
||||
C_MACRO_COLLECTIONS_ALL(CMC, SORTEDLIST, ( sl, sortedlist, , , int))
|
||||
|
||||
struct
|
||||
{
|
||||
@@ -45,6 +46,7 @@ int main(void)
|
||||
struct linkedlist *ll = ll_new((struct linkedlist_fval *)&int_ftab);
|
||||
struct list *l = l_new(100, (struct list_fval *)&int_ftab);
|
||||
struct queue *q = q_new(100, (struct queue_fval *)&int_ftab);
|
||||
struct sortedlist *sl = sl_new(100, (struct sortedlist_fval *)&int_ftab);
|
||||
|
||||
d_to_string(d, stdout);
|
||||
d_print(d, stdout, "\n[ ", ", ", " ]\n");
|
||||
@@ -68,6 +70,8 @@ int main(void)
|
||||
l_print(l, stdout, "\n[ ", ", ", " ]\n");
|
||||
q_to_string(q, stdout);
|
||||
q_print(q, stdout, "\n[ ", ", ", " ]\n");
|
||||
sl_to_string(sl, stdout);
|
||||
sl_print(sl, stdout, "\n[ ", ", ", " ]\n");
|
||||
|
||||
fprintf(stdout, "\n");
|
||||
|
||||
@@ -82,6 +86,7 @@ int main(void)
|
||||
ll_push_back(ll, 0);
|
||||
l_push_back(l, 0);
|
||||
q_enqueue(q, 0);
|
||||
sl_insert(sl, 0);
|
||||
|
||||
d_to_string(d, stdout);
|
||||
d_print(d, stdout, "\n[ ", ", ", " ]\n");
|
||||
@@ -105,6 +110,8 @@ int main(void)
|
||||
l_print(l, stdout, "\n[ ", ", ", " ]\n");
|
||||
q_to_string(q, stdout);
|
||||
q_print(q, stdout, "\n[ ", ", ", " ]\n");
|
||||
sl_to_string(sl, stdout);
|
||||
sl_print(sl, stdout, "\n[ ", ", ", " ]\n");
|
||||
|
||||
for (int i = 1; i < 20; i++)
|
||||
{
|
||||
@@ -119,6 +126,7 @@ int main(void)
|
||||
ll_push_back(ll, i);
|
||||
l_push_back(l, i);
|
||||
q_enqueue(q, i);
|
||||
sl_insert(sl, i);
|
||||
}
|
||||
|
||||
fprintf(stdout, "\n");
|
||||
@@ -145,6 +153,8 @@ int main(void)
|
||||
l_print(l, stdout, "\n[ ", ", ", " ]\n");
|
||||
q_to_string(q, stdout);
|
||||
q_print(q, stdout, "\n[ ", ", ", " ]\n");
|
||||
sl_to_string(sl, stdout);
|
||||
sl_print(sl, stdout, "\n[ ", ", ", " ]\n");
|
||||
|
||||
d_free(d);
|
||||
hbm_free(hbm);
|
||||
@@ -157,6 +167,7 @@ int main(void)
|
||||
ll_free(ll);
|
||||
l_free(l);
|
||||
q_free(q);
|
||||
sl_free(sl);
|
||||
}
|
||||
|
||||
// clang-format on
|
||||
Reference in new issue
Block a user