error.h revision 114402
1263970Sdes// -*- C++ -*-
2224642Sbrooks/* Copyright (C) 1989, 1990, 1991, 1992, 2003 Free Software Foundation, Inc.
392559Sdes     Written by James Clark (jjc@jclark.com)
457429Smarkm
557429SmarkmThis file is part of groff.
657429Smarkm
757429Smarkmgroff is free software; you can redistribute it and/or modify it under
857429Smarkmthe terms of the GNU General Public License as published by the Free
960576SkrisSoftware Foundation; either version 2, or (at your option) any later
1065674Skrisversion.
1165674Skris
1265674Skrisgroff is distributed in the hope that it will be useful, but WITHOUT ANY
1365674SkrisWARRANTY; without even the implied warranty of MERCHANTABILITY or
1465674SkrisFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1557429Smarkmfor more details.
1657429Smarkm
1757429SmarkmYou should have received a copy of the GNU General Public License along
1857429Smarkmwith groff; see the file COPYING.  If not, write to the Free Software
1957429SmarkmFoundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
2057429Smarkm
2157429Smarkmextern void fatal_with_file_and_line(const char *filename, int lineno,
2257429Smarkm				     const char *format,
2357429Smarkm				     const errarg &arg1 = empty_errarg,
2457429Smarkm				     const errarg &arg2 = empty_errarg,
2557429Smarkm				     const errarg &arg3 = empty_errarg);
2665674Skris
2776262Sgreenextern void error_with_file_and_line(const char *filename, int lineno,
28204917Sdes				     const char *format,
29137019Sdes				     const errarg &arg1 = empty_errarg,
30162856Sdes				     const errarg &arg2 = empty_errarg,
31247485Sdes				     const errarg &arg3 = empty_errarg);
32251135Sdes
3357429Smarkmextern void warning_with_file_and_line(const char *filename, int lineno,
3476262Sgreen				     const char *format,
3576262Sgreen				     const errarg &arg1 = empty_errarg,
3676262Sgreen				     const errarg &arg2 = empty_errarg,
3776262Sgreen				     const errarg &arg3 = empty_errarg);
3876262Sgreen
3976262Sgreenextern void fatal(const char *,
4076262Sgreen		  const errarg &arg1 = empty_errarg,
41247485Sdes		  const errarg &arg2 = empty_errarg,
42247485Sdes		  const errarg &arg3 = empty_errarg);
43247485Sdes
44247485Sdesextern void error(const char *,
45247485Sdes		  const errarg &arg1 = empty_errarg,
46251135Sdes		  const errarg &arg2 = empty_errarg,
47251135Sdes		  const errarg &arg3 = empty_errarg);
48251135Sdes
49251135Sdesextern void warning(const char *,
50251135Sdes		    const errarg &arg1 = empty_errarg,
51251135Sdes		    const errarg &arg2 = empty_errarg,
52137019Sdes		    const errarg &arg3 = empty_errarg);
53181111Sdes
5476262Sgreen
55181111Sdesextern const char *program_name;
56181111Sdesextern int current_lineno;
57181111Sdesextern const char *current_filename;
5857429Smarkmextern const char *current_source_filename;
59192595Sdes