1 // -*- C++ -*- 2 /* Copyright (C) 2001, 2004 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, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */ 20 21 22 /* special character codes */ 23 24 #ifndef IS_EBCDIC_HOST 25 26 const int ESCAPE_QUESTION = 015; 27 const int BEGIN_TRAP = 016; 28 const int END_TRAP = 017; 29 const int PAGE_EJECTOR = 020; 30 const int ESCAPE_NEWLINE = 021; 31 const int ESCAPE_AMPERSAND = 022; 32 const int ESCAPE_UNDERSCORE = 023; 33 const int ESCAPE_BAR = 024; 34 const int ESCAPE_CIRCUMFLEX = 025; 35 const int ESCAPE_LEFT_BRACE = 026; 36 const int ESCAPE_RIGHT_BRACE = 027; 37 const int ESCAPE_LEFT_QUOTE = 030; 38 const int ESCAPE_RIGHT_QUOTE = 031; 39 const int ESCAPE_HYPHEN = 032; 40 const int ESCAPE_BANG = 033; 41 const int ESCAPE_c = 034; 42 const int ESCAPE_e = 035; 43 const int ESCAPE_PERCENT = 036; 44 const int ESCAPE_SPACE = 037; 45 46 const int TITLE_REQUEST = 0200; 47 const int COPY_FILE_REQUEST = 0201; 48 const int TRANSPARENT_FILE_REQUEST = 0202; 49 #ifdef COLUMN 50 const int VJUSTIFY_REQUEST = 0203; 51 #endif /* COLUMN */ 52 const int ESCAPE_E = 0204; 53 const int LAST_PAGE_EJECTOR = 0205; 54 const int ESCAPE_RIGHT_PARENTHESIS = 0206; 55 const int ESCAPE_TILDE = 0207; 56 const int ESCAPE_COLON = 0210; 57 const int PUSH_GROFF_MODE = 0211; 58 const int PUSH_COMP_MODE = 0212; 59 const int POP_GROFFCOMP_MODE = 0213; 60 const int BEGIN_QUOTE = 0214; 61 const int END_QUOTE = 0215; 62 63 #else /* IS_EBCDIC_HOST */ 64 65 const int ESCAPE_QUESTION = 010; 66 const int BEGIN_TRAP = 011; 67 const int END_TRAP = 013; 68 const int PAGE_EJECTOR = 015; 69 const int ESCAPE_NEWLINE = 016; 70 const int ESCAPE_AMPERSAND = 017; 71 const int ESCAPE_UNDERSCORE = 020; 72 const int ESCAPE_BAR = 021; 73 const int ESCAPE_CIRCUMFLEX = 022; 74 const int ESCAPE_LEFT_BRACE = 023; 75 const int ESCAPE_RIGHT_BRACE = 024; 76 const int ESCAPE_LEFT_QUOTE = 027; 77 const int ESCAPE_RIGHT_QUOTE = 030; 78 const int ESCAPE_HYPHEN = 031; 79 const int ESCAPE_BANG = 032; 80 const int ESCAPE_c = 033; 81 const int ESCAPE_e = 034; 82 const int ESCAPE_PERCENT = 035; 83 const int ESCAPE_SPACE = 036; 84 85 const int TITLE_REQUEST = 060; 86 const int COPY_FILE_REQUEST = 061; 87 const int TRANSPARENT_FILE_REQUEST = 062; 88 #ifdef COLUMN 89 const int VJUSTIFY_REQUEST = 063; 90 #endif /* COLUMN */ 91 const int ESCAPE_E = 064; 92 const int LAST_PAGE_EJECTOR = 065; 93 const int ESCAPE_RIGHT_PARENTHESIS = 066; 94 const int ESCAPE_TILDE = 067; 95 const int ESCAPE_COLON = 070; 96 const int PUSH_GROFF_MODE = 071; 97 const int PUSH_COMP_MODE = 072; 98 const int POP_GROFFCOMP_MODE = 073; 99 const int BEGIN_QUOTE = 074; 100 const int END_QUOTE = 075; 101 102 #endif /* IS_EBCDIC_HOST */ 103 104 extern void do_glyph_color(symbol); 105 extern void do_fill_color(symbol); 106