aboutsummaryrefslogtreecommitdiff
path: root/vec.c
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-02-11 06:28:17 +0100
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-02-11 06:28:17 +0100
commit10379fdde9fa5e94a955fe35f14e5b35de2a0e5d (patch)
treec5d6b408ebef01acf5ee5bedd6ff9e59386d139b /vec.c
parentc0ef18f1aad1c5b4d8cb0aa1e0bab8d54d99e7f6 (diff)
chore: Makefile
Diffstat (limited to 'vec.c')
-rw-r--r--vec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/vec.c b/vec.c
index 6962d03..58977dc 100644
--- a/vec.c
+++ b/vec.c
@@ -1,4 +1,3 @@
-#include <stdio.h>
#include <string.h>
#include "vec.h"
@@ -14,9 +13,6 @@ Vec *_Vec_new(Arena *a, int size, ptrdiff_t cap, int align) {
}
Vec *Vec_push(Arena *a, Vec *v, void *data) {
- // printf("push: dest=%p, src=%p, size=%d\n", v->data + v->len * v->size,
- // data,
- // v->size);
if (v->len == v->cap) {
void *cpy = alloc(a, v->cap * 2, v->size, v->align);
memcpy(cpy, v->data, v->len * v->size);