changeset 95181:4d81ef9a5f1d

(Ffont_xlfd_name): EXFUN adjusted. (FONT_DEBUG): Define it. (font_add_log): Extern it. (font_assert): Renamed from xassert.
author Kenichi Handa <handa@m17n.org>
date Thu, 22 May 2008 02:24:14 +0000
parents 1520d3ef2a48
children 06ff64b07841
files src/font.h
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.h	Thu May 22 02:23:03 2008 +0000
+++ b/src/font.h	Thu May 22 02:24:14 2008 +0000
@@ -761,7 +761,7 @@
 EXFUN (Flist_fonts, 4);
 EXFUN (Ffont_family_list, 1);
 EXFUN (Fclear_font_cache, 0);
-EXFUN (Ffont_xlfd_name, 1);
+EXFUN (Ffont_xlfd_name, 2);
 
 extern Lisp_Object font_make_spec P_ ((void));
 extern Lisp_Object font_make_entity P_ ((void));
@@ -856,6 +856,18 @@
 extern struct font_driver atmfont_driver;
 #endif	/* MAC_OS */
 
+#ifndef FONT_DEBUG
+#define FONT_DEBUG
+#endif
+
+extern void font_add_log P_ ((char *, Lisp_Object, Lisp_Object));
+
+#ifdef FONT_DEBUG
+#define font_assert(X)	do {if (!(X)) abort ();} while (0)
+#else  /* not FONT_DEBUG */
+#define font_assert(X)	(void) 0
+#endif	/* not FONT_DEBUG */
+
 #endif	/* not EMACS_FONT_H */
 
 /* arch-tag: 3b7260c3-5bec-4d6b-a0db-95c1b431b1a2