Refactor list, add attaching functional
This commit is contained in:
+4
-4
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user