Use a string pool to reduce the memory footprint
git-svn-id: svn://svn.cc65.org/cc65/trunk@2197 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -98,11 +98,19 @@ extern ObjData* ObjLast; /* Last entry in list */
|
||||
ObjData* NewObjData (void);
|
||||
/* Allocate a new structure on the heap, insert it into the list, return it */
|
||||
|
||||
const char* GetObjString (const ObjData* O, unsigned long Index);
|
||||
void FreeObjStrings (ObjData* O);
|
||||
/* Free the module string data. Used once the object file is loaded completely
|
||||
* when all strings are converted to global strings.
|
||||
*/
|
||||
|
||||
const char* GetObjString (const ObjData* O, unsigned Index);
|
||||
/* Get a string from the object file string table. Abort if the string index
|
||||
* is invalid.
|
||||
*/
|
||||
|
||||
unsigned MakeGlobalStringId (const ObjData* O, unsigned Index);
|
||||
/* Convert a local string id into a global one and return it. */
|
||||
|
||||
const char* GetObjFileName (const ObjData* O);
|
||||
/* Get the name of the object file. Return "[linker generated]" if the object
|
||||
* file is NULL.
|
||||
|
||||
Reference in New Issue
Block a user