Mercurial > hg > xemacs-beta
comparison src/faces.h @ 3092:141c2920ea48
[xemacs-hg @ 2005-11-25 01:41:31 by crestani]
Incremental Garbage Collector
author | crestani |
---|---|
date | Fri, 25 Nov 2005 01:42:08 +0000 |
parents | 1e7cc382eb16 |
children | ad2f4ae9895b |
comparison
equal
deleted
inserted
replaced
3091:c22d8984148c | 3092:141c2920ea48 |
---|---|
115 #define NUM_STATIC_CACHEL_FACES 4 | 115 #define NUM_STATIC_CACHEL_FACES 4 |
116 | 116 |
117 typedef struct face_cachel face_cachel; | 117 typedef struct face_cachel face_cachel; |
118 struct face_cachel | 118 struct face_cachel |
119 { | 119 { |
120 #ifdef NEW_GC | |
121 struct lrecord_header header; | |
122 #endif /* not NEW_GC */ | |
120 /* There are two kinds of cachels; those created from a single face | 123 /* There are two kinds of cachels; those created from a single face |
121 and those created by merging more than one face. In the former | 124 and those created by merging more than one face. In the former |
122 case, the FACE element specifies the face used. In the latter | 125 case, the FACE element specifies the face used. In the latter |
123 case, the MERGED_FACES_STATIC and MERGED_FACES elements specify | 126 case, the MERGED_FACES_STATIC and MERGED_FACES elements specify |
124 the faces used for merging by giving the indices of the | 127 the faces used for merging by giving the indices of the |
219 unsigned int dirty :1; | 222 unsigned int dirty :1; |
220 unsigned int updated :1; | 223 unsigned int updated :1; |
221 /* #### Of course we should use a bit array or something. */ | 224 /* #### Of course we should use a bit array or something. */ |
222 unsigned char font_updated[NUM_LEADING_BYTES]; | 225 unsigned char font_updated[NUM_LEADING_BYTES]; |
223 }; | 226 }; |
227 | |
228 #ifdef NEW_GC | |
229 typedef struct face_cachel Lisp_Face_Cachel; | |
230 | |
231 DECLARE_LRECORD (face_cachel, Lisp_Face_Cachel); | |
232 | |
233 #define XFACE_CACHEL(x) \ | |
234 XRECORD (x, face_cachel, Lisp_Face_Cachel) | |
235 #define wrap_face_cachel(p) wrap_record (p, face_cachel) | |
236 #define FACE_CACHEL_P(x) RECORDP (x, face_cachel) | |
237 #define CHECK_FACE_CACHEL(x) CHECK_RECORD (x, face_cachel) | |
238 #define CONCHECK_FACE_CACHEL(x) CONCHECK_RECORD (x, face_cachel) | |
239 #endif /* NEW_GC */ | |
224 | 240 |
225 DECLARE_LRECORD (face, Lisp_Face); | 241 DECLARE_LRECORD (face, Lisp_Face); |
226 #define XFACE(x) XRECORD (x, face, Lisp_Face) | 242 #define XFACE(x) XRECORD (x, face, Lisp_Face) |
227 #define wrap_face(p) wrap_record (p, face) | 243 #define wrap_face(p) wrap_record (p, face) |
228 #define FACEP(x) RECORDP (x, face) | 244 #define FACEP(x) RECORDP (x, face) |