]> git.sur5r.net Git - cc65/blobdiff - src/cc65/dataseg.h
- fixed an old #include guard typo
[cc65] / src / cc65 / dataseg.h
index 50d692af781cf291c751cd83575072f6f1f39bd2..dd99d4727420c58d4628cd61c0ca7cffa5653630 100644 (file)
@@ -1,15 +1,15 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                dataseg.h                                 */
+/*                                 dataseg.h                                 */
 /*                                                                           */
-/*                         Data segment structure                           */
+/*                          Data segment structure                           */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (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"
 
 
 /*****************************************************************************/
-/*                                  Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
 
 typedef struct DataSeg DataSeg;
 struct DataSeg {
-    char*              SegName;        /* Segment name */
-    SymEntry*          Func;           /* Owner function */
-    Collection                 Lines;          /* List of code lines */
+    char*               SegName;        /* Segment name */
+    SymEntry*           Func;           /* Owner function */
+    Collection          Lines;          /* List of code lines */
 };
 
 
 
 /*****************************************************************************/
-/*                                          Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
@@ -74,19 +73,20 @@ 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 */
 
-/* End of dataseg.h */
-#endif
 
 
+/* End of dataseg.h */
 
+#endif