mie: ctx is now used to query the type of a value
this allows value get_type callbacks to use mie_ctx to obtain mie_type pointers, rather than having to define their own static versions of the type structs.
This commit is contained in:
@@ -228,7 +228,8 @@ static b_status write_operand_instr(
|
||||
|
||||
if (flags & F_INCLUDE_TYPE) {
|
||||
char type_name[64];
|
||||
struct mie_type *type = mie_value_get_type(value);
|
||||
struct mie_type *type
|
||||
= mie_value_get_type(value, converter->c_ctx);
|
||||
mie_type_to_string(type, type_name, sizeof type_name);
|
||||
write_string_f(converter, "%s ", type_name);
|
||||
}
|
||||
@@ -244,7 +245,8 @@ static b_status write_operand_block(
|
||||
|
||||
if (flags & F_INCLUDE_TYPE) {
|
||||
char type_name[64];
|
||||
struct mie_type *type = mie_value_get_type(value);
|
||||
struct mie_type *type
|
||||
= mie_value_get_type(value, converter->c_ctx);
|
||||
mie_type_to_string(type, type_name, sizeof type_name);
|
||||
write_string_f(converter, "%s ", type_name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user