summaryrefslogtreecommitdiff
path: root/src/std/containers
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-03-05 23:05:10 +1100
committerOmniscient <omniscient.oce@gmail.com>2024-03-05 23:05:10 +1100
commit99f8b3e17fe4bff76d5b11335c65c5eba14729c7 (patch)
tree0c2f1b39fb2df37b97b0755dd7449a8810a4a16b /src/std/containers
parent14424312813b55c62e44ef5c2152e27301733497 (diff)
chore: format
Diffstat (limited to 'src/std/containers')
-rw-r--r--src/std/containers/darray.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/std/containers/darray.h b/src/std/containers/darray.h
index 85e8048..25bf846 100644
--- a/src/std/containers/darray.h
+++ b/src/std/containers/darray.h
@@ -33,22 +33,22 @@
#define PREFIX static
- /* if (arena != NULL) {\ */
- /* d = arena_alloc(arena, sizeof(T##_darray));\ */
- /* data = arena_alloc(arena, starting_capacity * sizeof(T));\ */
- /* } else {\ */
- /* }\ */
+/* if (arena != NULL) {\ */
+/* d = arena_alloc(arena, sizeof(T##_darray));\ */
+/* data = arena_alloc(arena, starting_capacity * sizeof(T));\ */
+/* } else {\ */
+/* }\ */
#define KITC_DECL_TYPED_ARRAY(T) \
typedef typed_array(T) T##_darray; \
typedef typed_array_iterator(T) T##_darray_iter; \
\
/* Create a new one growable array */ \
- PREFIX T##_darray *T##_darray_new(size_t starting_capacity) { \
- T##_darray *d;\
- T *data ; \
- d = malloc(sizeof(T##_darray)); \
- data = malloc(starting_capacity * sizeof(T));\
+ PREFIX T##_darray *T##_darray_new(size_t starting_capacity) { \
+ T##_darray *d; \
+ T *data; \
+ d = malloc(sizeof(T##_darray)); \
+ data = malloc(starting_capacity * sizeof(T)); \
\
d->len = 0; \
d->capacity = starting_capacity; \