Added assertions
git-svn-id: svn://svn.cc65.org/cc65/trunk@2202 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -88,6 +88,8 @@ ObjData* NewObjData (void)
|
||||
O->LineInfos = 0;
|
||||
O->StringCount = 0;
|
||||
O->Strings = 0;
|
||||
O->AssertionCount = 0;
|
||||
O->Assertions = 0;
|
||||
|
||||
/* Return the new entry */
|
||||
return O;
|
||||
@@ -135,6 +137,24 @@ void InsertObjData (ObjData* O)
|
||||
|
||||
|
||||
|
||||
void InsertObjGlobals (ObjData* O)
|
||||
/* Insert imports and exports from the object file into the global import and
|
||||
* export lists.
|
||||
*/
|
||||
{
|
||||
unsigned I;
|
||||
|
||||
/* Insert exports and imports */
|
||||
for (I = 0; I < O->ExportCount; ++I) {
|
||||
InsertExport (O->Exports[I]);
|
||||
}
|
||||
for (I = 0; I < O->ImportCount; ++I) {
|
||||
InsertImport (O->Imports[I]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
unsigned MakeGlobalStringId (const ObjData* O, unsigned Index)
|
||||
/* Convert a local string id into a global one and return it. */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user