Adapted to new line infos and spans as written to the object file by the

assembler.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5163 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-14 19:24:03 +00:00
parent b8549f0af8
commit 17e2276f38
13 changed files with 105 additions and 204 deletions

View File

@@ -81,6 +81,7 @@ ObjData* NewObjData (void)
O->Flags = 0;
O->SymBaseId = 0;
O->ScopeBaseId = 0;
O->SpanBaseId = 0;
O->Files = EmptyCollection;
O->Sections = EmptyCollection;
O->Exports = EmptyCollection;
@@ -91,6 +92,7 @@ ObjData* NewObjData (void)
O->Strings = 0;
O->Assertions = EmptyCollection;
O->Scopes = EmptyCollection;
O->Spans = EmptyCollection;
/* Return the new entry */
return O;
@@ -128,6 +130,11 @@ void FreeObjData (ObjData* O)
xfree (O->Strings);
DoneCollection (&O->Assertions);
DoneCollection (&O->Scopes);
for (I = 0; I < CollCount (&O->Spans); ++I) {
FreeSpan (CollAtUnchecked (&O->Spans, I));
}
DoneCollection (&O->Spans);
xfree (O);
}