From c5ffbb9e89dc1dff840fceba1b640ac296a53cc5 Mon Sep 17 00:00:00 2001 From: Odweta Date: Mon, 25 Dec 2023 01:12:24 +0100 Subject: [PATCH] umm... I seem to have broken lists of vectors and vectors kinda all together, so just don't use them, lists seem to be working fine..., use those instead --- demo.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/demo.c b/demo.c index 2a31e52..286b195 100644 --- a/demo.c +++ b/demo.c @@ -9,15 +9,11 @@ int main() { listPush(another_list, INT, &(int){123}); listPush(another_list, FLOAT, &(float){3.14}); listPush(another_list, LIST, another_list); + listPush(another_list, LIST, another_list); - vector_t* v = vectorInit(LIST); + listPrint(another_list); - vectorPush(v, another_list); - vectorPush(v, another_list); - - vectorPrint(v); - - vectorCleanup(v); + listCleanup(another_list); return 0; }