1*31615c96Sdholland /*- 2*31615c96Sdholland * Copyright (c) 2010 The NetBSD Foundation, Inc. 3*31615c96Sdholland * All rights reserved. 4*31615c96Sdholland * 5*31615c96Sdholland * This code is derived from software contributed to The NetBSD Foundation 6*31615c96Sdholland * by David A. Holland. 7*31615c96Sdholland * 8*31615c96Sdholland * Redistribution and use in source and binary forms, with or without 9*31615c96Sdholland * modification, are permitted provided that the following conditions 10*31615c96Sdholland * are met: 11*31615c96Sdholland * 1. Redistributions of source code must retain the above copyright 12*31615c96Sdholland * notice, this list of conditions and the following disclaimer. 13*31615c96Sdholland * 2. Redistributions in binary form must reproduce the above copyright 14*31615c96Sdholland * notice, this list of conditions and the following disclaimer in the 15*31615c96Sdholland * documentation and/or other materials provided with the distribution. 16*31615c96Sdholland * 17*31615c96Sdholland * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 18*31615c96Sdholland * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19*31615c96Sdholland * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20*31615c96Sdholland * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 21*31615c96Sdholland * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22*31615c96Sdholland * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23*31615c96Sdholland * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24*31615c96Sdholland * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25*31615c96Sdholland * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26*31615c96Sdholland * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27*31615c96Sdholland * POSSIBILITY OF SUCH DAMAGE. 28*31615c96Sdholland */ 29*31615c96Sdholland 30*31615c96Sdholland #include "bool.h" 31*31615c96Sdholland 32*31615c96Sdholland struct mode { 33*31615c96Sdholland bool werror; 34*31615c96Sdholland bool input_allow_dollars; 35*31615c96Sdholland unsigned input_tabstop; 36*31615c96Sdholland bool do_stdinc; 37*31615c96Sdholland bool do_stddef; 38*31615c96Sdholland bool do_output; 39*31615c96Sdholland bool output_linenumbers; 40*31615c96Sdholland bool output_cheaplinenumbers; 41*31615c96Sdholland bool output_retain_comments; 42*31615c96Sdholland const char *output_file; 43*31615c96Sdholland bool do_depend; 44*31615c96Sdholland bool depend_report_system; 45*31615c96Sdholland bool depend_assume_generated; 46*31615c96Sdholland bool depend_issue_fakerules; 47*31615c96Sdholland bool depend_quote_target; 48*31615c96Sdholland const char *depend_target; 49*31615c96Sdholland const char *depend_file; 50*31615c96Sdholland bool do_macrolist; 51*31615c96Sdholland bool macrolist_include_stddef; 52*31615c96Sdholland bool macrolist_include_expansions; 53*31615c96Sdholland bool do_trace; 54*31615c96Sdholland bool trace_namesonly; 55*31615c96Sdholland bool trace_indented; 56*31615c96Sdholland }; 57*31615c96Sdholland 58*31615c96Sdholland struct warns { 59*31615c96Sdholland bool endiflabels; 60*31615c96Sdholland bool nestcomment; 61*31615c96Sdholland bool undef; 62*31615c96Sdholland bool unused; 63*31615c96Sdholland }; 64*31615c96Sdholland 65*31615c96Sdholland extern struct mode mode; 66*31615c96Sdholland extern struct warns warns; 67