fwcutter/make: Avoid _DEFAULT_SOURCE warning
[b43-tools.git] / disassembler / args.h
index 0cb372cc0cb54c7ac94f75a4bcbb3cb1638a529c..6af5b8d76cdd50c53c415a563cff9f369f2bd704 100644 (file)
@@ -8,9 +8,11 @@ enum fwformat {
 };
 
 struct cmdline_args {
-       unsigned int arch;
-       enum fwformat informat;
-       int print_addresses;
+       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. */
+       int unknown_decode;             /* Decode operands of unknown instructions. */
 };
 
 int parse_args(int argc, char **argv);
@@ -20,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_ */