mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
nasm.c: Tabs to spaces in nasm_verror_common
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
18
nasm.c
18
nasm.c
@@ -1953,8 +1953,8 @@ static void nasm_verror_common(int severity, const char *fmt, va_list args)
|
|||||||
pfx = "debug: ";
|
pfx = "debug: ";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
pfx = "";
|
pfx = "";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
vsnprintf(msg, sizeof msg, fmt, args);
|
vsnprintf(msg, sizeof msg, fmt, args);
|
||||||
@@ -1962,7 +1962,7 @@ static void nasm_verror_common(int severity, const char *fmt, va_list args)
|
|||||||
fprintf(error_file, "%s%s\n", pfx, msg);
|
fprintf(error_file, "%s%s\n", pfx, msg);
|
||||||
|
|
||||||
if (*listname)
|
if (*listname)
|
||||||
nasmlist.error(severity, pfx, msg);
|
nasmlist.error(severity, pfx, msg);
|
||||||
|
|
||||||
if (severity & ERR_USAGE)
|
if (severity & ERR_USAGE)
|
||||||
want_usage = true;
|
want_usage = true;
|
||||||
@@ -1972,10 +1972,10 @@ static void nasm_verror_common(int severity, const char *fmt, va_list args)
|
|||||||
/* no further action, by definition */
|
/* no further action, by definition */
|
||||||
break;
|
break;
|
||||||
case ERR_WARNING:
|
case ERR_WARNING:
|
||||||
/* Treat warnings as errors */
|
/* Treat warnings as errors */
|
||||||
if (warning_on[WARN_IDX(ERR_WARN_TERM)])
|
if (warning_on[WARN_IDX(ERR_WARN_TERM)])
|
||||||
terminate_after_phase = true;
|
terminate_after_phase = true;
|
||||||
break;
|
break;
|
||||||
case ERR_NONFATAL:
|
case ERR_NONFATAL:
|
||||||
terminate_after_phase = true;
|
terminate_after_phase = true;
|
||||||
break;
|
break;
|
||||||
@@ -1983,7 +1983,7 @@ static void nasm_verror_common(int severity, const char *fmt, va_list args)
|
|||||||
if (ofile) {
|
if (ofile) {
|
||||||
fclose(ofile);
|
fclose(ofile);
|
||||||
remove(outname);
|
remove(outname);
|
||||||
ofile = NULL;
|
ofile = NULL;
|
||||||
}
|
}
|
||||||
if (want_usage)
|
if (want_usage)
|
||||||
usage();
|
usage();
|
||||||
@@ -1991,7 +1991,7 @@ static void nasm_verror_common(int severity, const char *fmt, va_list args)
|
|||||||
break; /* placate silly compilers */
|
break; /* placate silly compilers */
|
||||||
case ERR_PANIC:
|
case ERR_PANIC:
|
||||||
fflush(NULL);
|
fflush(NULL);
|
||||||
/* abort(); *//* halt, catch fire, and dump core */
|
/* abort(); */ /* halt, catch fire, and dump core */
|
||||||
exit(3);
|
exit(3);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user