vsyasm: if -E is used, print command line as first line in error file.

Requested by: Brian Gladman

svn path=/trunk/yasm/; revision=2300
This commit is contained in:
Peter Johnson 2010-03-04 05:13:48 +00:00
parent 47b7b364c7
commit d7c5571bcb

View file

@ -565,9 +565,14 @@ main(int argc, char *argv[])
/* Open error file if specified. */
if (error_filename) {
int j;
errfile = open_file(error_filename, "wt");
if (!errfile)
return EXIT_FAILURE;
/* Print command line as first line in error file. */
for (j=0; j<argc; j++)
fprintf(errfile, "%s%c", argv[j], (j==argc-1) ? '\n' : ' ');
}
/* If not already specified, default to win32 as the object format. */