Build Fix -- compatibility issue with newer autoconf
[sxemacs] / src / ui / TTY / objects-tty.h
1 /* TTY-specific Lisp objects.
2    Copyright (C) 1995 Board of Trustees, University of Illinois.
3    Copyright (C) 1995 Ben Wing
4
5 This file is part of SXEmacs
6
7 SXEmacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 SXEmacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
19
20
21 /* Synched up with:  Not in FSF. */
22
23 #ifndef INCLUDED_objects_tty_h_
24 #define INCLUDED_objects_tty_h_
25
26 #include "ui/objects.h"
27
28 struct tty_color_instance_data {
29         Lisp_Object symbol;     /* so we don't have to constantly call Fintern() */
30 };
31
32 #define TTY_COLOR_INSTANCE_DATA(c)                              \
33   ((struct tty_color_instance_data *)((c)->data))
34
35 #define COLOR_INSTANCE_TTY_SYMBOL(c) (TTY_COLOR_INSTANCE_DATA (c)->symbol)
36
37 struct tty_font_instance_data {
38         Lisp_Object charset;
39 };
40
41 #define TTY_FONT_INSTANCE_DATA(c)                               \
42   ((struct tty_font_instance_data *) (c)->data)
43
44 #define FONT_INSTANCE_TTY_CHARSET(c) (TTY_FONT_INSTANCE_DATA (c)->charset)
45
46 extern Lisp_Object Vtty_color_alist;
47
48
49 EXFUN(Ffind_tty_color,3);
50
51 #endif                          /* INCLUDED_objects_tty_h_ */