refactoring done, small bugfixes included, vectors and lists of non-primitive types are not working though

This commit is contained in:
Odweta
2024-02-05 00:16:25 +01:00
parent 8832a2a4aa
commit e40b61a21b
9 changed files with 631 additions and 797 deletions
+7 -13
View File
@@ -1,21 +1,15 @@
#include <odweta/string.h>
#include <odweta/vector.h>
int main() {
//printf("before init\n");
string_t *s = string_from("test string");
vector_t *v = vector_new(INT);
//printf("before 1st println\n");
string_println(s);
vector_push(v, &(int){1});
vector_push(v, &(int){2});
vector_push(v, &(int){3});
//printf("before pushing chars\n");
string_push_chars(s, " appended");
vector_print(v);
//printf("before 2nd println\n");
string_println(s);
vector_cleanup(v);
//printf("before cleanup\n");
string_cleanup(s);
//printf("before end\n");
return 0;
}