X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fdataseg.c;h=c19791e9e43e0c264c232b922c0887bc50c24197;hb=85885001b133e2dc320b6f6459259afa69784ca8;hp=ebb033cbc2058515dcf07ea61e7cdf88dbac7743;hpb=44fd1082ae807a0b6b4046c65914e20a7e27101c;p=cc65 diff --git a/src/cc65/dataseg.c b/src/cc65/dataseg.c index ebb033cbc..c19791e9e 100644 --- a/src/cc65/dataseg.c +++ b/src/cc65/dataseg.c @@ -1,8 +1,8 @@ /*****************************************************************************/ /* */ -/* dataseg.c */ +/* dataseg.c */ /* */ -/* Data segment structure */ +/* Data segment structure */ /* */ /* */ /* */ @@ -46,7 +46,7 @@ /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ @@ -55,11 +55,11 @@ DataSeg* NewDataSeg (const char* Name, SymEntry* Func) /* Create a new data segment, initialize and return it */ { /* Allocate memory */ - DataSeg* S = xmalloc (sizeof (DataSeg)); + DataSeg* S = xmalloc (sizeof (DataSeg)); /* Initialize the fields */ - S->SegName = xstrdup (Name); - S->Func = Func; + S->SegName = xstrdup (Name); + S->Func = Func; InitCollection (&S->Lines); /* Return the new struct */ @@ -76,7 +76,7 @@ void DS_Append (DataSeg* Target, const DataSeg* Source) /* Append all lines from Source to Target */ unsigned Count = CollCount (&Source->Lines); for (I = 0; I < Count; ++I) { - CollAppend (&Target->Lines, xstrdup (CollConstAt (&Source->Lines, I))); + CollAppend (&Target->Lines, xstrdup (CollConstAt (&Source->Lines, I))); } } @@ -116,7 +116,7 @@ void DS_Output (const DataSeg* S) /* If the segment is actually empty, bail out */ if (Count == 0) { - return; + return; } /* Output the segment directive */ @@ -124,7 +124,7 @@ void DS_Output (const DataSeg* S) /* Output all entries */ for (I = 0; I < Count; ++I) { - WriteOutput ("%s\n", (const char*) CollConstAt (&S->Lines, I)); + WriteOutput ("%s\n", (const char*) CollConstAt (&S->Lines, I)); } /* Add an additional newline after the segment output */