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:
@@ -54,3 +54,15 @@ StringPool StrPool = STATIC_STRINGPOOL_INITIALIZER;
|
||||
|
||||
|
||||
|
||||
void InitStrPool (void)
|
||||
/* Initialize the string pool */
|
||||
{
|
||||
/* We insert a first string here, which will have id zero. This means
|
||||
* that we can treat index zero later as invalid.
|
||||
*/
|
||||
SP_Add (&StrPool, "<invalid message #0>");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user