Refactor list, add attaching functional

This commit is contained in:
2022-08-19 16:46:07 +03:00
parent 57a8a08234
commit 925a8855ed
13 changed files with 261 additions and 336 deletions
+4 -4
View File
@@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "../include/extra/list.h"
#include "../include/list.h"
typedef vtype_list list_t;
@@ -33,11 +33,11 @@ int main(int argc, char** argv) {
list_init(&list);
for (size_t i = 0; i < 28; ++i) {
for (vtype_int32 i = 0; i < 28; ++i) {
if (i%2) {
list_push_back(&list, (vtype_int32)i);
list_push_back(&list, i);
} else {
list_push_back(&list, (vtype_float)fl);
list_push_back(&list, fl);
fl += 0.05;
}
}