2 /* Copyright (C) 1989-2014 Free Software Foundation, Inc.
3 Written by James Clark (jjc@jclark.com)
5 This file is part of groff.
7 groff is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 groff is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
32 #include "searchpath.h"
36 extern units scale(units n, units x, units y); // scale n by x/y
38 extern units units_per_inch;
40 extern int ascii_output_flag;
41 extern int suppress_output_flag;
42 extern int color_flag;
45 extern int tcommand_flag;
46 extern int vresolution;
47 extern int hresolution;
50 extern search_path *mac_path;
70 WARN_RIGHT_BRACE = 010000,
71 WARN_MISSING = 020000,
73 WARN_ESCAPE = 0100000,
77 WARN_COLOR = 02000000,
79 // change WARN_TOTAL if you add more warning types
82 const int WARN_TOTAL = 07777777;
84 int warning(warning_type, const char *,
85 const errarg & = empty_errarg,
86 const errarg & = empty_errarg,
87 const errarg & = empty_errarg);
88 int output_warning(warning_type, const char *,
89 const errarg & = empty_errarg,
90 const errarg & = empty_errarg,
91 const errarg & = empty_errarg);