diff options
| author | Paul Eggert | 2016-12-01 00:32:54 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-12-01 00:34:38 -0800 |
| commit | 04355cb50485f109aabb8e9a815412fbb0d1e750 (patch) | |
| tree | 9f6e4afe8bb4509a6b1a5889534a0bafef031027 /src | |
| parent | fccd7d3c0606080c047e16d94490d83fc68dabde (diff) | |
| download | emacs-04355cb50485f109aabb8e9a815412fbb0d1e750.tar.gz emacs-04355cb50485f109aabb8e9a815412fbb0d1e750.zip | |
* src/lisp.h (LISP_INITIALLY_ZERO): Remove.
All uses replaced by LISPSYM_INITIALLY.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ftfont.c | 3 | ||||
| -rw-r--r-- | src/lisp.h | 2 | ||||
| -rw-r--r-- | src/macfont.m | 3 | ||||
| -rw-r--r-- | src/nsfont.m | 3 | ||||
| -rw-r--r-- | src/w32font.c | 3 | ||||
| -rw-r--r-- | src/w32uniscribe.c | 3 | ||||
| -rw-r--r-- | src/xfont.c | 3 |
7 files changed, 6 insertions, 14 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index 1ae3f88daa3..17fe66828fa 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -508,7 +508,7 @@ static int ftfont_variation_glyphs (struct font *, int c, | |||
| 508 | 508 | ||
| 509 | struct font_driver ftfont_driver = | 509 | struct font_driver ftfont_driver = |
| 510 | { | 510 | { |
| 511 | LISP_INITIALLY_ZERO, /* Qfreetype */ | 511 | LISPSYM_INITIALLY (Qfreetype), |
| 512 | 0, /* case insensitive */ | 512 | 0, /* case insensitive */ |
| 513 | ftfont_get_cache, | 513 | ftfont_get_cache, |
| 514 | ftfont_list, | 514 | ftfont_list, |
| @@ -2799,6 +2799,5 @@ syms_of_ftfont (void) | |||
| 2799 | staticpro (&ft_face_cache); | 2799 | staticpro (&ft_face_cache); |
| 2800 | ft_face_cache = Qnil; | 2800 | ft_face_cache = Qnil; |
| 2801 | 2801 | ||
| 2802 | ftfont_driver.type = Qfreetype; | ||
| 2803 | register_font_driver (&ftfont_driver, NULL); | 2802 | register_font_driver (&ftfont_driver, NULL); |
| 2804 | } | 2803 | } |
diff --git a/src/lisp.h b/src/lisp.h index 6fbedd3b1f5..b6c46687b28 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -551,8 +551,6 @@ typedef EMACS_INT Lisp_Object; | |||
| 551 | #define LISP_INITIALLY(i) (i) | 551 | #define LISP_INITIALLY(i) (i) |
| 552 | enum CHECK_LISP_OBJECT_TYPE { CHECK_LISP_OBJECT_TYPE = false }; | 552 | enum CHECK_LISP_OBJECT_TYPE { CHECK_LISP_OBJECT_TYPE = false }; |
| 553 | #endif /* CHECK_LISP_OBJECT_TYPE */ | 553 | #endif /* CHECK_LISP_OBJECT_TYPE */ |
| 554 | |||
| 555 | #define LISP_INITIALLY_ZERO LISP_INITIALLY (0) | ||
| 556 | 554 | ||
| 557 | /* Forward declarations. */ | 555 | /* Forward declarations. */ |
| 558 | 556 | ||
diff --git a/src/macfont.m b/src/macfont.m index 3af9edc148a..b3a2fb84205 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -1665,7 +1665,7 @@ static void macfont_filter_properties (Lisp_Object, Lisp_Object); | |||
| 1665 | 1665 | ||
| 1666 | static struct font_driver macfont_driver = | 1666 | static struct font_driver macfont_driver = |
| 1667 | { | 1667 | { |
| 1668 | LISP_INITIALLY_ZERO, /* Qmac_ct */ | 1668 | LISPSYM_INITIALLY (Qmac_ct), |
| 1669 | 0, /* case insensitive */ | 1669 | 0, /* case insensitive */ |
| 1670 | macfont_get_cache, | 1670 | macfont_get_cache, |
| 1671 | macfont_list, | 1671 | macfont_list, |
| @@ -4059,7 +4059,6 @@ syms_of_macfont (void) | |||
| 4059 | { | 4059 | { |
| 4060 | /* Core Text, for macOS. */ | 4060 | /* Core Text, for macOS. */ |
| 4061 | DEFSYM (Qmac_ct, "mac-ct"); | 4061 | DEFSYM (Qmac_ct, "mac-ct"); |
| 4062 | macfont_driver.type = Qmac_ct; | ||
| 4063 | register_font_driver (&macfont_driver, NULL); | 4062 | register_font_driver (&macfont_driver, NULL); |
| 4064 | 4063 | ||
| 4065 | /* The font property key specifying the font design destination. The | 4064 | /* The font property key specifying the font design destination. The |
diff --git a/src/nsfont.m b/src/nsfont.m index 389d0ed7aa4..c4c3c8dce7e 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -626,7 +626,7 @@ static int nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 626 | 626 | ||
| 627 | struct font_driver nsfont_driver = | 627 | struct font_driver nsfont_driver = |
| 628 | { | 628 | { |
| 629 | 0, /* Qns */ | 629 | LISPSYM_INITIALLY (Qns), |
| 630 | 1, /* case sensitive */ | 630 | 1, /* case sensitive */ |
| 631 | nsfont_get_cache, | 631 | nsfont_get_cache, |
| 632 | nsfont_list, | 632 | nsfont_list, |
| @@ -1524,7 +1524,6 @@ ns_dump_glyphstring (struct glyph_string *s) | |||
| 1524 | void | 1524 | void |
| 1525 | syms_of_nsfont (void) | 1525 | syms_of_nsfont (void) |
| 1526 | { | 1526 | { |
| 1527 | nsfont_driver.type = Qns; | ||
| 1528 | register_font_driver (&nsfont_driver, NULL); | 1527 | register_font_driver (&nsfont_driver, NULL); |
| 1529 | DEFSYM (Qcondensed, "condensed"); | 1528 | DEFSYM (Qcondensed, "condensed"); |
| 1530 | DEFSYM (Qexpanded, "expanded"); | 1529 | DEFSYM (Qexpanded, "expanded"); |
diff --git a/src/w32font.c b/src/w32font.c index 4d15cffb9f6..e966024517f 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -2535,7 +2535,7 @@ w32font_filter_properties (Lisp_Object font, Lisp_Object alist) | |||
| 2535 | 2535 | ||
| 2536 | struct font_driver w32font_driver = | 2536 | struct font_driver w32font_driver = |
| 2537 | { | 2537 | { |
| 2538 | LISP_INITIALLY_ZERO, /* Qgdi */ | 2538 | LISPSYM_INITIALLY (Qgdi), |
| 2539 | false, /* case insensitive */ | 2539 | false, /* case insensitive */ |
| 2540 | w32font_get_cache, | 2540 | w32font_get_cache, |
| 2541 | w32font_list, | 2541 | w32font_list, |
| @@ -2746,7 +2746,6 @@ versions of Windows) characters. */); | |||
| 2746 | 2746 | ||
| 2747 | defsubr (&Sx_select_font); | 2747 | defsubr (&Sx_select_font); |
| 2748 | 2748 | ||
| 2749 | w32font_driver.type = Qgdi; | ||
| 2750 | register_font_driver (&w32font_driver, NULL); | 2749 | register_font_driver (&w32font_driver, NULL); |
| 2751 | } | 2750 | } |
| 2752 | 2751 | ||
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index 5f91b5022dd..960ee068e87 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c | |||
| @@ -1135,7 +1135,7 @@ font_table_error: | |||
| 1135 | 1135 | ||
| 1136 | struct font_driver uniscribe_font_driver = | 1136 | struct font_driver uniscribe_font_driver = |
| 1137 | { | 1137 | { |
| 1138 | LISP_INITIALLY_ZERO, /* Quniscribe */ | 1138 | LISPSYM_INITIALLY (Quniscribe), |
| 1139 | 0, /* case insensitive */ | 1139 | 0, /* case insensitive */ |
| 1140 | w32font_get_cache, | 1140 | w32font_get_cache, |
| 1141 | uniscribe_list, | 1141 | uniscribe_list, |
| @@ -1182,7 +1182,6 @@ syms_of_w32uniscribe (void) | |||
| 1182 | if (!uniscribe) | 1182 | if (!uniscribe) |
| 1183 | return; | 1183 | return; |
| 1184 | 1184 | ||
| 1185 | uniscribe_font_driver.type = Quniscribe; | ||
| 1186 | uniscribe_available = 1; | 1185 | uniscribe_available = 1; |
| 1187 | 1186 | ||
| 1188 | register_font_driver (&uniscribe_font_driver, NULL); | 1187 | register_font_driver (&uniscribe_font_driver, NULL); |
diff --git a/src/xfont.c b/src/xfont.c index c2b73173968..ccb8f070626 100644 --- a/src/xfont.c +++ b/src/xfont.c | |||
| @@ -129,7 +129,7 @@ static int xfont_check (struct frame *, struct font *); | |||
| 129 | 129 | ||
| 130 | struct font_driver xfont_driver = | 130 | struct font_driver xfont_driver = |
| 131 | { | 131 | { |
| 132 | LISP_INITIALLY_ZERO, /* Qx */ | 132 | LISPSYM_INITIALLY (Qx), |
| 133 | false, /* case insensitive */ | 133 | false, /* case insensitive */ |
| 134 | xfont_get_cache, | 134 | xfont_get_cache, |
| 135 | xfont_list, | 135 | xfont_list, |
| @@ -1120,6 +1120,5 @@ syms_of_xfont (void) | |||
| 1120 | xfont_scripts_cache = CALLN (Fmake_hash_table, QCtest, Qequal); | 1120 | xfont_scripts_cache = CALLN (Fmake_hash_table, QCtest, Qequal); |
| 1121 | staticpro (&xfont_scratch_props); | 1121 | staticpro (&xfont_scratch_props); |
| 1122 | xfont_scratch_props = Fmake_vector (make_number (8), Qnil); | 1122 | xfont_scratch_props = Fmake_vector (make_number (8), Qnil); |
| 1123 | xfont_driver.type = Qx; | ||
| 1124 | register_font_driver (&xfont_driver, NULL); | 1123 | register_font_driver (&xfont_driver, NULL); |
| 1125 | } | 1124 | } |