X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fdataseg.h;h=dab06e893422993b60132ccf6b8e3890042cfe9e;hb=08d6d96264434cce1e437b92093820e46914edf7;hp=50d692af781cf291c751cd83575072f6f1f39bd2;hpb=3ff4baeafb23d7bc3a67c67f53ba49bdf1067f7c;p=cc65 diff --git a/src/cc65/dataseg.h b/src/cc65/dataseg.h index 50d692af7..dab06e893 100644 --- a/src/cc65/dataseg.h +++ b/src/cc65/dataseg.h @@ -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 -#include /* 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 */