diff options
| author | Dmitry Antipov | 2012-08-15 18:20:16 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-15 18:20:16 +0400 |
| commit | 4e6a86c633a4ca3084a7bc30101f8b4acdd38d28 (patch) | |
| tree | 7846fd770e60e97d26a6887306c1e5f8eef1bdd4 /src/fontset.c | |
| parent | b6928595db69a78f1cc9a69ae5ba1238b38c0d43 (diff) | |
| download | emacs-4e6a86c633a4ca3084a7bc30101f8b4acdd38d28.tar.gz emacs-4e6a86c633a4ca3084a7bc30101f8b4acdd38d28.zip | |
Generalize and cleanup font subsystem checks.
* font.h (FONT_DEBUG, font_assert): Remove.
* font.c, fontset.c, w32font.c, xfont.c, xftfont.c: Change
font_assert to eassert. Use eassert where appropriate.
Diffstat (limited to 'src/fontset.c')
| -rw-r--r-- | src/fontset.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fontset.c b/src/fontset.c index d4ce8b08ea3..3c7e931d121 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1027,8 +1027,7 @@ make_fontset_for_ascii_face (FRAME_PTR f, int base_fontset_id, struct face *face | |||
| 1027 | base_fontset = FONTSET_FROM_ID (base_fontset_id); | 1027 | base_fontset = FONTSET_FROM_ID (base_fontset_id); |
| 1028 | if (!BASE_FONTSET_P (base_fontset)) | 1028 | if (!BASE_FONTSET_P (base_fontset)) |
| 1029 | base_fontset = FONTSET_BASE (base_fontset); | 1029 | base_fontset = FONTSET_BASE (base_fontset); |
| 1030 | if (! BASE_FONTSET_P (base_fontset)) | 1030 | eassert (BASE_FONTSET_P (base_fontset)); |
| 1031 | abort (); | ||
| 1032 | } | 1031 | } |
| 1033 | else | 1032 | else |
| 1034 | base_fontset = Vdefault_fontset; | 1033 | base_fontset = Vdefault_fontset; |
| @@ -1725,8 +1724,7 @@ fontset_from_font (Lisp_Object font_object) | |||
| 1725 | fontset_spec = copy_font_spec (font_spec); | 1724 | fontset_spec = copy_font_spec (font_spec); |
| 1726 | ASET (fontset_spec, FONT_REGISTRY_INDEX, alias); | 1725 | ASET (fontset_spec, FONT_REGISTRY_INDEX, alias); |
| 1727 | name = Ffont_xlfd_name (fontset_spec, Qnil); | 1726 | name = Ffont_xlfd_name (fontset_spec, Qnil); |
| 1728 | if (NILP (name)) | 1727 | eassert (!NILP (name)); |
| 1729 | abort (); | ||
| 1730 | fontset = make_fontset (Qnil, name, Qnil); | 1728 | fontset = make_fontset (Qnil, name, Qnil); |
| 1731 | Vfontset_alias_alist = Fcons (Fcons (name, SYMBOL_NAME (alias)), | 1729 | Vfontset_alias_alist = Fcons (Fcons (name, SYMBOL_NAME (alias)), |
| 1732 | Vfontset_alias_alist); | 1730 | Vfontset_alias_alist); |