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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user