aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-07-26 04:05:48 +0000
committerKenichi Handa2002-07-26 04:05:48 +0000
commitda78062bf9c1a1b4e737ead21c73bfb63047cd64 (patch)
tree44d7e37810b80d56dcf7e2d7d13d4246a3b236eb /src
parenteaa3b0e07ace0fb5c494f8f88f7e377983f4faca (diff)
downloademacs-da78062bf9c1a1b4e737ead21c73bfb63047cd64.tar.gz
emacs-da78062bf9c1a1b4e737ead21c73bfb63047cd64.zip
(struct face): Member `charset' deleted.
(FACE_SUITABLE_FOR_CHAR_P): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. (FACE_FOR_CHAR): Likewise. (choose_face_font, lookup_non_ascii_face, font_name_registry): Add prototypes (lookup_face, lookup_named_face, lookup_derived_face): Prototype fixed. (generate_ascii_font_name): Renamed from generate_ascii_font.
Diffstat (limited to 'src')
-rw-r--r--src/dispextern.h33
1 files changed, 14 insertions, 19 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 2629dfb96dc..9605d55e7bb 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -1265,10 +1265,8 @@ struct face
1265 reallocated. */ 1265 reallocated. */
1266 int font_info_id; 1266 int font_info_id;
1267 1267
1268 /* Fontset ID if this face uses a fontset, or -1. This is only >= 0 1268 /* Fontset ID if for this face's fontset. Non-ASCII faces derived
1269 if the face was realized for a composition sequence. 1269 from the same ASCII face have the same fontset. */
1270 Otherwise, a specific font is loaded from the set of fonts
1271 specified by the fontset given by the family attribute of the face. */
1272 int fontset; 1270 int fontset;
1273 1271
1274 /* Pixmap width and height. */ 1272 /* Pixmap width and height. */
@@ -1300,13 +1298,6 @@ struct face
1300 /* The hash value of this face. */ 1298 /* The hash value of this face. */
1301 unsigned hash; 1299 unsigned hash;
1302 1300
1303 /* The charset for which this face was realized if it was realized
1304 for use in multibyte text. If fontset >= 0, this is the charset
1305 of the first character of the composition sequence. A value of
1306 charset < 0 means the face was realized for use in unibyte text
1307 where the idea of Emacs charsets isn't applicable. */
1308 int charset;
1309
1310 /* Non-zero if text in this face should be underlined, overlined, 1301 /* Non-zero if text in this face should be underlined, overlined,
1311 strike-through or have a box drawn around it. */ 1302 strike-through or have a box drawn around it. */
1312 unsigned underline_p : 1; 1303 unsigned underline_p : 1;
@@ -1349,8 +1340,9 @@ struct face
1349 /* Next and previous face in hash collision list of face cache. */ 1340 /* Next and previous face in hash collision list of face cache. */
1350 struct face *next, *prev; 1341 struct face *next, *prev;
1351 1342
1352 /* If this face is for ASCII characters, this points this face 1343 /* If this face is an ASCII face, this points to this face itself.
1353 itself. Otherwise, this points a face for ASCII characters. */ 1344 Otherwise, this points to an ASCII face that has the same
1345 attributes except the font. */
1354 struct face *ascii_face; 1346 struct face *ascii_face;
1355}; 1347};
1356 1348
@@ -1437,7 +1429,7 @@ struct face_cache
1437/* Non-zero if FACE is suitable for displaying character CHAR. */ 1429/* Non-zero if FACE is suitable for displaying character CHAR. */
1438 1430
1439#define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR) \ 1431#define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR) \
1440 (SINGLE_BYTE_CHAR_P (CHAR) \ 1432 (ASCII_CHAR_P (CHAR) \
1441 ? (FACE) == (FACE)->ascii_face \ 1433 ? (FACE) == (FACE)->ascii_face \
1442 : face_suitable_for_char_p ((FACE), (CHAR))) 1434 : face_suitable_for_char_p ((FACE), (CHAR)))
1443 1435
@@ -1446,7 +1438,7 @@ struct face_cache
1446 This macro is only meaningful for multibyte character CHAR. */ 1438 This macro is only meaningful for multibyte character CHAR. */
1447 1439
1448#define FACE_FOR_CHAR(F, FACE, CHAR) \ 1440#define FACE_FOR_CHAR(F, FACE, CHAR) \
1449 (SINGLE_BYTE_CHAR_P (CHAR) \ 1441 (ASCII_CHAR_P (CHAR) \
1450 ? (FACE)->ascii_face->id \ 1442 ? (FACE)->ascii_face->id \
1451 : face_for_char ((F), (FACE), (CHAR))) 1443 : face_for_char ((F), (FACE), (CHAR)))
1452 1444
@@ -2276,14 +2268,16 @@ unsigned long load_color P_ ((struct frame *, struct face *, Lisp_Object,
2276 enum lface_attribute_index)); 2268 enum lface_attribute_index));
2277void unload_color P_ ((struct frame *, unsigned long)); 2269void unload_color P_ ((struct frame *, unsigned long));
2278int frame_update_line_height P_ ((struct frame *)); 2270int frame_update_line_height P_ ((struct frame *));
2271char *choose_face_font P_ ((struct frame *, Lisp_Object *, Lisp_Object));
2279int ascii_face_of_lisp_face P_ ((struct frame *, int)); 2272int ascii_face_of_lisp_face P_ ((struct frame *, int));
2280void prepare_face_for_display P_ ((struct frame *, struct face *)); 2273void prepare_face_for_display P_ ((struct frame *, struct face *));
2281int xstricmp P_ ((unsigned char *, unsigned char *)); 2274int xstricmp P_ ((unsigned char *, unsigned char *));
2282int lookup_face P_ ((struct frame *, Lisp_Object *, int, struct face *)); 2275int lookup_face P_ ((struct frame *, Lisp_Object *));
2283int lookup_named_face P_ ((struct frame *, Lisp_Object, int)); 2276int lookup_non_ascii_face P_ ((struct frame *, int, struct face *));
2277int lookup_named_face P_ ((struct frame *, Lisp_Object));
2284int smaller_face P_ ((struct frame *, int, int)); 2278int smaller_face P_ ((struct frame *, int, int));
2285int face_with_height P_ ((struct frame *, int, int)); 2279int face_with_height P_ ((struct frame *, int, int));
2286int lookup_derived_face P_ ((struct frame *, Lisp_Object, int, int)); 2280int lookup_derived_face P_ ((struct frame *, Lisp_Object, int));
2287void init_frame_faces P_ ((struct frame *)); 2281void init_frame_faces P_ ((struct frame *));
2288void free_frame_faces P_ ((struct frame *)); 2282void free_frame_faces P_ ((struct frame *));
2289void recompute_basic_faces P_ ((struct frame *)); 2283void recompute_basic_faces P_ ((struct frame *));
@@ -2298,7 +2292,8 @@ void free_realized_face P_ ((struct frame *, struct face *));
2298extern Lisp_Object Qforeground_color, Qbackground_color; 2292extern Lisp_Object Qforeground_color, Qbackground_color;
2299extern char unspecified_fg[], unspecified_bg[]; 2293extern char unspecified_fg[], unspecified_bg[];
2300extern void check_face_attributes P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); 2294extern void check_face_attributes P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
2301extern Lisp_Object generate_ascii_font P_ ((Lisp_Object, Lisp_Object)); 2295extern Lisp_Object generate_ascii_font_name P_ ((Lisp_Object, Lisp_Object));
2296extern Lisp_Object font_name_registry P_ ((Lisp_Object));
2302 2297
2303/* Defined in xfns.c */ 2298/* Defined in xfns.c */
2304 2299