From 8f512a36a5687b806e27775480878dded7a028ef Mon Sep 17 00:00:00 2001 From: Mikkel Thestrup Date: Thu, 11 Dec 2025 11:00:00 +0100 Subject: I prefer inline typedef --- src/vector.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/vector.h') diff --git a/src/vector.h b/src/vector.h index eaca5f8..c3a86b3 100644 --- a/src/vector.h +++ b/src/vector.h @@ -36,13 +36,7 @@ * as elements are added. It tracks both the number of elements * currently stored (size) and the total allocated space (capacity). */ -typedef struct Vector Vector; - -/** - * @struct Vector - * @brief A dynamic array container structure. - */ -struct Vector { +typedef struct Vector { /** * @brief Array of generic data pointers. * @details A dynamically allocated array of (void*) pointers, @@ -68,7 +62,7 @@ struct Vector { * capacity >= size. */ size_t capacity; -}; +} Vector; /** * @brief Allocates and initializes an empty vector. -- cgit v1.2.3-70-g09d2