annotate mode.h @ 28:8a955e3dda2c posted-20101220

two more tests, more fixes
author David A. Holland
date Mon, 20 Dec 2010 05:42:15 -0500
parents 40748b097655
children 76c114899f63
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20
40748b097655 add output.
David A. Holland
parents: 4
diff changeset
1 #include <stdbool.h>
40748b097655 add output.
David A. Holland
parents: 4
diff changeset
2
4
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
3 struct mode {
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
4 bool werror;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
5 bool input_allow_dollars;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
6 unsigned input_tabstop;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
7 bool do_stdinc;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
8 bool do_stddef;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
9 bool do_output;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
10 bool output_linenumbers;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
11 bool output_retain_comments;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
12 const char *output_file;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
13 bool do_depend;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
14 bool depend_report_system;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
15 bool depend_assume_generated;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
16 bool depend_issue_fakerules;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
17 bool depend_quote_target;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
18 const char *depend_target;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
19 const char *depend_file;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
20 bool do_macrolist;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
21 bool macrolist_include_stddef;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
22 bool macrolist_include_expansions;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
23 bool do_trace;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
24 bool trace_namesonly;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
25 bool trace_indented;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
26 };
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
27
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
28 struct warns {
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
29 bool endiflabels;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
30 bool nestcomment;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
31 bool undef;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
32 bool unused;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
33 };
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
34
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
35 extern struct mode mode;
ee9a66b87c70 Initial version of toplevel and options handling.
David A. Holland
parents:
diff changeset
36 extern struct warns warns;