In error or warning messages, output the name of the library if this is
relevant. It's otherwise difficult to know what happens when ar65 is called from within a makefile or similar. git-svn-id: svn://svn.cc65.org/cc65/trunk@5695 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998-2011, Ullrich von Bassewitz */
|
||||
/* (C) 1998-2012, Ullrich von Bassewitz */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
@@ -41,6 +41,7 @@
|
||||
|
||||
/* ar65 */
|
||||
#include "error.h"
|
||||
#include "library.h"
|
||||
#include "objdata.h"
|
||||
#include "exports.h"
|
||||
|
||||
@@ -112,9 +113,9 @@ void ExpInsert (const char* Name, const ObjData* Module)
|
||||
while (1) {
|
||||
if (strcmp (L->Name, Name) == 0) {
|
||||
/* Duplicate entry */
|
||||
Warning ("External symbol `%s' in module `%s' is duplicated in "
|
||||
"module `%s'",
|
||||
Name, L->Name, Module->Name);
|
||||
Warning ("External symbol `%s' in module `%s', library `%s' "
|
||||
"is duplicated in module `%s'",
|
||||
Name, L->Name, LibName, Module->Name);
|
||||
}
|
||||
if (L->Next == 0) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user