From fef6387120bab959e3f6600cba7aa723aa0dcc31 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Mon, 28 May 2018 07:16:50 +0100 Subject: [PATCH] Move the initial capacity definition to the header file --- containers/aligned_vector.c | 2 -- containers/aligned_vector.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/containers/aligned_vector.c b/containers/aligned_vector.c index b6410c4..d6b5f85 100644 --- a/containers/aligned_vector.c +++ b/containers/aligned_vector.c @@ -11,8 +11,6 @@ #include "aligned_vector.h" -#define ALIGNED_VECTOR_INITIAL_CAPACITY 256u - void aligned_vector_init(AlignedVector* vector, unsigned int element_size) { vector->size = vector->capacity = 0; vector->element_size = element_size; diff --git a/containers/aligned_vector.h b/containers/aligned_vector.h index 130d9be..96be736 100644 --- a/containers/aligned_vector.h +++ b/containers/aligned_vector.h @@ -8,6 +8,8 @@ typedef struct { unsigned int element_size; } AlignedVector; +#define ALIGNED_VECTOR_INITIAL_CAPACITY 256u + void aligned_vector_init(AlignedVector* vector, unsigned int element_size); void aligned_vector_reserve(AlignedVector* vector, unsigned int element_count); void aligned_vector_push_back(AlignedVector* vector, const void* objs, unsigned int count);