X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=disassembler%2Fargs.h;h=6af5b8d76cdd50c53c415a563cff9f369f2bd704;hb=6c31b6389e3e1d944799847700e62dfde7754663;hp=67f1e4539e93a7abb1248d2faf783f50d906326a;hpb=818c430fb65cc84d9fa2b1ef3808fa57ac5692f6;p=b43-tools.git diff --git a/disassembler/args.h b/disassembler/args.h index 67f1e45..6af5b8d 100644 --- a/disassembler/args.h +++ b/disassembler/args.h @@ -8,6 +8,7 @@ enum fwformat { }; struct cmdline_args { + int debug; /* Debug level. */ unsigned int arch; /* The architecture we're disassembling. */ enum fwformat informat; /* The input file format. */ int print_addresses; /* Print a comment with instruction address. */ @@ -21,11 +22,10 @@ void close_input_file(void); int open_output_file(void); void close_output_file(void); -extern int _debug; extern struct cmdline_args cmdargs; -#define IS_DEBUG (_debug > 0) -#define IS_VERBOSE_DEBUG (_debug > 1) -#define IS_INSANE_DEBUG (_debug > 2) +#define IS_DEBUG (cmdargs.debug > 0) +#define IS_VERBOSE_DEBUG (cmdargs.debug > 1) +#define IS_INSANE_DEBUG (cmdargs.debug > 2) #endif /* B43_DASM_ARGS_H_ */