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:
@@ -43,7 +43,3 @@
|
||||
|
||||
|
||||
|
||||
int Verbose = 0; /* Verbose operation flag */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -44,10 +44,6 @@
|
||||
|
||||
|
||||
|
||||
extern int Verbose; /* Verbose operation flag */
|
||||
|
||||
|
||||
|
||||
/* End of global.h */
|
||||
|
||||
#endif
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "exprdefs.h"
|
||||
#include "filepos.h"
|
||||
#include "libdefs.h"
|
||||
#include "print.h"
|
||||
#include "symdefs.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
@@ -385,11 +386,9 @@ static void LibCheckExports (ObjData* O)
|
||||
unsigned Count = GetVar (&Exports);
|
||||
|
||||
/* Read the exports */
|
||||
if (Verbose > 1) {
|
||||
printf ("Module `%s' (%u exports):\n", O->Name, Count);
|
||||
}
|
||||
Print (stdout, 1, "Module `%s' (%u exports):\n", O->Name, Count);
|
||||
while (Count--) {
|
||||
|
||||
|
||||
unsigned char Tag;
|
||||
unsigned Len;
|
||||
char* Name;
|
||||
@@ -420,9 +419,7 @@ static void LibCheckExports (ObjData* O)
|
||||
SkipFilePos (&Exports);
|
||||
|
||||
/* Insert the name into the hash table */
|
||||
if (Verbose > 1) {
|
||||
printf (" %s\n", Name);
|
||||
}
|
||||
Print (stdout, 1, " %s\n", Name);
|
||||
ExpInsert (Name, O->Index);
|
||||
|
||||
/* Free the name */
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
|
||||
/* common */
|
||||
#include "cmdline.h"
|
||||
#include "print.h"
|
||||
#include "version.h"
|
||||
|
||||
#include "global.h"
|
||||
@@ -79,7 +80,7 @@ int main (int argc, char* argv [])
|
||||
int I;
|
||||
|
||||
/* Initialize the cmdline module */
|
||||
InitCmdLine (&argc, &argv, "ar65");
|
||||
InitCmdLine (&argc, &argv, "ar65");
|
||||
|
||||
/* We must have a file name */
|
||||
if (ArgCount < 2) {
|
||||
@@ -112,7 +113,7 @@ int main (int argc, char* argv [])
|
||||
break;
|
||||
|
||||
case 'v':
|
||||
++Verbose;
|
||||
++Verbosity;
|
||||
break;
|
||||
|
||||
case 'x':
|
||||
|
||||
Reference in New Issue
Block a user