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