annotate src/s/hpux9.h @ 94938:5752d7154afc

Throughout the file, delete all USE_FONT_BACKEND conditionals. Don't check enable_font_backend. Delete all codes used only when USE_FONT_BACKEND is not defined. Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx. (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth) (Qp): Extern them. (clear_font_table, load_face_font, xlfd_lookup_field_contents): Deleted. (struct font_name): Deleted. (xlfd_numeric_value, xlfd_symbolic_value): Deleted. (compare_fonts_by_sort_order): New function. (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight) (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth): Deleted. (Fx_family_fonts): Use font_list_entities, and sort fonts by compare_fonts_by_sort_order. (Fx_font_family_list): Call Ffont_family_list. (face_numeric_value, face_numeric_weight, face_numeric_slant) (face_numeric_swidth, face_symbolic_value, face_symbolic_weight) (face_symbolic_slant, face_symbolic_swidth) (split_font_name_into_vector, build_font_name_from_vector) (xlfd_fixed_p, xlfd_point_size, pixel_point_size) (font_rescale_ratio, split_font_name, build_font_name) (free_font_names, sort_fonts, x_face_list_fonts) (face_font_available_p, sorted_font_list, cmp_font_names) (font_list_1, concat_font_list, font_list, remove_duplicates): Deleted. (Fx_list_fonts): Use Ffont_list. (LFACE_AVGWIDTH): Deleted. (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT by FONTP. (lface_fully_specified_p): Don't check LFACE_AVGWIDTH. (set_lface_from_font_name): Delete it. (set_lface_from_font): Renamed from set_lface_from_font_and_fontset. Caller changed. Don't set LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable for face. (merge_face_vectors): Copy font-spec if necessary. Clear properties of the font-spec if necessary. (merge_face_ref): Clear properties of the font-spec if necessary. (Finternal_set_lisp_face_attribute): Likewise. (set_font_frame_param): Use font_load_for_lface to load a font-object, and call Fmodify_frame_parameters with it. (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD font name by Ffont_xlfd_name. (Finternal_lisp_face_attribute_values): Don't check QCweight, QCslant, and QCwidth. (Fface_font): Get a font name from font->props[FONT_NAME_INDEX]. (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH. Compare fonts by EQ. (lookup_non_ascii_face): Deleted. (face_for_font): The 2nd argument changed. (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH. Check atomic font properties by case insensitive. (realize_non_ascii_face): Set face->overstrike correctly. (realize_x_face): Likewise. Check if LFACE_FONT is a font_object. (dump_realized_face): Get font name from font->props[FONT_NAME_INDEX]. Don't print font_info_id.
author Kenichi Handa <handa@m17n.org>
date Wed, 14 May 2008 01:41:52 +0000
parents 1f134b61867c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75937
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
1 /* System description file for hpux version 9.
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
2
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
3 Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
4 2008 Free Software Foundation, Inc.
75937
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
5
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
6 This file is part of GNU Emacs.
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
7
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
8 GNU Emacs is free software: you can redistribute it and/or modify
75937
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
9 it under the terms of the GNU General Public License as published by
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
10 the Free Software Foundation, either version 3 of the License, or
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
11 (at your option) any later version.
75937
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
12
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
13 GNU Emacs is distributed in the hope that it will be useful,
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
16 GNU General Public License for more details.
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
17
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
18 You should have received a copy of the GNU General Public License
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
75937
68aa357d6215 Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
20
3296
9425c2065167 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21
9425c2065167 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
22 #include "hpux8.h"
9425c2065167 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23
9425c2065167 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24 #define HPUX9
9425c2065167 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
25
4322
2c439a03b90c * s/hpux9.h: Doc fix.
Jim Blandy <jimb@redhat.com>
parents: 3543
diff changeset
26 /* If Emacs doesn't seem to work when built to use GNU malloc, you
2c439a03b90c * s/hpux9.h: Doc fix.
Jim Blandy <jimb@redhat.com>
parents: 3543
diff changeset
27 probably need to get the latest patches to the HP/UX compiler.
2c439a03b90c * s/hpux9.h: Doc fix.
Jim Blandy <jimb@redhat.com>
parents: 3543
diff changeset
28 See `etc/MACHINES' for more information. */
3543
67c6f072c8f9 (SYSTEM_MALLOC, GNU_MALLOC, REL_ALLOC): Definition and #undefs deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3296
diff changeset
29 #if 0
3296
9425c2065167 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
30 #define SYSTEM_MALLOC 1
9425c2065167 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
31 #undef GNU_MALLOC
9425c2065167 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
32 #undef REL_ALLOC
3543
67c6f072c8f9 (SYSTEM_MALLOC, GNU_MALLOC, REL_ALLOC): Definition and #undefs deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3296
diff changeset
33 #endif
7707
8b0e81f12ac1 (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 4324
diff changeset
34
7769
a8c703d510ba (C_SWITCH_SYSTEM): Put inside __GNUC__ conditional.
Richard M. Stallman <rms@gnu.org>
parents: 7707
diff changeset
35 #ifndef __GNUC__
7707
8b0e81f12ac1 (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 4324
diff changeset
36 /* Make room for enough symbols, so dispnew.c does not fail. */
8058
671738c86a82 (C_SWITCH_SYSTEM): Add -D_BSD.
Richard M. Stallman <rms@gnu.org>
parents: 7769
diff changeset
37 #define C_SWITCH_SYSTEM -Wp,-H200000 -D_BSD
9905
1065c769cf32 (C_SWITCH_SYSTEM) [__GNUC__]: Set -D_BSD to get the
Richard M. Stallman <rms@gnu.org>
parents: 8851
diff changeset
38 #else
1065c769cf32 (C_SWITCH_SYSTEM) [__GNUC__]: Set -D_BSD to get the
Richard M. Stallman <rms@gnu.org>
parents: 8851
diff changeset
39 #define C_SWITCH_SYSTEM -D_BSD
7769
a8c703d510ba (C_SWITCH_SYSTEM): Put inside __GNUC__ conditional.
Richard M. Stallman <rms@gnu.org>
parents: 7707
diff changeset
40 #endif
8371
5ced823b544f (HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8058
diff changeset
41
8851
7a28aad7658f (HAVE_TERMIO, HAVE_TERMIOS, NO_TERMIO): Undo Jul 28 change.
Richard M. Stallman <rms@gnu.org>
parents: 8371
diff changeset
42 #if 0 /* These definitions run into a bug in hpux
7a28aad7658f (HAVE_TERMIO, HAVE_TERMIOS, NO_TERMIO): Undo Jul 28 change.
Richard M. Stallman <rms@gnu.org>
parents: 8371
diff changeset
43 whereby trying to disable the vdsusp character has no effect.
7a28aad7658f (HAVE_TERMIO, HAVE_TERMIOS, NO_TERMIO): Undo Jul 28 change.
Richard M. Stallman <rms@gnu.org>
parents: 8371
diff changeset
44 supposedly there is no particular need for this. */
8371
5ced823b544f (HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8058
diff changeset
45 /* neal@ctd.comsat.com */
5ced823b544f (HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8058
diff changeset
46 #undef HAVE_TERMIO
5ced823b544f (HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8058
diff changeset
47 #define HAVE_TERMIOS
5ced823b544f (HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8058
diff changeset
48 #define NO_TERMIO
8851
7a28aad7658f (HAVE_TERMIO, HAVE_TERMIOS, NO_TERMIO): Undo Jul 28 change.
Richard M. Stallman <rms@gnu.org>
parents: 8371
diff changeset
49 #endif
10780
defbf55d87e2 (LIB_X11_LIB, C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents: 9905
diff changeset
50
defbf55d87e2 (LIB_X11_LIB, C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents: 9905
diff changeset
51 /* According to ngorelic@speclab.cr.usgs.gov,
14036
621a575db6f7 Comment fixes.
Karl Heuer <kwzh@gnu.org>
parents: 13880
diff changeset
52 references to the X11R4 directories in these variables
10780
defbf55d87e2 (LIB_X11_LIB, C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents: 9905
diff changeset
53 (inherited from hpux8.h)
defbf55d87e2 (LIB_X11_LIB, C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents: 9905
diff changeset
54 cause the wrong libraries to be found,
defbf55d87e2 (LIB_X11_LIB, C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents: 9905
diff changeset
55 and the options to specify the X11R5 directories are unnecessary
defbf55d87e2 (LIB_X11_LIB, C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents: 9905
diff changeset
56 since the R5 files are found without them. */
defbf55d87e2 (LIB_X11_LIB, C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents: 9905
diff changeset
57 #undef LIB_X11_LIB
defbf55d87e2 (LIB_X11_LIB, C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents: 9905
diff changeset
58 #undef C_SWITCH_X_SYSTEM
defbf55d87e2 (LIB_X11_LIB, C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents: 9905
diff changeset
59 #undef LD_SWITCH_X_DEFAULT
11338
fe7f920ec4ff (LD_SWITCH_X_DEFAULT): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 10780
diff changeset
60 /* However, HPUX 9 has Motif includes in a strange place.
12407
616493c90878 (LIBXMU): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 11871
diff changeset
61 So search that place. These definitions assume that X11R5 is being
616493c90878 (LIBXMU): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 11871
diff changeset
62 used -- if X11R4 is used, "s/hpux9-x11r4.h" gets loaded instead. */
16204
7cd96606306e (C_SWITCH_X_SYSTEM): Add -I/usr/contrib/X11R5/include.
Richard M. Stallman <rms@gnu.org>
parents: 14036
diff changeset
63 /* horst@tkm.physik.uni-karlsruhe.de says that the /usr/contrib/... dirs
7cd96606306e (C_SWITCH_X_SYSTEM): Add -I/usr/contrib/X11R5/include.
Richard M. Stallman <rms@gnu.org>
parents: 14036
diff changeset
64 are needed to find the Xmu and Xaw libraries. */
7cd96606306e (C_SWITCH_X_SYSTEM): Add -I/usr/contrib/X11R5/include.
Richard M. Stallman <rms@gnu.org>
parents: 14036
diff changeset
65 #define C_SWITCH_X_SYSTEM -I/usr/include/X11R5 -I/usr/contrib/X11R5/include -I/usr/include/Motif1.2
7cd96606306e (C_SWITCH_X_SYSTEM): Add -I/usr/contrib/X11R5/include.
Richard M. Stallman <rms@gnu.org>
parents: 14036
diff changeset
66 #define LD_SWITCH_X_DEFAULT -L/usr/lib/X11R5 -L/usr/contrib/X11R5/lib -L/usr/lib/Motif1.2
12407
616493c90878 (LIBXMU): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 11871
diff changeset
67
13785
67493ecbff07 (LIBXMU, NO_EDITRES): Define only if not HAVE_LIBXMU.
Karl Heuer <kwzh@gnu.org>
parents: 13509
diff changeset
68 #ifndef HAVE_LIBXMU
13509
eddef35ecc54 (NO_EDITRES): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 13463
diff changeset
69 /* HP-UX doesn't supply Xmu. */
12407
616493c90878 (LIBXMU): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 11871
diff changeset
70 #define LIBXMU
13509
eddef35ecc54 (NO_EDITRES): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 13463
diff changeset
71
27121
a1daedc19c52 (NO_EDITRES): Define even if HAVE_LIBXMU.
Gerd Moellmann <gerd@gnu.org>
parents: 19738
diff changeset
72 #endif
a1daedc19c52 (NO_EDITRES): Define even if HAVE_LIBXMU.
Gerd Moellmann <gerd@gnu.org>
parents: 19738
diff changeset
73
a1daedc19c52 (NO_EDITRES): Define even if HAVE_LIBXMU.
Gerd Moellmann <gerd@gnu.org>
parents: 19738
diff changeset
74 /* Assar Westerlund <assar@sics.se> says this is necessary for
a1daedc19c52 (NO_EDITRES): Define even if HAVE_LIBXMU.
Gerd Moellmann <gerd@gnu.org>
parents: 19738
diff changeset
75 HP-UX 10.20, and that it works for HP-UX 0 as well. */
13509
eddef35ecc54 (NO_EDITRES): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 13463
diff changeset
76 #define NO_EDITRES
12449
1370b4b76c60 (LIBX11_SYSTEM): Add undef.
Richard M. Stallman <rms@gnu.org>
parents: 12407
diff changeset
77
1370b4b76c60 (LIBX11_SYSTEM): Add undef.
Richard M. Stallman <rms@gnu.org>
parents: 12407
diff changeset
78 /* zoo@armadillo.com says we don't need -lXext in HPUX 9. */
1370b4b76c60 (LIBX11_SYSTEM): Add undef.
Richard M. Stallman <rms@gnu.org>
parents: 12407
diff changeset
79 #undef LIBX11_SYSTEM
16868
97f000e93516 (HAVE_PSTAT_GETDYNAMIC): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 16204
diff changeset
80
97f000e93516 (HAVE_PSTAT_GETDYNAMIC): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 16204
diff changeset
81 /* Tested in getloadavg.c. */
97f000e93516 (HAVE_PSTAT_GETDYNAMIC): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 16204
diff changeset
82 #define HAVE_PSTAT_GETDYNAMIC
19738
ecbb06adc669 (HAVE_RINT): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 16868
diff changeset
83
ecbb06adc669 (HAVE_RINT): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 16868
diff changeset
84 /* Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
ecbb06adc669 (HAVE_RINT): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 16868
diff changeset
85 has a broken `rint' in some library versions including math library
ecbb06adc669 (HAVE_RINT): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 16868
diff changeset
86 version number A.09.05.
ecbb06adc669 (HAVE_RINT): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 16868
diff changeset
87
ecbb06adc669 (HAVE_RINT): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 16868
diff changeset
88 You can fix the math library by installing patch number PHSS_4630.
ecbb06adc669 (HAVE_RINT): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 16868
diff changeset
89 But we can fix it more reliably for Emacs like this. */
ecbb06adc669 (HAVE_RINT): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 16868
diff changeset
90 #undef HAVE_RINT
ecbb06adc669 (HAVE_RINT): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 16868
diff changeset
91
ecbb06adc669 (HAVE_RINT): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 16868
diff changeset
92
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 27121
diff changeset
93 /* arch-tag: 0a5e9f05-012c-4962-a222-a7a3a7fe0ab7
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 27121
diff changeset
94 (do not change this comment) */