]> git.sur5r.net Git - cc65/blobdiff - src/ca65/objfile.c
Finished implemenation of commands to delete macros. Added the new commands to
[cc65] / src / ca65 / objfile.c
index 0adaaee54b9933135e25f9bd2b029a1a348d6825..f9fba1521141de0c06e30920ad7acf52e4217392 100644 (file)
@@ -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 */
 {