1
0
mirror of https://github.com/cc65/cc65.git synced 2025-04-08 19:38:55 +00:00

More renaming

git-svn-id: svn://svn.cc65.org/cc65/trunk@769 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-06-03 09:10:46 +00:00
parent f42300ef62
commit d27bfe8a7b
8 changed files with 23 additions and 22 deletions

View File

@ -220,7 +220,7 @@ static void OutputDataLine (DataSeg* S, const char* Format, ...)
{
va_list ap;
va_start (ap, Format);
AddDataEntry (S, Format, ap);
DS_AddLine (S, Format, ap);
va_end (ap);
}

View File

@ -426,7 +426,7 @@ void CS_AddEntry (CodeSeg* S, struct CodeEntry* E, LineInfo* LI)
void CS_AddEntryLine (CodeSeg* S, LineInfo* LI, const char* Format, va_list ap)
void CS_AddLine (CodeSeg* S, LineInfo* LI, const char* Format, va_list ap)
/* Add a line to the given code segment */
{
const char* L;

View File

@ -97,7 +97,7 @@ CodeSeg* NewCodeSeg (const char* SegName, SymEntry* Func);
void CS_AddEntry (CodeSeg* S, struct CodeEntry* E, LineInfo* LI);
/* Add an entry to the given code segment */
void CS_AddEntryLine (CodeSeg* S, LineInfo* LI, const char* Format, va_list ap) attribute ((format(printf,3,0)));
void CS_AddLine (CodeSeg* S, LineInfo* LI, const char* Format, va_list ap) attribute ((format(printf,3,0)));
/* Add a line to the given code segment */
void CS_InsertEntry (CodeSeg* S, struct CodeEntry* E, unsigned Index);

View File

@ -67,7 +67,7 @@ DataSeg* NewDataSeg (const char* Name, SymEntry* Func)
void AppendDataSeg (DataSeg* Target, const DataSeg* Source)
void DS_Append (DataSeg* Target, const DataSeg* Source)
/* Append the data from Source to Target */
{
unsigned I;
@ -81,7 +81,7 @@ void AppendDataSeg (DataSeg* Target, const DataSeg* Source)
void AddDataEntry (DataSeg* S, const char* Format, va_list ap)
void DS_AddLine (DataSeg* S, const char* Format, va_list ap)
/* Add a line to the given data segment */
{
/* Format the line */
@ -94,7 +94,7 @@ void AddDataEntry (DataSeg* S, const char* Format, va_list ap)
void OutputDataSeg (const DataSeg* S, FILE* F)
void DS_Output (const DataSeg* S, FILE* F)
/* Output the data segment data to a file */
{
unsigned I;
@ -121,3 +121,4 @@ void OutputDataSeg (const DataSeg* S, FILE* F)

View File

@ -58,8 +58,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,13 +74,13 @@ 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_AddLine (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);
void DS_Output (const DataSeg* S, FILE* F);
/* Output the data segment data to a file */

View File

@ -201,7 +201,7 @@ void AddTextLine (const char* Format, ...)
va_list ap;
va_start (ap, Format);
CHECK (CS != 0);
AddTextEntry (CS->Text, Format, ap);
TS_AddLine (CS->Text, Format, ap);
va_end (ap);
}
@ -213,7 +213,7 @@ void AddCodeLine (const char* Format, ...)
va_list ap;
va_start (ap, Format);
CHECK (CS != 0);
CS_AddEntryLine (CS->Code, CurTok.LI, Format, ap);
CS_AddLine (CS->Code, CurTok.LI, Format, ap);
va_end (ap);
}
@ -234,7 +234,7 @@ void AddDataLine (const char* Format, ...)
va_list ap;
va_start (ap, Format);
CHECK (CS != 0);
AddDataEntry (GetDataSeg(), Format, ap);
DS_AddLine (GetDataSeg(), Format, ap);
va_end (ap);
}
@ -264,12 +264,12 @@ void OutputSegments (const Segments* S, FILE* F)
}
/* Output the text segment */
OutputTextSeg (S->Text, F);
TS_Output (S->Text, F);
/* Output the three data segments */
OutputDataSeg (S->Data, F);
OutputDataSeg (S->ROData, F);
OutputDataSeg (S->BSS, F);
DS_Output (S->Data, F);
DS_Output (S->ROData, F);
DS_Output (S->BSS, F);
/* Output the code segment */
CS_Output (S->Code, F);

View File

@ -70,7 +70,7 @@ TextSeg* NewTextSeg (SymEntry* Func)
void AddTextEntry (TextSeg* S, const char* Format, va_list ap)
void TS_AddLine (TextSeg* S, const char* Format, va_list ap)
/* Add a line to the given text segment */
{
/* Format the line */
@ -83,7 +83,7 @@ void AddTextEntry (TextSeg* S, const char* Format, va_list ap)
void OutputTextSeg (const TextSeg* S, FILE* F)
void TS_Output (const TextSeg* S, FILE* F)
/* Output the text segment data to a file */
{
unsigned I;

View File

@ -79,10 +79,10 @@ struct TextSeg {
TextSeg* NewTextSeg (SymEntry* Func);
/* Create a new text segment, initialize and return it */
void AddTextEntry (TextSeg* S, const char* Format, va_list ap) attribute ((format(printf,2,0)));
void TS_AddLine (TextSeg* S, const char* Format, va_list ap) attribute ((format(printf,2,0)));
/* Add a line to the given text segment */
void OutputTextSeg (const TextSeg* S, FILE* F);
void TS_Output (const TextSeg* S, FILE* F);
/* Output the text segment data to a file */