home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / util / gnu / groff_src.lha / groff-1.10src / troff / troff.h < prev    next >
C/C++ Source or Header  |  1995-06-22  |  2KB  |  84 lines

  1. // -*- C++ -*-
  2. /* Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
  3.      Written by James Clark (jjc@jclark.com)
  4.  
  5. This file is part of groff.
  6.  
  7. groff is free software; you can redistribute it and/or modify it under
  8. the terms of the GNU General Public License as published by the Free
  9. Software Foundation; either version 2, or (at your option) any later
  10. version.
  11.  
  12. groff is distributed in the hope that it will be useful, but WITHOUT ANY
  13. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15. for more details.
  16.  
  17. You should have received a copy of the GNU General Public License along
  18. with groff; see the file COPYING.  If not, write to the Free Software
  19. Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
  20.  
  21.  
  22. #include <stdio.h>
  23. #include <ctype.h>
  24. #include <string.h>
  25. #include <time.h>
  26. #include <stddef.h>
  27. #include <stdlib.h>
  28. #include <errno.h>
  29.  
  30. #include "lib.h"
  31. #include "assert.h"
  32. #include "device.h"
  33.  
  34. void cleanup_and_exit(int n);
  35.  
  36. typedef int units;
  37.  
  38. extern units scale(units n, units x, units y); // scale n by x/y
  39.  
  40. extern units units_per_inch;
  41.  
  42. extern int ascii_output_flag;
  43. extern int suppress_output_flag;
  44.  
  45. extern int tcommand_flag;
  46. extern int vresolution;
  47. extern int hresolution;
  48. extern int sizescale;
  49.  
  50. #include "cset.h"
  51. #include "cmap.h"
  52. #include "errarg.h"
  53. #include "error.h"
  54.  
  55. enum warning_type {
  56.   WARN_CHAR = 01,
  57.   WARN_NUMBER = 02,
  58.   WARN_BREAK = 04,
  59.   WARN_DELIM = 010,
  60.   WARN_EL = 020,
  61.   WARN_SCALE = 040,
  62.   WARN_RANGE = 0100,
  63.   WARN_SYNTAX = 0200,
  64.   WARN_DI = 0400,
  65.   WARN_MAC = 01000,
  66.   WARN_REG = 02000,
  67.   WARN_TAB = 04000,
  68.   WARN_RIGHT_BRACE = 010000,
  69.   WARN_MISSING = 020000,
  70.   WARN_INPUT = 040000,
  71.   WARN_ESCAPE = 0100000,
  72.   WARN_SPACE = 0200000,
  73.   WARN_FONT = 0400000,
  74.   WARN_IG =  01000000
  75.   // change WARN_TOTAL if you add more warning types
  76. };
  77.  
  78. const int WARN_TOTAL = 01777777;
  79.  
  80. int warning(warning_type, const char *,
  81.         const errarg & = empty_errarg,
  82.         const errarg & = empty_errarg,
  83.         const errarg & = empty_errarg);
  84.