/contrib/groff/src/roff/troff/input.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 105 lines · 75 code · 10 blank · 20 comment · 0 complexity · 20ae0962cef2e38ef383f122b1188958 MD5 · raw file

  1. // -*- C++ -*-
  2. /* Copyright (C) 2001, 2004 Free Software Foundation, Inc.
  3. Written by James Clark (jjc@jclark.com)
  4. This file is part of groff.
  5. groff is free software; you can redistribute it and/or modify it under
  6. the terms of the GNU General Public License as published by the Free
  7. Software Foundation; either version 2, or (at your option) any later
  8. version.
  9. groff is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. for more details.
  13. You should have received a copy of the GNU General Public License along
  14. with groff; see the file COPYING. If not, write to the Free Software
  15. Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */
  16. /* special character codes */
  17. #ifndef IS_EBCDIC_HOST
  18. const int ESCAPE_QUESTION = 015;
  19. const int BEGIN_TRAP = 016;
  20. const int END_TRAP = 017;
  21. const int PAGE_EJECTOR = 020;
  22. const int ESCAPE_NEWLINE = 021;
  23. const int ESCAPE_AMPERSAND = 022;
  24. const int ESCAPE_UNDERSCORE = 023;
  25. const int ESCAPE_BAR = 024;
  26. const int ESCAPE_CIRCUMFLEX = 025;
  27. const int ESCAPE_LEFT_BRACE = 026;
  28. const int ESCAPE_RIGHT_BRACE = 027;
  29. const int ESCAPE_LEFT_QUOTE = 030;
  30. const int ESCAPE_RIGHT_QUOTE = 031;
  31. const int ESCAPE_HYPHEN = 032;
  32. const int ESCAPE_BANG = 033;
  33. const int ESCAPE_c = 034;
  34. const int ESCAPE_e = 035;
  35. const int ESCAPE_PERCENT = 036;
  36. const int ESCAPE_SPACE = 037;
  37. const int TITLE_REQUEST = 0200;
  38. const int COPY_FILE_REQUEST = 0201;
  39. const int TRANSPARENT_FILE_REQUEST = 0202;
  40. #ifdef COLUMN
  41. const int VJUSTIFY_REQUEST = 0203;
  42. #endif /* COLUMN */
  43. const int ESCAPE_E = 0204;
  44. const int LAST_PAGE_EJECTOR = 0205;
  45. const int ESCAPE_RIGHT_PARENTHESIS = 0206;
  46. const int ESCAPE_TILDE = 0207;
  47. const int ESCAPE_COLON = 0210;
  48. const int PUSH_GROFF_MODE = 0211;
  49. const int PUSH_COMP_MODE = 0212;
  50. const int POP_GROFFCOMP_MODE = 0213;
  51. const int BEGIN_QUOTE = 0214;
  52. const int END_QUOTE = 0215;
  53. #else /* IS_EBCDIC_HOST */
  54. const int ESCAPE_QUESTION = 010;
  55. const int BEGIN_TRAP = 011;
  56. const int END_TRAP = 013;
  57. const int PAGE_EJECTOR = 015;
  58. const int ESCAPE_NEWLINE = 016;
  59. const int ESCAPE_AMPERSAND = 017;
  60. const int ESCAPE_UNDERSCORE = 020;
  61. const int ESCAPE_BAR = 021;
  62. const int ESCAPE_CIRCUMFLEX = 022;
  63. const int ESCAPE_LEFT_BRACE = 023;
  64. const int ESCAPE_RIGHT_BRACE = 024;
  65. const int ESCAPE_LEFT_QUOTE = 027;
  66. const int ESCAPE_RIGHT_QUOTE = 030;
  67. const int ESCAPE_HYPHEN = 031;
  68. const int ESCAPE_BANG = 032;
  69. const int ESCAPE_c = 033;
  70. const int ESCAPE_e = 034;
  71. const int ESCAPE_PERCENT = 035;
  72. const int ESCAPE_SPACE = 036;
  73. const int TITLE_REQUEST = 060;
  74. const int COPY_FILE_REQUEST = 061;
  75. const int TRANSPARENT_FILE_REQUEST = 062;
  76. #ifdef COLUMN
  77. const int VJUSTIFY_REQUEST = 063;
  78. #endif /* COLUMN */
  79. const int ESCAPE_E = 064;
  80. const int LAST_PAGE_EJECTOR = 065;
  81. const int ESCAPE_RIGHT_PARENTHESIS = 066;
  82. const int ESCAPE_TILDE = 067;
  83. const int ESCAPE_COLON = 070;
  84. const int PUSH_GROFF_MODE = 071;
  85. const int PUSH_COMP_MODE = 072;
  86. const int POP_GROFFCOMP_MODE = 073;
  87. const int BEGIN_QUOTE = 074;
  88. const int END_QUOTE = 075;
  89. #endif /* IS_EBCDIC_HOST */
  90. extern void do_glyph_color(symbol);
  91. extern void do_fill_color(symbol);