Implementation of StringPool has changed.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5242 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
|
||||
|
||||
|
||||
StringPool StrPool = STATIC_STRINGPOOL_INITIALIZER;
|
||||
StringPool* StrPool = 0;
|
||||
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ void WriteStrPool (void)
|
||||
unsigned I;
|
||||
|
||||
/* Get the number of strings in the string pool */
|
||||
unsigned Count = SP_GetCount (&StrPool);
|
||||
unsigned Count = SP_GetCount (StrPool);
|
||||
|
||||
/* Tell the object file module that we're about to start the string pool */
|
||||
ObjStartStrPool ();
|
||||
@@ -71,7 +71,7 @@ void WriteStrPool (void)
|
||||
|
||||
/* Write the strings in id order */
|
||||
for (I = 0; I < Count; ++I) {
|
||||
ObjWriteBuf (SP_Get (&StrPool, I));
|
||||
ObjWriteBuf (SP_Get (StrPool, I));
|
||||
}
|
||||
|
||||
/* Done writing the string pool */
|
||||
@@ -80,3 +80,11 @@ void WriteStrPool (void)
|
||||
|
||||
|
||||
|
||||
void InitStrPool (void)
|
||||
/* Initialize the string pool */
|
||||
{
|
||||
StrPool = NewStringPool (1103);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user