Moved verbose output to a shared module in the common/ directory.

git-svn-id: svn://svn.cc65.org/cc65/trunk@619 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2001-03-10 10:21:03 +00:00
parent d10079ccdc
commit 1eff067ff9
28 changed files with 53 additions and 76 deletions

View File

@@ -33,7 +33,6 @@
#include <stdio.h>
#include <stdarg.h>
/* common */
@@ -57,7 +56,7 @@ unsigned char Verbosity = 0; /* Verbose operation flag */
void Print (unsigned V, const char* Format, ...)
void Print (FILE* F, unsigned V, const char* Format, ...)
/* Output according to Verbosity */
{
va_list ap;
@@ -70,7 +69,7 @@ void Print (unsigned V, const char* Format, ...)
/* Output */
va_start (ap, Format);
vprintf (Format, ap);
vfprintf (F, Format, ap);
va_end (ap);
}

View File

@@ -38,13 +38,15 @@
#include <stdio.h>
/* common */
#include "attrib.h"
/*****************************************************************************/
/* Data */
/* Data */
/*****************************************************************************/
@@ -59,7 +61,8 @@ extern unsigned char Verbosity; /* Verbose operation flag */
void Print (unsigned V, const char* Format, ...) attribute ((format (printf, 2, 3)));
void Print (FILE* F, unsigned V, const char* Format, ...)
attribute ((format (printf, 3, 4)));
/* Output according to Verbosity */