aboutsummaryrefslogtreecommitdiffstats
path: root/src/fontset.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-13 16:22:35 -0700
committerPaul Eggert2011-04-13 16:22:35 -0700
commit239f9db96059f3f76e4b4a6f31f6eb56f642ea84 (patch)
treed37c48bf372a31f9433c35c6128e9401f5335b53 /src/fontset.c
parentdfcf35798287d2483c1136d156e0f692ccea3b18 (diff)
downloademacs-239f9db96059f3f76e4b4a6f31f6eb56f642ea84.tar.gz
emacs-239f9db96059f3f76e4b4a6f31f6eb56f642ea84.zip
* font.c, fontset.c: Make symbols static if they're not exported.
* dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P): New macro. (FACE_SUITABLE_FOR_CHAR_P): Use it. * font.c (font_close_object): Now static. * font.h (font_close_object): Remove. * fontset.c (FONTSET_OBJLIST): Remove. (free_realized_fontset) #if-0 the body, which does nothing. (face_suitable_for_char_p): #if-0, as it's never called. * fontset.h (face_suitable_for_char_p): Remove decl. * xfaces.c (face_at_string_position): Use FACE_SUITABLE_FOR_ASCII_CHAR_P, not FACE_SUITABLE_FOR_CHAR_P, since 0 is always ASCII.
Diffstat (limited to 'src/fontset.c')
-rw-r--r--src/fontset.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fontset.c b/src/fontset.c
index c8452979eee..5aa65c85110 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -238,7 +238,7 @@ fontset_id_valid_p (int id)
238/* Macros to access special values of (realized) FONTSET. */ 238/* Macros to access special values of (realized) FONTSET. */
239#define FONTSET_BASE(fontset) XCHAR_TABLE (fontset)->extras[2] 239#define FONTSET_BASE(fontset) XCHAR_TABLE (fontset)->extras[2]
240#define FONTSET_FRAME(fontset) XCHAR_TABLE (fontset)->extras[3] 240#define FONTSET_FRAME(fontset) XCHAR_TABLE (fontset)->extras[3]
241#define FONTSET_OBJLIST(fontset) XCHAR_TABLE (fontset)->extras[4] 241/* #define FONTSET_OBJLIST(fontset) XCHAR_TABLE (fontset)->extras[4] */
242#define FONTSET_NOFONT_FACE(fontset) XCHAR_TABLE (fontset)->extras[5] 242#define FONTSET_NOFONT_FACE(fontset) XCHAR_TABLE (fontset)->extras[5]
243/* #define FONTSET_REPERTORY(fontset) XCHAR_TABLE (fontset)->extras[6] */ 243/* #define FONTSET_REPERTORY(fontset) XCHAR_TABLE (fontset)->extras[6] */
244#define FONTSET_DEFAULT(fontset) XCHAR_TABLE (fontset)->extras[7] 244#define FONTSET_DEFAULT(fontset) XCHAR_TABLE (fontset)->extras[7]
@@ -838,6 +838,7 @@ fontset_ascii (int id)
838static void 838static void
839free_realized_fontset (FRAME_PTR f, Lisp_Object fontset) 839free_realized_fontset (FRAME_PTR f, Lisp_Object fontset)
840{ 840{
841#if 0
841 Lisp_Object tail; 842 Lisp_Object tail;
842 843
843 if (0) 844 if (0)
@@ -846,6 +847,7 @@ free_realized_fontset (FRAME_PTR f, Lisp_Object fontset)
846 xassert (FONT_OBJECT_P (XCAR (tail))); 847 xassert (FONT_OBJECT_P (XCAR (tail)));
847 font_close_object (f, XCAR (tail)); 848 font_close_object (f, XCAR (tail));
848 } 849 }
850#endif
849} 851}
850 852
851/* Free fontset of FACE defined on frame F. Called from 853/* Free fontset of FACE defined on frame F. Called from
@@ -881,6 +883,7 @@ free_face_fontset (FRAME_PTR f, struct face *face)
881} 883}
882 884
883 885
886#if 0
884/* Return 1 if FACE is suitable for displaying character C. 887/* Return 1 if FACE is suitable for displaying character C.
885 Otherwise return 0. Called from the macro FACE_SUITABLE_FOR_CHAR_P 888 Otherwise return 0. Called from the macro FACE_SUITABLE_FOR_CHAR_P
886 when C is not an ASCII character. */ 889 when C is not an ASCII character. */
@@ -896,6 +899,7 @@ face_suitable_for_char_p (struct face *face, int c)
896 && INTEGERP (RFONT_DEF_FACE (rfont_def)) 899 && INTEGERP (RFONT_DEF_FACE (rfont_def))
897 && face->id == XINT (RFONT_DEF_FACE (rfont_def))); 900 && face->id == XINT (RFONT_DEF_FACE (rfont_def)));
898} 901}
902#endif
899 903
900 904
901/* Return ID of face suitable for displaying character C on frame F. 905/* Return ID of face suitable for displaying character C on frame F.