lang: remove references to old mie api
This commit is contained in:
@@ -17,18 +17,7 @@ static struct code_generator_result gen_fstring(
|
||||
struct fstring_codegen_state *fstring
|
||||
= (struct fstring_codegen_state *)state;
|
||||
|
||||
struct mie_value *stringbuilder_ptr
|
||||
= mie_builder_get_data_ptr(gen->c_builder, "StringBuilder");
|
||||
|
||||
struct mie_type *id = mie_ctx_get_type(gen->c_ctx, MIE_TYPE_ID);
|
||||
struct mie_value *stringbuilder_class
|
||||
= mie_builder_load(gen->c_builder, id, stringbuilder_ptr, NULL);
|
||||
struct mie_value *sel = mie_ctx_get_selector(gen->c_ctx, "_M3newE");
|
||||
|
||||
fstring->s_stringbuilder = mie_builder_msg(
|
||||
gen->c_builder, id, stringbuilder_class, sel, NULL, 0, 0, NULL);
|
||||
|
||||
return CODEGEN_RESULT_OK(0);
|
||||
return CODEGEN_RESULT_ERR(IVY_ERR_NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
static struct code_generator_result gen_expr(
|
||||
@@ -55,15 +44,7 @@ static enum ivy_status state_fini(
|
||||
struct fstring_codegen_state *fstring
|
||||
= (struct fstring_codegen_state *)state;
|
||||
|
||||
struct mie_type *id = mie_ctx_get_type(gen->c_ctx, MIE_TYPE_ID);
|
||||
struct mie_value *sel = mie_ctx_get_selector(gen->c_ctx, "_M8toStringE");
|
||||
|
||||
struct mie_value *str = mie_builder_msg(
|
||||
gen->c_builder, id, fstring->s_stringbuilder, sel, NULL, 0, 0,
|
||||
NULL);
|
||||
|
||||
code_generator_value_set_mie_value(result, str);
|
||||
return IVY_OK;
|
||||
return IVY_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
static struct code_generator_result value_received(
|
||||
@@ -73,14 +54,7 @@ static struct code_generator_result value_received(
|
||||
struct fstring_codegen_state *fstring
|
||||
= (struct fstring_codegen_state *)state;
|
||||
|
||||
struct mie_type *void_type = mie_ctx_get_type(gen->c_ctx, MIE_TYPE_VOID);
|
||||
struct mie_value *sel = mie_ctx_get_selector(gen->c_ctx, "_M06appendE");
|
||||
|
||||
mie_builder_msg(
|
||||
gen->c_builder, void_type, fstring->s_stringbuilder, sel,
|
||||
&value->v_value.mie_value, 1, MIE_BUILDER_IGNORE_RESULT, NULL);
|
||||
|
||||
return CODEGEN_RESULT_OK(0);
|
||||
return CODEGEN_RESULT_ERR(IVY_ERR_NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
struct code_generator fstring_generator = {
|
||||
|
||||
Reference in New Issue
Block a user