mie: implemented array value type; restructure const value structures
there are now separate structs for all const types (int, string, etc), rather than a single mie_const union.
This commit is contained in:
@@ -95,7 +95,8 @@ enum b_status mie_module_put_data(
|
||||
|
||||
struct mie_const *const_data = data->d_const.c_value;
|
||||
if (const_data->c_type->t_id == MIE_TYPE_STR) {
|
||||
key.key_data = const_data->c_v.v_str;
|
||||
struct mie_string *s = MIE_STRING(const_data);
|
||||
key.key_data = s->s_value;
|
||||
key.key_size = strlen(key.key_data);
|
||||
b_hashmap_put(mod->m_data_strings, &key, &value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user