Use collections in the object file structure instead of managing the items
manually. git-svn-id: svn://svn.cc65.org/cc65/trunk@4773 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998-2005 Ullrich von Bassewitz */
|
||||
/* R<EFBFBD>merstra<EFBFBD>e 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* (C) 1998-2010, Ullrich von Bassewitz */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* */
|
||||
/* */
|
||||
/* This software is provided 'as-is', without any expressed or implied */
|
||||
@@ -259,17 +259,15 @@ static void LibCheckExports (ObjData* O)
|
||||
unsigned I;
|
||||
|
||||
/* Check all exports */
|
||||
for (I = 0; I < O->ExportCount; ++I) {
|
||||
if (IsUnresolved (O->Exports[I]->Name)) {
|
||||
/* We need this module */
|
||||
O->Flags |= OBJ_REF; break;
|
||||
for (I = 0; I < CollCount (&O->Exports); ++I) {
|
||||
const Export* E = CollConstAt (&O->Exports, I);
|
||||
if (IsUnresolved (E->Name)) {
|
||||
/* We need this module, insert the imports and exports */
|
||||
O->Flags |= OBJ_REF;
|
||||
InsertObjGlobals (O);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* If we need this module, insert the imports and exports */
|
||||
if (O->Flags & OBJ_REF) {
|
||||
InsertObjGlobals (O);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user