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:
uz
2012-06-07 19:59:51 +00:00
parent 4e0cbcf33f
commit 5cf9f585a6
6 changed files with 31 additions and 23 deletions

View File

@@ -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"
@@ -107,7 +108,7 @@ void FreeObjData (ObjData* O)
void ClearObjData (ObjData* O)
/* Remove any data stored in O */
{
unsigned I;
unsigned I;
xfree (O->Name);
O->Name = 0;
for (I = 0; I < CollCount (&O->Strings); ++I) {
@@ -164,7 +165,7 @@ void DelObjData (const char* Module)
}
/* Not found! */
Warning ("Module `%s' not found in library", Module);
Warning ("Module `%s' not found in library `%s'", Module, LibName);
}