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

This commit is contained in:
Alexandre Julliard 2005-03-15 15:42:32 +00:00
parent d4cf45e3f1
commit 300240bf96
4 changed files with 9 additions and 5 deletions

View File

@ -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;

View File

@ -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

View File

@ -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);

View File

@ -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,