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:
@@ -38,6 +38,7 @@
|
||||
/* common */
|
||||
#include "check.h"
|
||||
#include "exprdefs.h"
|
||||
#include "print.h"
|
||||
#include "tgttrans.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
@@ -1036,7 +1037,7 @@ int IsConstExpr (ExprNode* Root)
|
||||
case EXPR_SYMBOL:
|
||||
Sym = Root->V.Sym;
|
||||
if (SymHasUserMark (Sym)) {
|
||||
if (Verbose) {
|
||||
if (Verbosity > 0) {
|
||||
DumpExpr (Root);
|
||||
}
|
||||
PError (GetSymPos (Sym), ERR_CIRCULAR_REFERENCE);
|
||||
@@ -1311,7 +1312,7 @@ static ExprNode* RemoveSyms (ExprNode* Expr, int MustClone)
|
||||
SymEntry* Sym = Expr->V.Sym;
|
||||
if (SymHasUserMark (Sym)) {
|
||||
/* Circular definition */
|
||||
if (Verbose) {
|
||||
if (Verbosity) {
|
||||
DumpExpr (Expr);
|
||||
}
|
||||
PError (GetSymPos (Sym), ERR_CIRCULAR_REFERENCE);
|
||||
|
||||
@@ -56,7 +56,6 @@ char LocalStart = '@'; /* This char starts local symbols */
|
||||
|
||||
unsigned char IgnoreCase = 0; /* Ignore case on identifiers? */
|
||||
unsigned char AutoImport = 0; /* Mark unresolveds as import */
|
||||
unsigned char Verbose = 0; /* Verbose operation flag */
|
||||
unsigned char SmartMode = 0; /* Smart mode */
|
||||
unsigned char DbgSyms = 0; /* Add debug symbols */
|
||||
unsigned char Listing = 0; /* Create listing file */
|
||||
|
||||
@@ -57,7 +57,6 @@ extern char LocalStart; /* This char starts local symbols */
|
||||
|
||||
extern unsigned char IgnoreCase; /* Ignore case on identifiers? */
|
||||
extern unsigned char AutoImport; /* Mark unresolveds as import */
|
||||
extern unsigned char Verbose; /* Verbose operation flag */
|
||||
extern unsigned char SmartMode; /* Smart mode */
|
||||
extern unsigned char DbgSyms; /* Add debug symbols */
|
||||
extern unsigned char Listing; /* Create listing file */
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
/* common */
|
||||
#include "chartype.h"
|
||||
#include "cmdline.h"
|
||||
#include "print.h"
|
||||
#include "target.h"
|
||||
#include "tgttrans.h"
|
||||
#include "version.h"
|
||||
@@ -313,7 +314,7 @@ static void OptTarget (const char* Opt, const char* Arg)
|
||||
static void OptVerbose (const char* Opt, const char* Arg)
|
||||
/* Increase verbosity */
|
||||
{
|
||||
++Verbose;
|
||||
++Verbosity;
|
||||
}
|
||||
|
||||
|
||||
@@ -636,7 +637,7 @@ int main (int argc, char* argv [])
|
||||
}
|
||||
|
||||
/* Dump the data */
|
||||
if (Verbose >= 2) {
|
||||
if (Verbosity >= 2) {
|
||||
SymDump (stdout);
|
||||
SegDump ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user