First finished implementation of the condes feature

git-svn-id: svn://svn.cc65.org/cc65/trunk@456 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-11-20 21:56:48 +00:00
parent 7646787a6e
commit 518220f9cf
16 changed files with 433 additions and 122 deletions

View File

@@ -6,10 +6,10 @@
/* */
/* */
/* */
/* (C) 1998 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
/* (C) 1998-2000 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
@@ -35,8 +35,11 @@
#include <string.h>
#include "../common/xmalloc.h"
/* common */
#include "check.h"
#include "xmalloc.h"
/* ld65 */
#include "error.h"
#include "objdata.h"
@@ -111,3 +114,38 @@ void FreeObjData (ObjData* O)
const char* GetObjFileName (const ObjData* O)
/* Get the name of the object file. Return "(linker generated)" if the object
* file is NULL.
*/
{
return O? O->Name : "(linker generated)";
}
const char* GetSourceFileName (const ObjData* O, unsigned Index)
/* Get the name of the source file with the given index. If O is NULL, return
* "(linker generated)" as the file name.
*/
{
/* Check if we have an object file */
if (O == 0) {
/* No object file */
return "(linker generated)";
} else {
/* Check the parameter */
PRECONDITION (Index < O->FileCount);
/* Return the name */
return O->Files[Index];
}
}