/*****************************************************************************/
/* */
-/* 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 */
#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 */
/*****************************************************************************/
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