all: minor updates

This commit is contained in:
Markus F.X.J. Oberhumer
2023-05-08 16:05:03 +02:00
parent 08a72d5251
commit 900afd1c8c
17 changed files with 138 additions and 93 deletions
+10 -9
View File
@@ -87,8 +87,9 @@ static void do_exit(void) {
static bool set_eec(int ec, int *eec) {
if (ec == EXIT_FATAL) {
*eec = EXIT_ERROR;
return 1;
} else if (ec < 0 || ec == EXIT_ERROR) {
return true;
}
if (ec < 0 || ec == EXIT_ERROR) {
*eec = EXIT_ERROR;
} else if (ec == EXIT_WARN) {
if (!opt->ignorewarn)
@@ -99,7 +100,7 @@ static bool set_eec(int ec, int *eec) {
} else {
assert(0);
}
return 0;
return false;
}
bool main_set_exit_code(int ec) { return set_eec(ec, &exit_code); }
@@ -632,22 +633,22 @@ static int do_option(int optc, const char *arg) {
// CPU
case 560:
if (mfx_optarg && strcmp(mfx_optarg, "8086") == 0)
opt->cpu = opt->CPU_8086;
opt->cpu_x86 = opt->CPU_8086;
else if (mfx_optarg && strcmp(mfx_optarg, "386") == 0)
opt->cpu = opt->CPU_386;
opt->cpu_x86 = opt->CPU_386;
else if (mfx_optarg && strcmp(mfx_optarg, "486") == 0)
opt->cpu = opt->CPU_486;
opt->cpu_x86 = opt->CPU_486;
else
e_optarg(arg);
break;
case 561:
opt->cpu = opt->CPU_8086;
opt->cpu_x86 = opt->CPU_8086;
break;
case 563:
opt->cpu = opt->CPU_386;
opt->cpu_x86 = opt->CPU_386;
break;
case 564:
opt->cpu = opt->CPU_486;
opt->cpu_x86 = opt->CPU_486;
break;
//
case 600: