2 /* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002
3 Free Software Foundation, Inc.
4 Written by James Clark (jjc@jclark.com)
6 This file is part of groff.
8 groff is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2, or (at your option) any later
13 groff is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 You should have received a copy of the GNU General Public License along
19 with groff; see the file COPYING. If not, write to the Free Software
20 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
34 #include "searchpath.h"
36 void cleanup_and_exit(int n);
40 extern units scale(units n, units x, units y); // scale n by x/y
42 extern units units_per_inch;
44 extern int ascii_output_flag;
45 extern int suppress_output_flag;
46 extern int color_flag;
49 extern int tcommand_flag;
50 extern int vresolution;
51 extern int hresolution;
54 extern search_path *mac_path;
74 WARN_RIGHT_BRACE = 010000,
75 WARN_MISSING = 020000,
77 WARN_ESCAPE = 0100000,
82 // change WARN_TOTAL if you add more warning types
85 const int WARN_TOTAL = 02777777;
87 int warning(warning_type, const char *,
88 const errarg & = empty_errarg,
89 const errarg & = empty_errarg,
90 const errarg & = empty_errarg);
91 int output_warning(warning_type, const char *,
92 const errarg & = empty_errarg,
93 const errarg & = empty_errarg,
94 const errarg & = empty_errarg);