This commit is contained in:
+3
-3
@@ -16,7 +16,7 @@ void *dyn_array_create_func(dyn_array_create_func_args_t args) {
|
||||
return &header->bytes;
|
||||
}
|
||||
|
||||
void *dyn_array_grow_func(void *this, size_t n_new_items, const char *file, int line) {
|
||||
void *dyn_array_grow_func(void *this, size_t n_new_items, char const *file, int line) {
|
||||
dyn_array_header_t *header = PTR_FROM_FIELD_PTR(dyn_array_header_t, bytes, this);
|
||||
size_t new_size = header->n_items + n_new_items;
|
||||
|
||||
@@ -40,7 +40,7 @@ void *dyn_array_grow_func(void *this, size_t n_new_items, const char *file, int
|
||||
}
|
||||
|
||||
|
||||
void dyn_array_shrink_func(void *this, size_t n_items_to_remove, const char *file, int line) {
|
||||
void dyn_array_shrink_func(void *this, size_t n_items_to_remove, char const *file, int line) {
|
||||
if (arr_len(this) < n_items_to_remove) {
|
||||
fprintf(
|
||||
stderr,
|
||||
@@ -97,7 +97,7 @@ bool dyn_array_contains_eq_func(void *this, uint8_t *value, dyn_array_eq_fn eq)
|
||||
return false;
|
||||
}
|
||||
|
||||
void dyn_array_bounds_check_func(void *this, size_t index, const char *file, int line, bool print_error) {
|
||||
void dyn_array_bounds_check_func(void *this, size_t index, char const *file, int line, bool print_error) {
|
||||
size_t len = arr_len(this);
|
||||
if ((index >= len)) {
|
||||
if (print_error) {
|
||||
|
||||
Reference in New Issue
Block a user