]> git.sur5r.net Git - cc65/blobdiff - src/sp65/bin.c
Merge remote-tracking branch 'upstream/master' into a5200
[cc65] / src / sp65 / bin.c
index 348e2ca11fe03e38fc366ce425947f2abf2c6360..48768b466f7530a8b4ace85fc233f6e0842172f1 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
+/* common */
+#include "attrib.h"
+
 /* sp65 */
+#include "attr.h"
 #include "bin.h"
 #include "error.h"
 
 
 
 
-void WiteBinFile (const char* Name, const StrBuf* Data)
+void WriteBinFile (const StrBuf* Data, const Collection* A, 
+                   const Bitmap* B attribute ((unused)))
 /* Write the contents of Data to the given file in binary format */
 {
     unsigned Size;
 
+    /* Get the file name */
+    const char* Name = NeedAttrVal (A, "name", "write");
+
     /* Open the output file */
     FILE* F = fopen (Name, "wb");
     if (F == 0) {
@@ -75,6 +83,3 @@ void WiteBinFile (const char* Name, const StrBuf* Data)
         Error ("Error closing output file `%s': %s", Name, strerror (errno));
     }
 }
-
-
-