]> git.sur5r.net Git - cc65/blobdiff - src/cc65/dataseg.h
Added better code to replace tossubax.
[cc65] / src / cc65 / dataseg.h
index 50d692af781cf291c751cd83575072f6f1f39bd2..dab06e893422993b60132ccf6b8e3890042cfe9e 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2001      Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2001-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -39,7 +39,6 @@
 
 
 #include <stdarg.h>
-#include <stdio.h>
 
 /* common */
 #include "attrib.h"
@@ -58,8 +57,8 @@
 
 typedef struct DataSeg DataSeg;
 struct DataSeg {
-    char*              SegName;        /* Segment name */
-    SymEntry*          Func;           /* Owner function */
+    char*                      SegName;        /* Segment name */
+    SymEntry*                  Func;           /* Owner function */
     Collection                 Lines;          /* List of code lines */
 };
 
@@ -74,14 +73,17 @@ struct DataSeg {
 DataSeg* NewDataSeg (const char* SegName, SymEntry* Func);
 /* Create a new data segment, initialize and return it */
 
-void AppendDataSeg (DataSeg* Target, const DataSeg* Source);
+void DS_Append (DataSeg* Target, const DataSeg* Source);
 /* Append the data from Source to Target. */
 
-void AddDataEntry (DataSeg* S, const char* Format, va_list ap) attribute ((format(printf,2,0)));
+void DS_AddVLine (DataSeg* S, const char* Format, va_list ap) attribute ((format(printf,2,0)));
 /* Add a line to the given data segment */
 
-void OutputDataSeg (const DataSeg* S, FILE* F);
-/* Output the data segment data to a file */
+void DS_AddLine (DataSeg* S, const char* Format, ...) attribute ((format(printf,2,3)));
+/* Add a line to the given data segment */
+
+void DS_Output (const DataSeg* S);
+/* Output the data segment data to the output file */