annotate src/s/sco4.h @ 3075:878381e48b0d

* xfns.c: Clear out the old face stuff. (x_face_table, n_faces, x_set_face, x_set_glyph, Fx_set_face_font, Fx_set_face, Fx_get_face): Removed. (syms_of_xfns): Remove defsubr for Fx_set_face. Arrange for font names to get fully resolved - no wildcards. * xfns.c (x_set_frame_parameters): Store the value in the frame parameter alist before we call the setter function, so the setter function can touch up the value if it chooses. (x_set_foreground_color, x_set_background_color): Call recompute_basic_faces, so their GC's will reflect the changes. (x_new_font): Add extern declaration - this returns a Lisp_Object now, the fully resolved font name. (x_set_font): Accept the fully resolved name from x_new_font, and put it in the frame's parameter alist. Call recompute_basic_faces. * xterm.c (x_new_font): Return the fully resolved font name, Qnil (if no match), or Qt (match, but unacceptable metrics). * xterm.c (x_new_font): Don't call init_frame_faces. * xterm.h: New section for declarations for xfaces.c. (init_frame_faces, free_frame_faces, intern_face, face_name_id_number, same_size_fonts, recompute_basic_faces, compute_char_face, compute_glyph_face): Declare these here. * xfaces.c (same_size_fonts): We can now remove this extern declaration. * xfns.c (face_name_id_number): Likewise. * xterm.c (intern_face): Likewise. * xfns.c (Fx_list_fonts): Remember that FACE may not have a font specified. Don't specify 30000 as the maximum limit on the number of fontns returned - 2000 is more reasonable. Treat faces as structures specifying modifications to the frame's parameters, rather than things which need to specify a complete set of parameters by themselves. * xfaces.c (init_frame_faces): Don't set up the two frame display faces by querying the GC - just leave all their fields blank, and call recompute_basic_faces, letting build_face do the work of consulting the frame when necessary. (recompute_basic_faces): New function. (compute_base_faces): New function for obtaining the "identity" for compute_char_face and compute_glyph_face. (compute_char_face, compute_glyph_face): Call it, instead of copying FRAME_DEFAULT_FACE. * xfns.c (x_make_gc): No need to call init_frame_faces here.
author Jim Blandy <jimb@redhat.com>
date Tue, 25 May 1993 14:03:41 +0000
parents 571142b03bf4
children 328132ed483c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 /* System description file for SCO 3.2v4.
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 Copyright (C) 1993 Free Software Foundation, Inc.
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4 This file is part of GNU Emacs.
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 any later version.
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14 GNU General Public License for more details.
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
19
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
20 /* Contributed by Ian Lance Taylor, ian@cygnus.com. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
22 /* SCO is sort of like SVR3. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23 #include "usg5-3.h"
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
25 /* SYSTEM_TYPE should indicate the kind of system you are using. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
26 #undef SYSTEM_TYPE
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
27 #define SYSTEM_TYPE "SCO 3.2v4"
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
28
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
29 /* SCO supports job control. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
30 #undef NOMULTIPLEJOBS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
31
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
32 /* SCO has termios. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33 #define HAVE_TERMIOS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
35 /* SCO has timeval. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36 #define HAVE_TIMEVAL
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
37
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
38 /* SCO has ptys with unusual names. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
39 #define HAVE_PTYS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
40
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
41 #define PTY_NAME_SPRINTF \
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
42 sprintf (pty_name, "/dev/ptyp%d", ((c - FIRST_PTY_LETTER) * 16) + i);
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43 #define PTY_TTY_NAME_SPRINTF \
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
44 sprintf (pty_name, "/dev/ttyp%d", ((c - FIRST_PTY_LETTER) * 16) + i);
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
45
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46 /* SCO has bcopy, et. al. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47 #define BSTRING
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49 /* Sockets are an option on SCO. If we have X, we have them. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50 #ifdef HAVE_X_WINDOWS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
51 #define HAVE_SOCKETS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52 #endif
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
53
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
54 #ifdef HAVE_SOCKETS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
55 #define LIBS_SYSTEM -lsocket
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
56 #endif
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
57
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
58 /* We don't have -loldX, and we don't need it. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59 #define LIB_XMENU_LIB
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61 /* SCO does have TIOCGWINSZ. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62 #undef BROKEN_TIOCGWINSZ
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
63 #define NEED_PTEM_H
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
64
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
65 /* We need to link with crt1.o and crtn.o. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
66 #define START_FILES pre-crt0.o /lib/crt1.o
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
67 #define LIB_STANDARD -lc /lib/crtn.o