ds: number: update to_string() to use new b_stream interface
This commit is contained in:
@@ -528,7 +528,7 @@ static size_t number_data_size(const struct b_number_p *number)
|
||||
}
|
||||
}
|
||||
|
||||
static void print_inf(const struct b_number_p *n, struct b_stream *out)
|
||||
static void print_inf(const struct b_number_p *n, b_stream *out)
|
||||
{
|
||||
switch (n->n_type) {
|
||||
case B_NUMBER_INT8:
|
||||
@@ -583,7 +583,7 @@ static void print_inf(const struct b_number_p *n, struct b_stream *out)
|
||||
b_stream_write_string(out, "INF", NULL);
|
||||
}
|
||||
|
||||
static void print_nan(const struct b_number_p *n, struct b_stream *out)
|
||||
static void print_nan(const struct b_number_p *n, b_stream *out)
|
||||
{
|
||||
switch (n->n_type) {
|
||||
case B_NUMBER_INT8:
|
||||
@@ -796,7 +796,7 @@ static void number_fini(b_object *obj, void *priv)
|
||||
struct b_number_p *number = priv;
|
||||
}
|
||||
|
||||
static void number_to_string(const b_object *obj, struct b_stream *out)
|
||||
static void number_to_string(const b_object *obj, b_stream *out)
|
||||
{
|
||||
struct b_number_p *number = b_object_get_private(obj, B_TYPE_NUMBER);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user