More stringpool use / memory savings
git-svn-id: svn://svn.cc65.org/cc65/trunk@2199 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -65,6 +65,7 @@ struct Import {
|
||||
FilePos Pos; /* File position of reference */
|
||||
struct Export* Exp; /* Matching export for this import */
|
||||
unsigned Name; /* Name if not in table */
|
||||
unsigned char Flags; /* Generic flags */
|
||||
unsigned char Type; /* Type of import */
|
||||
};
|
||||
|
||||
@@ -103,12 +104,24 @@ typedef int (*ExpCheckFunc) (unsigned Name, void* Data);
|
||||
|
||||
|
||||
|
||||
void FreeImport (Import* I);
|
||||
/* Free an import. NOTE: This won't remove the import from the exports table,
|
||||
* so it may only be called for unused imports (imports from modules that
|
||||
* aren't referenced).
|
||||
*/
|
||||
|
||||
Import* ReadImport (FILE* F, ObjData* Obj);
|
||||
/* Read an import from a file and insert it into the table */
|
||||
|
||||
void InsertImport (Import* I);
|
||||
/* Insert an import into the table */
|
||||
|
||||
void FreeExport (Export* E);
|
||||
/* Free an export. NOTE: This won't remove the export from the exports table,
|
||||
* so it may only be called for unused exports (exports from modules that
|
||||
* aren't referenced).
|
||||
*/
|
||||
|
||||
Export* ReadExport (FILE* F, ObjData* Obj);
|
||||
/* Read an export from a file */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user