Make much more usage of dynamic strings (StrBufs) instead of char* and
friends. Since names and other strings are now StrBufs in many places, code for output had to be changed. Added support for string literals to StrBuf. git-svn-id: svn://svn.cc65.org/cc65/trunk@3825 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -57,7 +57,7 @@ StringPool StrPool = STATIC_STRINGPOOL_INITIALIZER;
|
||||
|
||||
void WriteStrPool (void)
|
||||
/* Write the string pool to the object file */
|
||||
{
|
||||
{
|
||||
unsigned I;
|
||||
|
||||
/* Get the number of strings in the string pool */
|
||||
@@ -71,7 +71,7 @@ void WriteStrPool (void)
|
||||
|
||||
/* Write the strings in id order */
|
||||
for (I = 0; I < Count; ++I) {
|
||||
ObjWriteStr (SP_Get (&StrPool, I));
|
||||
ObjWriteBuf (SP_Get (&StrPool, I));
|
||||
}
|
||||
|
||||
/* Done writing the string pool */
|
||||
|
||||
Reference in New Issue
Block a user