mie: move mie_ctx out of the ir subsystem
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
extern const struct mie_value_type module_value_type;
|
||||
extern const struct mie_value_type type_value_type;
|
||||
extern const struct mie_value_type record_value_type;
|
||||
extern const struct mie_value_type func_value_type;
|
||||
extern const struct mie_value_type arg_value_type;
|
||||
@@ -15,7 +14,6 @@ extern const struct mie_value_type data_value_type;
|
||||
static const struct mie_value_type *value_types[] = {
|
||||
[MIE_VALUE_NONE] = NULL,
|
||||
[MIE_VALUE_MODULE] = &module_value_type,
|
||||
[MIE_VALUE_TYPE] = &type_value_type,
|
||||
[MIE_VALUE_RECORD] = &record_value_type,
|
||||
[MIE_VALUE_FUNC] = &func_value_type,
|
||||
[MIE_VALUE_ARG] = &arg_value_type,
|
||||
@@ -39,8 +37,8 @@ void mie_value_destroy(struct mie_value *val)
|
||||
val->v_type->t_cleanup(val);
|
||||
}
|
||||
|
||||
if (val->v_name.n_str) {
|
||||
free(val->v_name.n_str);
|
||||
if (MIE_NAME_VALID(&val->v_name)) {
|
||||
mie_name_destroy(&val->v_name);
|
||||
}
|
||||
|
||||
free(val);
|
||||
|
||||
Reference in New Issue
Block a user