1 /* $NetBSD: error.h,v 1.1.1.1 2016/01/13 18:41:48 christos Exp $ */ 2 3 // -*- C++ -*- 4 /* Copyright (C) 1989, 1990, 1991, 1992, 2003, 2004 5 Free Software Foundation, Inc. 6 Written by James Clark (jjc@jclark.com) 7 8 This file is part of groff. 9 10 groff is free software; you can redistribute it and/or modify it under 11 the terms of the GNU General Public License as published by the Free 12 Software Foundation; either version 2, or (at your option) any later 13 version. 14 15 groff is distributed in the hope that it will be useful, but WITHOUT ANY 16 WARRANTY; without even the implied warranty of MERCHANTABILITY or 17 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 18 for more details. 19 20 You should have received a copy of the GNU General Public License along 21 with groff; see the file COPYING. If not, write to the Free Software 22 Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */ 23 24 extern void fatal_with_file_and_line(const char *filename, int lineno, 25 const char *format, 26 const errarg &arg1 = empty_errarg, 27 const errarg &arg2 = empty_errarg, 28 const errarg &arg3 = empty_errarg); 29 30 extern void error_with_file_and_line(const char *filename, int lineno, 31 const char *format, 32 const errarg &arg1 = empty_errarg, 33 const errarg &arg2 = empty_errarg, 34 const errarg &arg3 = empty_errarg); 35 36 extern void warning_with_file_and_line(const char *filename, int lineno, 37 const char *format, 38 const errarg &arg1 = empty_errarg, 39 const errarg &arg2 = empty_errarg, 40 const errarg &arg3 = empty_errarg); 41 42 extern void fatal(const char *, 43 const errarg &arg1 = empty_errarg, 44 const errarg &arg2 = empty_errarg, 45 const errarg &arg3 = empty_errarg); 46 47 extern void error(const char *, 48 const errarg &arg1 = empty_errarg, 49 const errarg &arg2 = empty_errarg, 50 const errarg &arg3 = empty_errarg); 51 52 extern void warning(const char *, 53 const errarg &arg1 = empty_errarg, 54 const errarg &arg2 = empty_errarg, 55 const errarg &arg3 = empty_errarg); 56 57 58 extern "C" const char *program_name; 59 extern int current_lineno; 60 extern const char *current_filename; 61 extern const char *current_source_filename; 62