refactoring done, small bugfixes included, vectors and lists of non-primitive types are not working though
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user