Use a separate structure for file infos instead of just the name.

git-svn-id: svn://svn.cc65.org/cc65/trunk@749 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2001-05-23 21:32:57 +00:00
parent bfbedfa54b
commit 275da22a66
9 changed files with 181 additions and 12 deletions

View File

@@ -41,6 +41,7 @@
/* ld65 */
#include "error.h"
#include "fileinfo.h"
#include "objdata.h"
@@ -110,7 +111,7 @@ void FreeObjData (ObjData* O)
xfree (O->Name);
xfree (O->Imports);
xfree (O->Exports);
xfree (O->DbgSyms);
xfree (O->DbgSyms);
xfree (O->LineInfos);
xfree (O);
}
@@ -144,7 +145,7 @@ const char* GetSourceFileName (const ObjData* O, unsigned Index)
PRECONDITION (Index < O->FileCount);
/* Return the name */
return O->Files[Index];
return O->Files[Index]->Name;
}
}