aboutsummaryrefslogtreecommitdiffstats
path: root/src/fontset.c
diff options
context:
space:
mode:
authorVibhav Pant2020-08-21 14:04:35 +0530
committerVibhav Pant2020-08-21 14:04:35 +0530
commitf0f8d7b82492e741950c363a03b886965c91b1b0 (patch)
tree19b716830b1ebabc0d7d75949c4e6800c0f104ad /src/fontset.c
parent9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff)
parentc818c29771d3cb51875643b2f6c894073e429dd2 (diff)
downloademacs-feature/native-comp-macos-fixes.tar.gz
emacs-feature/native-comp-macos-fixes.zip
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'src/fontset.c')
-rw-r--r--src/fontset.c27
1 files changed, 10 insertions, 17 deletions
diff --git a/src/fontset.c b/src/fontset.c
index c2bb8b21f26..8c86075c07e 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -252,14 +252,13 @@ set_fontset_fallback (Lisp_Object fontset, Lisp_Object fallback)
252 252
253#define BASE_FONTSET_P(fontset) (NILP (FONTSET_BASE (fontset))) 253#define BASE_FONTSET_P(fontset) (NILP (FONTSET_BASE (fontset)))
254 254
255/* Macros for FONT-DEF and RFONT-DEF of fontset. */ 255/* Definitions for FONT-DEF and RFONT-DEF of fontset. */
256#define FONT_DEF_NEW(font_def, font_spec, encoding, repertory) \ 256static Lisp_Object
257 do { \ 257font_def_new (Lisp_Object font_spec, Lisp_Object encoding,
258 (font_def) = make_uninit_vector (3); \ 258 Lisp_Object repertory)
259 ASET ((font_def), 0, font_spec); \ 259{
260 ASET ((font_def), 1, encoding); \ 260 return CALLN (Fvector, font_spec, encoding, repertory);
261 ASET ((font_def), 2, repertory); \ 261}
262 } while (0)
263 262
264#define FONT_DEF_SPEC(font_def) AREF (font_def, 0) 263#define FONT_DEF_SPEC(font_def) AREF (font_def, 0)
265#define FONT_DEF_ENCODING(font_def) AREF (font_def, 1) 264#define FONT_DEF_ENCODING(font_def) AREF (font_def, 1)
@@ -1547,7 +1546,7 @@ appended. By default, FONT-SPEC overrides the previous settings. */)
1547 repertory = CHARSET_SYMBOL_ID (repertory); 1546 repertory = CHARSET_SYMBOL_ID (repertory);
1548 } 1547 }
1549 } 1548 }
1550 FONT_DEF_NEW (font_def, font_spec, encoding, repertory); 1549 font_def = font_def_new (font_spec, encoding, repertory);
1551 } 1550 }
1552 else 1551 else
1553 font_def = Qnil; 1552 font_def = Qnil;
@@ -1619,14 +1618,8 @@ appended. By default, FONT-SPEC overrides the previous settings. */)
1619 1618
1620 if (charset) 1619 if (charset)
1621 { 1620 {
1622 Lisp_Object arg; 1621 Lisp_Object arg = CALLN (Fvector, fontset, font_def, add,
1623 1622 ascii_changed ? Qt : Qnil, range_list);
1624 arg = make_uninit_vector (5);
1625 ASET (arg, 0, fontset);
1626 ASET (arg, 1, font_def);
1627 ASET (arg, 2, add);
1628 ASET (arg, 3, ascii_changed ? Qt : Qnil);
1629 ASET (arg, 4, range_list);
1630 1623
1631 map_charset_chars (set_fontset_font, Qnil, arg, charset, 1624 map_charset_chars (set_fontset_font, Qnil, arg, charset,
1632 CHARSET_MIN_CODE (charset), 1625 CHARSET_MIN_CODE (charset),