object: to_string() now takes a const object pointer
This commit is contained in:
@@ -32,7 +32,7 @@ BLUE_API b_object *b_make_rvalue(b_object *obj);
|
||||
BLUE_API b_object *b_retain(b_object *obj);
|
||||
BLUE_API void b_release(b_object *obj);
|
||||
|
||||
BLUE_API void b_to_string(b_object *obj, struct b_stream *out);
|
||||
BLUE_API void b_to_string(const b_object *obj, struct b_stream *out);
|
||||
BLUE_API b_object_type_id b_typeid(const b_object *obj);
|
||||
|
||||
BLUE_API b_comparison_result_t b_compare(const b_object *a, const b_object *b);
|
||||
|
||||
@@ -45,7 +45,7 @@ typedef struct b_object_type {
|
||||
b_queue_entry t_entry;
|
||||
void (*t_init)(struct b_object *);
|
||||
void (*t_release)(struct b_object *);
|
||||
void (*t_to_string)(struct b_object *, struct b_stream *);
|
||||
void (*t_to_string)(const struct b_object *, struct b_stream *);
|
||||
} b_object_type;
|
||||
|
||||
BLUE_API b_status b_object_type_register(b_object_type *type);
|
||||
|
||||
Reference in New Issue
Block a user