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:
@@ -296,6 +296,19 @@ void ObjWriteStr (const char* S)
|
||||
|
||||
|
||||
|
||||
void ObjWriteBuf (const StrBuf* S)
|
||||
/* Write a string to the object file */
|
||||
{
|
||||
/* Write the string with the length preceeded (this is easier for
|
||||
* the reading routine than the C format since the length is known in
|
||||
* advance).
|
||||
*/
|
||||
ObjWriteVar (SB_GetLen (S));
|
||||
ObjWriteData (SB_GetConstBuf (S), SB_GetLen (S));
|
||||
}
|
||||
|
||||
|
||||
|
||||
void ObjWriteData (const void* Data, unsigned Size)
|
||||
/* Write literal data to the file */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user