error.h revision 75584
175584Sru// -*- C++ -*-
275584Sru/* Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
375584Sru     Written by James Clark (jjc@jclark.com)
475584Sru
575584SruThis file is part of groff.
675584Sru
775584Srugroff is free software; you can redistribute it and/or modify it under
875584Sruthe terms of the GNU General Public License as published by the Free
975584SruSoftware Foundation; either version 2, or (at your option) any later
1075584Sruversion.
1175584Sru
1275584Srugroff is distributed in the hope that it will be useful, but WITHOUT ANY
1375584SruWARRANTY; without even the implied warranty of MERCHANTABILITY or
1475584SruFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1575584Srufor more details.
1675584Sru
1775584SruYou should have received a copy of the GNU General Public License along
1875584Sruwith groff; see the file COPYING.  If not, write to the Free Software
1975584SruFoundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
2075584Sru
2175584Sruextern void fatal_with_file_and_line(const char *filename, int lineno,
2275584Sru				     const char *format,
2375584Sru				     const errarg &arg1 = empty_errarg,
2475584Sru				     const errarg &arg2 = empty_errarg,
2575584Sru				     const errarg &arg3 = empty_errarg);
2675584Sru
2775584Sruextern void error_with_file_and_line(const char *filename, int lineno,
2875584Sru				     const char *format,
2975584Sru				     const errarg &arg1 = empty_errarg,
3075584Sru				     const errarg &arg2 = empty_errarg,
3175584Sru				     const errarg &arg3 = empty_errarg);
3275584Sru
3375584Sruextern void warning_with_file_and_line(const char *filename, int lineno,
3475584Sru				     const char *format,
3575584Sru				     const errarg &arg1 = empty_errarg,
3675584Sru				     const errarg &arg2 = empty_errarg,
3775584Sru				     const errarg &arg3 = empty_errarg);
3875584Sru
3975584Sruextern void fatal(const char *,
4075584Sru		  const errarg &arg1 = empty_errarg,
4175584Sru		  const errarg &arg2 = empty_errarg,
4275584Sru		  const errarg &arg3 = empty_errarg);
4375584Sru
4475584Sruextern void error(const char *,
4575584Sru		  const errarg &arg1 = empty_errarg,
4675584Sru		  const errarg &arg2 = empty_errarg,
4775584Sru		  const errarg &arg3 = empty_errarg);
4875584Sru
4975584Sruextern void warning(const char *,
5075584Sru		    const errarg &arg1 = empty_errarg,
5175584Sru		    const errarg &arg2 = empty_errarg,
5275584Sru		    const errarg &arg3 = empty_errarg);
5375584Sru
5475584Sru
5575584Sruextern const char *program_name;
5675584Sruextern int current_lineno;
5775584Sruextern const char *current_filename;
5875584Sru
59