Commit 300240bf authored by Alexandre Julliard's avatar Alexandre Julliard

Use the correct file name in the "generated automatically" comments.

parent d4cf45e3
......@@ -202,6 +202,7 @@ extern int display_warnings;
extern int kill_at;
extern char *input_file_name;
extern char *spec_file_name;
extern const char *output_file_name;
extern char **debug_channels;
extern char **lib_path;
......
......@@ -58,6 +58,7 @@ char **debug_channels = NULL;
char **lib_path = NULL;
char *input_file_name = NULL;
char *spec_file_name = NULL;
const char *output_file_name = NULL;
char *ld_command = "ld";
......@@ -67,7 +68,6 @@ static FILE *output_file;
static const char *current_src_dir;
static int nb_res_files;
static char **res_files;
static char *spec_file_name;
/* execution mode */
enum exec_mode_values
......
......@@ -845,8 +845,11 @@ void BuildDef32File( FILE *outfile, DLLSPEC *spec )
const char *name;
int i;
fprintf(outfile, "; File generated automatically from %s; do not edit!\n\n",
input_file_name );
if (spec_file_name)
fprintf( outfile, "; File generated automatically from %s; do not edit!\n\n",
spec_file_name );
else
fprintf( outfile, "; File generated automatically; do not edit!\n\n" );
fprintf(outfile, "LIBRARY %s\n\n", spec->file_name);
......
......@@ -142,9 +142,9 @@ void warning( const char *msg, ... )
/* output a standard header for generated files */
void output_standard_file_header( FILE *outfile )
{
if (input_file_name)
if (spec_file_name)
fprintf( outfile, "/* File generated automatically from %s; do not edit! */\n",
input_file_name );
spec_file_name );
else
fprintf( outfile, "/* File generated automatically; do not edit! */\n" );
fprintf( outfile,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment