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