aboutsummaryrefslogtreecommitdiff
path: root/vec.h
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 17:06:53 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 17:09:42 +0200
commit0be32393e54bed6bbf5890edba72b8808d276289 (patch)
treeba83502753e64f0c60f5202a8d224b57b52cf14f /vec.h
parent85b0db24804e6a8a66f557ac8917596db5fc5d9f (diff)
format
Diffstat (limited to 'vec.h')
-rw-r--r--vec.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/vec.h b/vec.h
index d43fafb..a9b4f92 100644
--- a/vec.h
+++ b/vec.h
@@ -7,11 +7,11 @@
#ifndef VEC_H
#define VEC_H
typedef struct {
- void *data;
- size len;
- size cap;
- size size;
- int align;
+ void *data;
+ size len;
+ size cap;
+ size size;
+ int align;
} Vec;
#define Vec_new(a, T, cap) _Vec_new(a, sizeof(T), cap, _Alignof(T))
Vec _Vec_new(Arena *a, size tsize, size cap, int align);