aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2000-07-24 11:07:23 +0000
committerKenichi Handa2000-07-24 11:07:23 +0000
commitafe93d01f211ba3361de1a7caa9f435f7fab722d (patch)
treea08b43dd735eaa40d428d73ed3f1555a1c89bd13
parent25c1a9ce6d7588ed5617229cd99ab3d2434dfa1e (diff)
downloademacs-afe93d01f211ba3361de1a7caa9f435f7fab722d.tar.gz
emacs-afe93d01f211ba3361de1a7caa9f435f7fab722d.zip
(fontset_ref): Remove INLINE declaration.
(fontset_ref_via_base): Likewise. (Fset_fontset_font): Convert FAMILY and REGISTRY specifications to downcase.
-rw-r--r--src/fontset.c32
1 files changed, 18 insertions, 14 deletions
diff --git a/src/fontset.c b/src/fontset.c
index accf0fbebc5..f0be7f7834f 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -92,20 +92,18 @@ Boston, MA 02111-1307, USA. */
92 A parent of a base fontset is nil. A parent of a realized fontset 92 A parent of a base fontset is nil. A parent of a realized fontset
93 is a base fontset. 93 is a base fontset.
94 94
95 All fontsets (except for the default fontset described below) are 95 All fontsets are recorded in Vfontset_table.
96 recorded in Vfontset_table.
97 96
98 97
99 DEFAULT FONTSET 98 DEFAULT FONTSET
100 99
101 There's a special fontset named `default fontset' which defines a 100 There's a special fontset named `default fontset' which defines a
102 default fontname that contains only REGISTRY field for each 101 default fontname pattern. When a base fontset doesn't specify a
103 character. When a base fontset doesn't specify a font for a 102 font for a specific character, the corresponding value in the
104 specific character, the corresponding value in the default fontset 103 default fontset is used. The format is the same as a base fontset.
105 is used. The format is the same as a base fontset.
106 104
107 The parent of realized fontsets created for faces that have no 105 The parent of a realized fontset created for such a face that has
108 fontset is the default fontset. 106 no fontset is the default fontset.
109 107
110 108
111 These structures are hidden from the other codes than this file. 109 These structures are hidden from the other codes than this file.
@@ -190,7 +188,7 @@ static Lisp_Object font_family_registry P_ ((Lisp_Object));
190/* Return the fontset with ID. No check of ID's validness. */ 188/* Return the fontset with ID. No check of ID's validness. */
191#define FONTSET_FROM_ID(id) AREF (Vfontset_table, id) 189#define FONTSET_FROM_ID(id) AREF (Vfontset_table, id)
192 190
193/* Macros to access extra, default, and parent slots, of fontset. */ 191/* Macros to access special values of FONTSET. */
194#define FONTSET_ID(fontset) XCHAR_TABLE (fontset)->extras[0] 192#define FONTSET_ID(fontset) XCHAR_TABLE (fontset)->extras[0]
195#define FONTSET_NAME(fontset) XCHAR_TABLE (fontset)->extras[1] 193#define FONTSET_NAME(fontset) XCHAR_TABLE (fontset)->extras[1]
196#define FONTSET_FRAME(fontset) XCHAR_TABLE (fontset)->extras[2] 194#define FONTSET_FRAME(fontset) XCHAR_TABLE (fontset)->extras[2]
@@ -204,7 +202,7 @@ static Lisp_Object font_family_registry P_ ((Lisp_Object));
204 202
205#define FONTSET_REF(fontset, c) fontset_ref (fontset, c) 203#define FONTSET_REF(fontset, c) fontset_ref (fontset, c)
206 204
207static INLINE Lisp_Object 205static Lisp_Object
208fontset_ref (fontset, c) 206fontset_ref (fontset, c)
209 Lisp_Object fontset; 207 Lisp_Object fontset;
210 int c; 208 int c;
@@ -238,7 +236,7 @@ fontset_ref (fontset, c)
238 236
239#define FONTSET_REF_VIA_BASE(fontset, c) fontset_ref_via_base (fontset, &c) 237#define FONTSET_REF_VIA_BASE(fontset, c) fontset_ref_via_base (fontset, &c)
240 238
241static INLINE Lisp_Object 239static Lisp_Object
242fontset_ref_via_base (fontset, c) 240fontset_ref_via_base (fontset, c)
243 Lisp_Object fontset; 241 Lisp_Object fontset;
244 int *c; 242 int *c;
@@ -272,7 +270,7 @@ fontset_ref_via_base (fontset, c)
272} 270}
273 271
274 272
275/* Store into the element of FONTSET at index C the value NEWETL. */ 273/* Store into the element of FONTSET at index C the value NEWELT. */
276#define FONTSET_SET(fontset, c, newelt) fontset_set(fontset, c, newelt) 274#define FONTSET_SET(fontset, c, newelt) fontset_set(fontset, c, newelt)
277 275
278static void 276static void
@@ -1031,9 +1029,15 @@ name of a font, REGSITRY is a registry name of a font.")
1031 family = XCAR (fontname); 1029 family = XCAR (fontname);
1032 registry = XCDR (fontname); 1030 registry = XCDR (fontname);
1033 if (!NILP (family)) 1031 if (!NILP (family))
1034 CHECK_STRING (family, 2); 1032 {
1033 CHECK_STRING (family, 2);
1034 family = Fdowncase (family);
1035 }
1035 if (!NILP (registry)) 1036 if (!NILP (registry))
1036 CHECK_STRING (registry, 2); 1037 {
1038 CHECK_STRING (registry, 2);
1039 registry = Fdowncase (registry);
1040 }
1037 elt = Fcons (make_number (from), Fcons (family, registry)); 1041 elt = Fcons (make_number (from), Fcons (family, registry));
1038 } 1042 }
1039 1043