frontend: remove references to old mie api
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#include "../debug.h"
|
||||
#include "cmd.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <fx/cmd.h>
|
||||
#include <fx/ds/string.h>
|
||||
#include <fx/term.h>
|
||||
#include <errno.h>
|
||||
#include <ivy/asm/assembler.h>
|
||||
#include <ivy/asm/lex.h>
|
||||
#include <ivy/asm/parse.h>
|
||||
@@ -87,7 +87,7 @@ static int assemble_file(const char *in_path, const char *out_path)
|
||||
if (status != IVY_OK) {
|
||||
fx_err("failed to parse '%s'", in_path);
|
||||
fx_i("reason: lex error (%s)",
|
||||
ivy_status_to_string(ivy_asm_lexer_get_status(lex)));
|
||||
ivy_status_to_string(ivy_asm_lexer_get_status(lex)));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ static int assemble_file(const char *in_path, const char *out_path)
|
||||
if (status != IVY_OK) {
|
||||
fx_err("failed to parse '%s'", in_path);
|
||||
fx_i("reason: parse error (%s)",
|
||||
ivy_status_to_string(status));
|
||||
ivy_status_to_string(status));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -155,7 +155,8 @@ static fx_string *generate_object_filename(const char *src_filename)
|
||||
return name;
|
||||
}
|
||||
|
||||
static int assemble(const fx_command *cmd, const fx_arglist *args, const fx_array *_)
|
||||
static int assemble(
|
||||
const fx_command *cmd, const fx_arglist *args, const fx_array *_)
|
||||
{
|
||||
const char *in_path = NULL;
|
||||
const char *out_path = NULL;
|
||||
@@ -229,7 +230,7 @@ static int assemble(const fx_command *cmd, const fx_arglist *args, const fx_arra
|
||||
return 0;
|
||||
}
|
||||
|
||||
B_COMMAND(CMD_ASSEMBLE, CMD_ROOT)
|
||||
FX_COMMAND(CMD_ASSEMBLE, CMD_ROOT)
|
||||
{
|
||||
FX_COMMAND_NAME("assemble");
|
||||
FX_COMMAND_SHORT_NAME('A');
|
||||
|
||||
Reference in New Issue
Block a user