X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fld65%2Fobjdata.c;h=5183c7d817c2f51660e1f914d4a842727e589893;hb=6ace6309cd760cdbde284fd0afcd4c744257c7a2;hp=ce88775dc74b30a4b8ae33066e1da22882a9d964;hpb=4ea94a9302b8946f452fe14667fa1deaba52bbe7;p=cc65 diff --git a/src/ld65/objdata.c b/src/ld65/objdata.c index ce88775dc..5183c7d81 100644 --- a/src/ld65/objdata.c +++ b/src/ld65/objdata.c @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998-2000 Ullrich von Bassewitz */ +/* (C) 1998-2001 Ullrich von Bassewitz */ /* Wacholderweg 14 */ /* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -41,6 +41,7 @@ /* ld65 */ #include "error.h" +#include "fileinfo.h" #include "objdata.h" @@ -83,6 +84,8 @@ ObjData* NewObjData (void) O->Imports = 0; O->DbgSymCount = 0; O->DbgSyms = 0; + O->LineInfoCount = 0; + O->LineInfos = 0; /* Link it into the list */ if (ObjLast) { @@ -109,6 +112,7 @@ void FreeObjData (ObjData* O) xfree (O->Imports); xfree (O->Exports); xfree (O->DbgSyms); + xfree (O->LineInfos); xfree (O); } @@ -141,9 +145,9 @@ const char* GetSourceFileName (const ObjData* O, unsigned Index) PRECONDITION (Index < O->FileCount); /* Return the name */ - return O->Files[Index]; + return O->Files[Index]->Name; - } + } }