summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Hader <[email protected]>2026-06-18 20:59:50 -0500
committerDaniel Hader <[email protected]>2026-06-18 20:59:50 -0500
commitaf4a85978598f5fd32a415ebb419d190adce4b22 (patch)
tree900155edd0d4d86d2ab9048909aca35047579e26 /test
parent482ea0261cb9f0def49ce3df542b2a7f811262d1 (diff)
structs are now typedef'ed for brevity
Diffstat (limited to 'test')
-rw-r--r--test/test_vec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_vec.c b/test/test_vec.c
index a9788eb..9343e03 100644
--- a/test/test_vec.c
+++ b/test/test_vec.c
@@ -1,19 +1,18 @@
#include <assert.h>
-#include <stdio.h>
#include <stdlib.h>
#include "util/alloc.h"
#include "util/vec.h"
int main(int argc, char **argv) {
- struct LEO_Allocator allocator = {
+ LEO_Allocator allocator = {
malloc,
realloc,
free,
NULL
};
- struct LEO_Vec vec;
+ LEO_Vec vec;
assert(LEO_Vec_init(&vec, sizeof(int), allocator) == LEO_Vec_OK);
for (int i = 0; i < 100; i++) {