object: to_string() now takes a const object pointer

This commit is contained in:
2025-09-22 10:47:33 +01:00
parent 16b68b6fba
commit d9041cda3f
7 changed files with 11 additions and 11 deletions

View File

@@ -8,7 +8,7 @@
#include <string.h>
static void array_release(struct b_object *obj);
static void array_to_string(struct b_object *obj, struct b_stream *out);
static void array_to_string(const struct b_object *obj, struct b_stream *out);
static struct b_object_type array_type = {
.t_flags = B_OBJECT_FUNDAMENTAL,
@@ -221,7 +221,7 @@ size_t b_array_capacity(const struct b_array *array)
return array->ar_cap;
}
static void array_to_string(struct b_object *obj, struct b_stream *out)
static void array_to_string(const struct b_object *obj, struct b_stream *out)
{
struct b_array *array = B_ARRAY(obj);