/contrib/groff/src/include/error.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 59 lines · 31 code · 8 blank · 20 comment · 0 complexity · 8b77d515436d14f2f0b75a93c9b477c5 MD5 · raw file

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