diff options
Diffstat (limited to 'src/std/containers')
-rw-r--r-- | src/std/containers/container_utils.h | 7 | ||||
-rw-r--r-- | src/std/containers/darray.h | 6 | ||||
-rw-r--r-- | src/std/containers/hashmap.h | 3 | ||||
-rw-r--r-- | src/std/containers/hashset.h | 2 |
4 files changed, 8 insertions, 10 deletions
diff --git a/src/std/containers/container_utils.h b/src/std/containers/container_utils.h index 39906c3..e1d164c 100644 --- a/src/std/containers/container_utils.h +++ b/src/std/containers/container_utils.h @@ -1,18 +1,17 @@ /** * @file container_utils.h * @author your name (you@domain.com) - * @brief + * @brief * @version 0.1 * @date 2024-06-19 - * + * * @copyright Copyright (c) 2024 - * + * */ #pragma once typedef struct generic_iterator { - } generic_iterator; typedef void* (*iterator_next_item)(void* iterator);
\ No newline at end of file diff --git a/src/std/containers/darray.h b/src/std/containers/darray.h index b3dbd06..ebb5795 100644 --- a/src/std/containers/darray.h +++ b/src/std/containers/darray.h @@ -86,7 +86,7 @@ size_t new_capacity = \ d->capacity > 0 ? d->capacity * DARRAY_RESIZE_FACTOR : DARRAY_DEFAULT_CAPACITY; \ T *resized = Type##_darray_resize(d, new_capacity); \ - (void)resized; \ + (void)resized; \ } \ \ d->data[d->len] = value; \ @@ -98,7 +98,7 @@ size_t new_capacity = \ d->capacity > 0 ? d->capacity * DARRAY_RESIZE_FACTOR : DARRAY_DEFAULT_CAPACITY; \ T *resized = Type##_darray_resize(d, new_capacity); \ - (void)resized; \ + (void)resized; \ } \ \ T *place = d->data + d->len; \ @@ -118,7 +118,7 @@ size_t new_capacity = \ d->capacity > 0 ? d->capacity * DARRAY_RESIZE_FACTOR : DARRAY_DEFAULT_CAPACITY; \ T *resized = Type##_darray_resize(d, new_capacity); \ - (void)resized; \ + (void)resized; \ } \ \ /* shift existing data after index */ \ diff --git a/src/std/containers/hashmap.h b/src/std/containers/hashmap.h index 64a5bf7..95c1c6b 100644 --- a/src/std/containers/hashmap.h +++ b/src/std/containers/hashmap.h @@ -9,7 +9,6 @@ * */ - typedef struct hashmap hashmap; /* @@ -18,7 +17,7 @@ Example usage init hashmap insert (string, material) get (string) -> material_opt or material* ? - + */ void hashmap_init(hashmap* map); diff --git a/src/std/containers/hashset.h b/src/std/containers/hashset.h index 978ec00..7f87213 100644 --- a/src/std/containers/hashset.h +++ b/src/std/containers/hashset.h @@ -13,7 +13,7 @@ typedef struct hashset hashset; -/** @brief Describes a function that will take a pointer to a datatype (e.g. a u64 or a struct) +/** @brief Describes a function that will take a pointer to a datatype (e.g. a u64 or a struct) and return a hashed key. */ typedef uint64_t (*hash_item)(void* item); |