summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-07 16:06:21 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-07-07 16:06:21 -0700
commit931cab64d692fc14edb117def3b19aa3ead83b2d (patch)
treee9ad96da47aff8b8d1f93696b1dbdc93cc2804f2 /preproc.c
parent8287daf2a4ea198c6034d37f832036a5f49d695d (diff)
downloadnasm-931cab64d692fc14edb117def3b19aa3ead83b2d.tar.gz
nasm-931cab64d692fc14edb117def3b19aa3ead83b2d.tar.bz2
nasm-931cab64d692fc14edb117def3b19aa3ead83b2d.zip
preproc: revert to older form of preprocessor user error messages
When the user generates an error via %warning, %error, or %fatal, treat is as any other error message. The attempt at making them stand out really looked ugly when the preprocessor adds additional tracing information. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/preproc.c b/preproc.c
index ab24953..357a1b5 100644
--- a/preproc.c
+++ b/preproc.c
@@ -2442,13 +2442,13 @@ static int do_directive(Token * tline)
free_tlist(origline);
return DIRECTIVE_FOUND;
case PP_FATAL:
- severity = ERR_FATAL|ERR_NO_SEVERITY;
+ severity = ERR_FATAL;
goto issue_error;
case PP_ERROR:
- severity = ERR_NONFATAL|ERR_NO_SEVERITY;
+ severity = ERR_NONFATAL;
goto issue_error;
case PP_WARNING:
- severity = ERR_WARNING|ERR_NO_SEVERITY|ERR_WARN_USER;
+ severity = ERR_WARNING|ERR_WARN_USER;
goto issue_error;
issue_error:
@@ -2466,11 +2466,11 @@ static int do_directive(Token * tline)
/* The line contains only a quoted string */
p = tline->text;
nasm_unquote(p, NULL);
- error(severity, "%s: %s", pp_directives[i], p);
+ error(severity, "%s", p);
} else {
/* Not a quoted string, or more than a quoted string */
p = detoken(tline, false);
- error(severity, "%s: %s", pp_directives[i], p);
+ error(severity, "%s", p);
nasm_free(p);
}
free_tlist(origline);