mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
Visual C++ error format needs <space>:<space> after the parentheses.
This commit is contained in:
parent
a8d4f4b24a
commit
fc869bac3d
@ -544,8 +544,7 @@ Currently, two error reporting formats may be selected. They are
|
||||
the \c{-Xvc} option and the \c{-Xgnu} option. The GNU format is
|
||||
the default and looks like this:
|
||||
|
||||
\c filename.asm:65: error:specific error message
|
||||
|
||||
\c filename.asm:65: error: specific error message
|
||||
|
||||
where \c{filename.asm} is the name of the source file in which the
|
||||
error was detected, \c{65} is the source file line number on which
|
||||
@ -556,8 +555,7 @@ detailed text message which should help pinpoint the exact problem.
|
||||
The other format, specified by \c{-Xvc} is the style used by Microsoft
|
||||
Visual C++ and some other programs. It looks like this:
|
||||
|
||||
\c filename.asm(65) error:specific error message
|
||||
|
||||
\c filename.asm(65) : error: specific error message
|
||||
|
||||
where the only difference is that the line number is in parentheses
|
||||
instead of being delimited by colons.
|
||||
|
4
nasm.c
4
nasm.c
@ -1411,7 +1411,7 @@ static void report_error_gnu (int severity, const char *fmt, ...)
|
||||
* This function prints an error message to error_file in the
|
||||
* style used by Visual C and some other Microsoft tools. An example
|
||||
* would be:
|
||||
* c:\project\file.asm(50) error: blah blah blah
|
||||
* c:\project\file.asm(50) : error: blah blah blah
|
||||
* where c:\project\file.asm is the full path of the file,
|
||||
* 50 is the line number on which the error occurs (or is detected)
|
||||
* and "error:" is one of the possible optional diagnostics -- it
|
||||
@ -1434,7 +1434,7 @@ static void report_error_vc (int severity, const char *fmt, ...)
|
||||
char * currentfile = NULL;
|
||||
long lineno = 0;
|
||||
src_get (&lineno, ¤tfile);
|
||||
fprintf (error_file, "%s(%ld) ", currentfile, lineno);
|
||||
fprintf (error_file, "%s(%ld) : ", currentfile, lineno);
|
||||
nasm_free (currentfile);
|
||||
}
|
||||
va_start (ap, fmt);
|
||||
|
Loading…
Reference in New Issue
Block a user