]> git.sur5r.net Git - cc65/blobdiff - src/cc65/textseg.c
Fixed two compiler warnings.
[cc65] / src / cc65 / textseg.c
index f15f13f1821227a2a797a3b4a4ac259c926a6fbc..172a1c45023e9cde67007aa358b8eeab3af8f10a 100644 (file)
@@ -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       */
@@ -44,6 +44,7 @@
 #include "xsprintf.h"
 
 /* cc65 */
+#include "output.h"
 #include "textseg.h"
 
 
@@ -84,7 +85,7 @@ void TS_AddVLine (TextSeg* S, const char* Format, va_list ap)
 
 
 void TS_AddLine (TextSeg* S, const char* Format, ...)
-/* Add a line to the given text segment */           
+/* Add a line to the given text segment */
 {
     va_list ap;
     va_start (ap, Format);
@@ -94,8 +95,8 @@ void TS_AddLine (TextSeg* S, const char* Format, ...)
 
 
 
-void TS_Output (const TextSeg* S, FILE* F)
-/* Output the text segment data to a file */
+void TS_Output (const TextSeg* S)
+/* Output the text segment data to the output file */
 {
     unsigned I;
 
@@ -109,11 +110,11 @@ void TS_Output (const TextSeg* S, FILE* F)
 
     /* Output all entries */
     for (I = 0; I < Count; ++I) {
-       fprintf (F, "%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 */
-    fprintf (F, "\n");
+    WriteOutput ("\n");
 }