diff mode.h @ 4:ee9a66b87c70

Initial version of toplevel and options handling.
author David A. Holland
date Sun, 19 Dec 2010 17:52:59 -0500
parents
children 40748b097655
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mode.h	Sun Dec 19 17:52:59 2010 -0500
@@ -0,0 +1,34 @@
+struct mode {
+	bool werror;
+	bool input_allow_dollars;
+	unsigned input_tabstop;
+	bool do_stdinc;
+	bool do_stddef;
+	bool do_output;
+	bool output_linenumbers;
+	bool output_retain_comments;
+	const char *output_file;
+	bool do_depend;
+	bool depend_report_system;
+	bool depend_assume_generated;
+	bool depend_issue_fakerules;
+	bool depend_quote_target;
+	const char *depend_target;
+	const char *depend_file;
+	bool do_macrolist;
+	bool macrolist_include_stddef;
+	bool macrolist_include_expansions;
+	bool do_trace;
+	bool trace_namesonly;
+	bool trace_indented;
+};
+
+struct warns {
+	bool endiflabels;
+	bool nestcomment;
+	bool undef;
+	bool unused;
+};
+
+extern struct mode mode;
+extern struct warns warns;