0
|
1 /* Generic specifier list implementation
|
|
2 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois.
|
|
3 Copyright (C) 1995 Ben Wing
|
|
4
|
|
5 This file is part of XEmacs.
|
|
6
|
|
7 XEmacs is free software; you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the
|
|
9 Free Software Foundation; either version 2, or (at your option) any
|
|
10 later version.
|
|
11
|
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* Synched up with: Not in FSF. */
|
|
23
|
|
24 #ifndef _XEMACS_SPECIFIER_H_
|
|
25 #define _XEMACS_SPECIFIER_H_
|
|
26
|
276
|
27 /*
|
|
28 MAGIC SPECIFIERS
|
|
29 ================
|
|
30
|
|
31 Magic specifiers are used to provide fallback values for window
|
|
32 system provided specifications, reflecting user preferences on the
|
|
33 window system, such as default fonts, colors, scrollbar thickness
|
|
34 etc.
|
|
35
|
|
36 A magic specifier consists of two specifier objects. The first one
|
|
37 behaves like a normal specifier in all sences. The second one, a
|
|
38 ghost specifier, is a fallback value for the first one.
|
|
39
|
|
40 Ghost specifiers have the following properties:
|
|
41 - Have back pointers to their parent specifiers.
|
|
42 - Do not have instance data. Instead, they share parent's instance
|
|
43 data.
|
|
44 - Have the same methods structure pointer.
|
|
45 - Share parent's caching scheme.
|
|
46 - Store fallback value instead of their parent.
|
|
47
|
|
48 Ghost specifiers normally are not modifiable at the lisp level, and
|
|
49 only used to supply fallback instance values. Although, under
|
|
50 certain rare conditions, all functions that modify specifiers
|
|
51 operate on ghost objects. This behavior is controlled by the global
|
|
52 variable Vreveal_ghoste_specifiers. It is not exposed to lisp, and
|
|
53 is set during calls to lisp functions which initialize global,
|
|
54 device and frame defaults, such as
|
|
55 init-{global,frame,device}-{faces,toolbars,etc}.
|
|
56
|
|
57 Thus, values supplied by resources or other means of a window system
|
|
58 stored in externally unmodifiable ghost objects. Regular lisp code
|
|
59 may thus freely modify the normal part of a magic specifier, and
|
|
60 removing a specification for a particular domain causes the
|
|
61 specification to consider ghost-provided fallback values, or its own
|
|
62 fallback value.
|
|
63
|
|
64 Rules of conduct for magic specifiers
|
|
65 -------------------------------------
|
|
66 1. All functions exposed to lisp operate on a ghost specifier when
|
|
67 Vreveal_ghoste_specifiers is non-nil. This includes both
|
|
68 modifying and non-modifying functions, such as
|
|
69 Fspecifier_instance, for symmetry and consistency.
|
|
70 2. These functions deal with the above condition internally, passing
|
|
71 mangled specifier pointer to internal functions. The internal
|
|
72 functions always work on a specifier passed, and do not regard
|
|
73 the value of Vreveal_ghoste_specifiers.
|
|
74 3. recompute_*() functions always operate on the whole specifier
|
|
75 when passed only a ghost object, by substituting it with their
|
|
76 parent bodily object.
|
|
77 4. All specifier methods, except for instantiate method, are passed
|
|
78 the bodily object of the magic specifier. Instantiate method is
|
|
79 passed the specifier being instantiated.
|
|
80 5. Only bodily objects are passed to set_specifier_caching function,
|
|
81 and only these may be cached.
|
|
82 6. All specifiers are added to Vall_specifiers list, both bodily and
|
|
83 ghost. The pair of objects is always removed from the list at the
|
|
84 same time.
|
|
85 */
|
|
86
|
0
|
87 struct specifier_methods
|
|
88 {
|
|
89 CONST char *name;
|
|
90 Lisp_Object predicate_symbol;
|
|
91
|
|
92 /* Implementation specific methods: */
|
|
93
|
276
|
94 /* Create method: Initialize specifier data. Optional. */
|
0
|
95 void (*create_method) (Lisp_Object specifier);
|
276
|
96
|
|
97 /* Mark method: Mark any lisp object within specifier data
|
|
98 structure. Not required if no specifier data are Lisp_Objects. */
|
0
|
99 void (*mark_method) (Lisp_Object specifier, void (*markobj) (Lisp_Object));
|
276
|
100
|
|
101 /* Equal method: Compare two specifiers. This is called after
|
|
102 ensuring that the two specifiers are of the same type, and habe
|
|
103 the same specs. Quit is inhibited during the call so it is safe
|
|
104 to call internal_equal().
|
|
105
|
|
106 If this function is not present, specifiers considered equal when
|
|
107 the above conditions are met, i.e. as if the method returned
|
|
108 non-zero. */
|
0
|
109 int (*equal_method) (Lisp_Object sp1, Lisp_Object sp2, int depth);
|
276
|
110
|
|
111 /* Hash method: Hash specifier instance data. This has to hash only
|
|
112 data structure of the specifier, as specs are hashed by the core
|
|
113 code.
|
|
114
|
|
115 If this function is not present, hashing behaves as if it
|
|
116 returned zero. */
|
0
|
117 unsigned long (*hash_method) (Lisp_Object specifier, int depth);
|
|
118
|
|
119 /* Validate method: Given an instantiator, verify that it's
|
|
120 valid for this specifier type. If not, signal an error.
|
|
121
|
276
|
122 If this function is not present, all instantiators are considered
|
|
123 valid. */
|
0
|
124 void (*validate_method) (Lisp_Object instantiator);
|
|
125
|
|
126 /* Validate-matchspec method: Given a matchspec, verify that it's
|
|
127 valid for this specifier type. If not, signal an error.
|
|
128
|
272
|
129 If this function is not present, *no* matchspecs are considered
|
0
|
130 valid. Note that this differs from validate_method(). */
|
|
131 void (*validate_matchspec_method) (Lisp_Object matchspec);
|
|
132
|
276
|
133 /* Instantiate method: Return SPECIFIER instance in DOMAIN,
|
|
134 specified by INSTANTIATOR. MATCHSPEC specifies an additional
|
|
135 constraints on the instance value (see the docstring for
|
|
136 Fspecifier_matching_instance function). MATCHSPEC is passed
|
|
137 Qunbound when no matching constraints are imposed. The method is
|
|
138 called via call_with_suspended_errors(), so allowed to eval
|
|
139 safely.
|
|
140
|
|
141 DEPTH is a lisp integer denoting current depth of instantiation
|
|
142 calls. #### WTF a method can do with this?
|
|
143
|
|
144 This method must presume that both INSTANTIATOR and MATCSPEC are
|
|
145 already validated by the corresponding validate_* methods, and
|
|
146 may abort if they are invalid.
|
|
147
|
|
148 Return value is an instance, which is returned immediately to the
|
|
149 caller, or Qunbound to continue instantiation lookup chain.
|
|
150
|
|
151 If this function is not present, INSTANTIATOR is used as the
|
|
152 specifier instance. This is the usual case for "simple"
|
|
153 specifiers, like integer and boolean. */
|
0
|
154 Lisp_Object (*instantiate_method) (Lisp_Object specifier,
|
|
155 Lisp_Object matchspec,
|
|
156 Lisp_Object domain,
|
|
157 Lisp_Object instantiator,
|
|
158 Lisp_Object depth);
|
276
|
159
|
0
|
160 /* Going-to-add method: Called when an instantiator is about
|
|
161 to be added to a specifier. This function can specify
|
|
162 that different instantiators should be used instead by
|
|
163 returning an inst-list (possibly containing zero elements).
|
|
164 If the instantiator is fine as-is, return Qt. The
|
|
165 instantiator has been copied with copy-tree, so feel
|
|
166 free to reuse parts of it to create a new instantiator.
|
|
167 The tag-set, however, is not copied and is not canonicalized
|
276
|
168 (that will be done on the result of this function). */
|
0
|
169 Lisp_Object (*going_to_add_method) (Lisp_Object specifier,
|
|
170 Lisp_Object locale,
|
|
171 Lisp_Object tag_set,
|
|
172 Lisp_Object instantiator);
|
276
|
173
|
|
174 /* After-change method: Called when the SPECIFIER has just been
|
|
175 changed in LOCALE. The method is called upon:
|
|
176 * Removing and adding specs to/from the specifier;
|
|
177 * Changing the specifier fallback.
|
|
178
|
|
179 #### The method may have called more than once per each specifier
|
|
180 change.
|
|
181
|
|
182 #### Do not still know if this can safely eval. */
|
0
|
183 void (*after_change_method) (Lisp_Object specifier,
|
|
184 Lisp_Object locale);
|
|
185
|
|
186 int extra_data_size;
|
|
187 };
|
|
188
|
|
189 struct Lisp_Specifier
|
|
190 {
|
|
191 struct lcrecord_header header;
|
|
192 struct specifier_methods *methods;
|
|
193
|
|
194 /* we keep a chained list of all current specifiers, for GC cleanup
|
|
195 purposes. Do NOT mark through this, or specifiers will never
|
|
196 be GC'd. */
|
|
197 Lisp_Object next_specifier;
|
|
198
|
|
199 /* This is a straight list of instantiators. */
|
|
200 Lisp_Object global_specs;
|
|
201
|
272
|
202 /* These are all assoc lists where the key is the type of object the
|
0
|
203 list represents (buffer, window, etc.) and the associated list is
|
|
204 the actual list of instantiators. */
|
|
205 Lisp_Object device_specs;
|
|
206 Lisp_Object frame_specs;
|
|
207 /* window_specs is actually a key-assoc weak list. See specifier.c
|
|
208 for an explanation of why (it boils down to the fact that
|
|
209 dead windows can become live again through window configurations).
|
|
210 */
|
|
211 Lisp_Object window_specs;
|
|
212 Lisp_Object buffer_specs;
|
|
213
|
|
214 struct specifier_caching *caching;
|
276
|
215
|
|
216 /* This can be either nil, for a plain, non-magic specifier object,
|
|
217 t for the normal part of the magic specifier, or #<specifier> for
|
|
218 the ghost part of the magic specifier, a pointer to its parent
|
|
219 object */
|
|
220 Lisp_Object magic_parent;
|
|
221
|
|
222 /* Fallback value. For magic specifiers, it is a pointer to the ghost. */
|
0
|
223 Lisp_Object fallback;
|
276
|
224
|
0
|
225 /* type-specific extra data attached to a specifier */
|
|
226 char data[1];
|
|
227 };
|
|
228
|
|
229 DECLARE_LRECORD (specifier, struct Lisp_Specifier);
|
|
230 #define XSPECIFIER(x) XRECORD (x, specifier, struct Lisp_Specifier)
|
|
231 #define XSETSPECIFIER(x, p) XSETRECORD (x, p, specifier)
|
|
232 #define SPECIFIERP(x) RECORDP (x, specifier)
|
|
233 #define GC_SPECIFIERP(x) GC_RECORDP (x, specifier)
|
|
234 #define CHECK_SPECIFIER(x) CHECK_RECORD (x, specifier)
|
|
235 #define CONCHECK_SPECIFIER(x) CONCHECK_RECORD (x, specifier)
|
|
236
|
|
237 /***** Calling a specifier method *****/
|
|
238
|
|
239 #define RAW_SPECMETH(sp, m) ((sp)->methods->m##_method)
|
|
240 #define HAS_SPECMETH_P(sp, m) (!!RAW_SPECMETH (sp, m))
|
|
241 #define SPECMETH(sp, m, args) (((sp)->methods->m##_method) args)
|
|
242
|
272
|
243 /* Call a void-returning specifier method, if it exists. */
|
|
244 #define MAYBE_SPECMETH(sp, m, args) do { \
|
|
245 struct Lisp_Specifier *_maybe_specmeth_sp = (sp); \
|
|
246 if (HAS_SPECMETH_P (_maybe_specmeth_sp, m)) \
|
|
247 SPECMETH (_maybe_specmeth_sp, m, args); \
|
0
|
248 } while (0)
|
|
249
|
|
250 /***** Defining new specifier types *****/
|
|
251
|
272
|
252 #ifdef ERROR_CHECK_TYPECHECK
|
|
253 #define DECLARE_SPECIFIER_TYPE(type) \
|
|
254 extern struct specifier_methods * type##_specifier_methods; \
|
|
255 INLINE struct type##_specifier * \
|
|
256 error_check_##type##_specifier_data (struct Lisp_Specifier *sp); \
|
|
257 INLINE struct type##_specifier * \
|
|
258 error_check_##type##_specifier_data (struct Lisp_Specifier *sp) \
|
|
259 { \
|
276
|
260 if (SPECIFIERP (sp->magic_parent)) \
|
|
261 { \
|
|
262 assert (SPECIFIER_TYPE_P (sp, type)); \
|
|
263 sp = XSPECIFIER (sp->magic_parent); \
|
|
264 } \
|
|
265 else \
|
|
266 assert (NILP (sp->magic_parent) || EQ (sp->magic_parent, Qt)); \
|
272
|
267 assert (SPECIFIER_TYPE_P (sp, type)); \
|
|
268 return (struct type##_specifier *) sp->data; \
|
|
269 } \
|
|
270 DECLARE_NOTHING
|
|
271 #else
|
|
272 #define DECLARE_SPECIFIER_TYPE(type) \
|
0
|
273 extern struct specifier_methods * type##_specifier_methods
|
272
|
274 #endif /* ERROR_CHECK_TYPECHECK */
|
0
|
275
|
272
|
276 #define DEFINE_SPECIFIER_TYPE(type) \
|
0
|
277 struct specifier_methods * type##_specifier_methods
|
|
278
|
185
|
279 #define INITIALIZE_SPECIFIER_TYPE(type, obj_name, pred_sym) do { \
|
|
280 type##_specifier_methods = xnew_and_zero (struct specifier_methods); \
|
|
281 type##_specifier_methods->name = obj_name; \
|
|
282 defsymbol (&type##_specifier_methods->predicate_symbol, pred_sym); \
|
|
283 add_entry_to_specifier_type_list (Q##type, type##_specifier_methods); \
|
272
|
284 } while (0)
|
0
|
285
|
|
286 #define INITIALIZE_SPECIFIER_TYPE_WITH_DATA(type, obj_name, pred_sym) \
|
272
|
287 do { \
|
|
288 INITIALIZE_SPECIFIER_TYPE (type, obj_name, pred_sym); \
|
|
289 type##_specifier_methods->extra_data_size = \
|
|
290 sizeof (struct type##_specifier); \
|
|
291 } while (0)
|
0
|
292
|
272
|
293 /* Declare that specifier-type TYPE has method METH; used in
|
0
|
294 initialization routines */
|
272
|
295 #define SPECIFIER_HAS_METHOD(type, meth) \
|
|
296 (type##_specifier_methods->meth##_method = type##_##meth)
|
0
|
297
|
|
298 /***** Macros for accessing specifier types *****/
|
|
299
|
272
|
300 #define SPECIFIER_TYPE_P(sp, type) \
|
0
|
301 ((sp)->methods == type##_specifier_methods)
|
|
302
|
276
|
303 /* Any of the two of the magic spec */
|
|
304 #define MAGIC_SPECIFIER_P(sp) \
|
|
305 (!NILP((sp)->magic_parent))
|
|
306 /* Normal part of the magic specifier */
|
|
307 #define BODILY_SPECIFIER_P(sp) \
|
|
308 (EQ ((sp)->magic_parent, Qt))
|
|
309 /* Ghost part of the magic specifier */
|
|
310 #define GHOST_SPECIFIER_P(sp) \
|
|
311 (SPECIFIERP((sp)->magic_parent))
|
|
312 /* The same three, when used in GC */
|
|
313 #define GC_MAGIC_SPECIFIER_P(sp) \
|
|
314 (!GC_NILP((sp)->magic_parent))
|
|
315 #define GC_BODILY_SPECIFIER_P(sp) \
|
|
316 (GC_EQ ((sp)->magic_parent, Qt))
|
|
317 #define GC_GHOST_SPECIFIER_P(sp) \
|
|
318 (GC_SPECIFIERP((sp)->magic_parent))
|
|
319
|
|
320 #define GHOST_SPECIFIER(sp) \
|
|
321 (XSPECIFIER ((sp)->fallback))
|
|
322
|
0
|
323 #ifdef ERROR_CHECK_TYPECHECK
|
272
|
324 # define SPECIFIER_TYPE_DATA(sp, type) \
|
|
325 error_check_##type##_specifier_data (sp)
|
0
|
326 #else
|
276
|
327 # define SPECIFIER_TYPE_DATA(sp, type) \
|
|
328 ((struct type##_specifier *) \
|
|
329 (GHOST_SPECIFIER_P(sp) \
|
|
330 ? XSPECIFIER((sp)->magic_parent)->data \
|
|
331 : (sp)->data))
|
0
|
332 #endif
|
|
333
|
|
334 /* #### Need to create ERROR_CHECKING versions of these. */
|
|
335
|
|
336 #define XSPECIFIER_TYPE(x, type) XSPECIFIER (x)
|
|
337 #define XSETSPECIFIER_TYPE(x, p, type) XSETSPECIFIER (x, p)
|
|
338 #define SPECIFIER_TYPEP(x, type) \
|
|
339 (SPECIFIERP (x) && SPECIFIER_TYPE_P (XSPECIFIER (x), type))
|
272
|
340 #define CHECK_SPECIFIER_TYPE(x, type) do { \
|
|
341 CHECK_SPECIFIER (x); \
|
|
342 if (!SPECIFIER_TYPE_P (XSPECIFIER (x), type)) \
|
|
343 dead_wrong_type_argument \
|
|
344 (type##_specifier_methods->predicate_symbol, x); \
|
|
345 } while (0)
|
|
346 #define CONCHECK_SPECIFIER_TYPE(x, type) do { \
|
|
347 CONCHECK_SPECIFIER (x); \
|
|
348 if (!(SPECIFIER_TYPEP (x, type))) \
|
|
349 x = wrong_type_argument \
|
|
350 (type##_specifier_methods->predicate_symbol, x); \
|
|
351 } while (0)
|
0
|
352
|
|
353 /***** Miscellaneous structures *****/
|
|
354
|
|
355 enum spec_locale_type
|
|
356 {
|
|
357 LOCALE_GLOBAL,
|
|
358 LOCALE_DEVICE,
|
|
359 LOCALE_FRAME,
|
|
360 LOCALE_WINDOW,
|
|
361 LOCALE_BUFFER
|
|
362 };
|
|
363
|
|
364 enum spec_add_meth
|
|
365 {
|
|
366 SPEC_PREPEND,
|
|
367 SPEC_APPEND,
|
|
368 SPEC_REMOVE_TAG_SET_PREPEND,
|
|
369 SPEC_REMOVE_TAG_SET_APPEND,
|
|
370 SPEC_REMOVE_LOCALE,
|
|
371 SPEC_REMOVE_LOCALE_TYPE,
|
|
372 SPEC_REMOVE_ALL
|
|
373 };
|
|
374
|
|
375 struct specifier_caching
|
|
376 {
|
|
377 int offset_into_struct_window;
|
|
378 void (*value_changed_in_window) (Lisp_Object specifier, struct window *w,
|
|
379 Lisp_Object oldval);
|
|
380 int offset_into_struct_frame;
|
|
381 void (*value_changed_in_frame) (Lisp_Object specifier, struct frame *f,
|
|
382 Lisp_Object oldval);
|
|
383 };
|
|
384
|
272
|
385 EXFUN (Fcopy_specifier, 6);
|
|
386 EXFUN (Fmake_specifier, 1);
|
|
387 EXFUN (Fset_specifier_dirty_flag, 1);
|
|
388 EXFUN (Fspecifier_instance, 4);
|
|
389 EXFUN (Fvalid_specifier_locale_p, 1);
|
|
390
|
|
391 extern Lisp_Object Qfallback, Qnatnum;
|
|
392
|
276
|
393 Lisp_Object make_magic_specifier (Lisp_Object type);
|
272
|
394 Lisp_Object decode_locale_list (Lisp_Object locale);
|
0
|
395 extern enum spec_add_meth
|
|
396 decode_how_to_add_specification (Lisp_Object how_to_add);
|
272
|
397 Lisp_Object decode_specifier_tag_set (Lisp_Object tag_set);
|
0
|
398
|
272
|
399 void add_entry_to_specifier_type_list (Lisp_Object symbol,
|
|
400 struct specifier_methods *meths);
|
|
401 void set_specifier_caching (Lisp_Object specifier,
|
|
402 int struct_window_offset,
|
|
403 void (*value_changed_in_window)
|
|
404 (Lisp_Object specifier, struct window *w,
|
|
405 Lisp_Object oldval),
|
|
406 int struct_frame_offset,
|
|
407 void (*value_changed_in_frame)
|
|
408 (Lisp_Object specifier, struct frame *f,
|
|
409 Lisp_Object oldval));
|
|
410 void set_specifier_fallback (Lisp_Object specifier,
|
|
411 Lisp_Object fallback);
|
|
412 void recompute_all_cached_specifiers_in_window (struct window *w);
|
|
413 void recompute_all_cached_specifiers_in_frame (struct frame *f);
|
0
|
414
|
276
|
415 /* Counterparts of Fadd_spec_to_specifier and Fremove_specifier,
|
|
416 which operate directly on ghost objects */
|
|
417 void add_spec_to_ghost_specifier (Lisp_Object specifier, Lisp_Object instantiator,
|
|
418 Lisp_Object locale, Lisp_Object tag_set,
|
|
419 Lisp_Object how_to_add);
|
|
420 void remove_ghost_specifier (Lisp_Object specifier, Lisp_Object locale,
|
|
421 Lisp_Object tag_set, Lisp_Object exact_p);
|
|
422
|
|
423 int reveal_ghost_specifiers_protected (void);
|
|
424
|
272
|
425 void cleanup_specifiers (void);
|
|
426 void prune_specifiers (int (*obj_marked_p) (Lisp_Object));
|
|
427 void setup_device_initial_specifier_tags (struct device *d);
|
0
|
428 void kill_specifier_buffer_locals (Lisp_Object buffer);
|
|
429
|
|
430 DECLARE_SPECIFIER_TYPE (generic);
|
|
431 #define XGENERIC_SPECIFIER(x) XSPECIFIER_TYPE (x, generic)
|
|
432 #define XSETGENERIC_SPECIFIER(x, p) XSETSPECIFIER_TYPE (x, p, generic)
|
|
433 #define GENERIC_SPECIFIERP(x) SPECIFIER_TYPEP (x, generic)
|
|
434 #define CHECK_GENERIC_SPECIFIER(x) CHECK_SPECIFIER_TYPE (x, generic)
|
|
435 #define CONCHECK_GENERIC_SPECIFIER(x) CONCHECK_SPECIFIER_TYPE (x, generic)
|
|
436
|
|
437 DECLARE_SPECIFIER_TYPE (integer);
|
|
438 #define XINTEGER_SPECIFIER(x) XSPECIFIER_TYPE (x, integer)
|
|
439 #define XSETINTEGER_SPECIFIER(x, p) XSETSPECIFIER_TYPE (x, p, integer)
|
|
440 #define INTEGER_SPECIFIERP(x) SPECIFIER_TYPEP (x, integer)
|
|
441 #define CHECK_INTEGER_SPECIFIER(x) CHECK_SPECIFIER_TYPE (x, integer)
|
|
442 #define CONCHECK_INTEGER_SPECIFIER(x) CONCHECK_SPECIFIER_TYPE (x, integer)
|
|
443
|
|
444 DECLARE_SPECIFIER_TYPE (natnum);
|
|
445 #define XNATNUM_SPECIFIER(x) XSPECIFIER_TYPE (x, natnum)
|
|
446 #define XSETNATNUM_SPECIFIER(x, p) XSETSPECIFIER_TYPE (x, p, natnum)
|
|
447 #define NATNUM_SPECIFIERP(x) SPECIFIER_TYPEP (x, natnum)
|
|
448 #define CHECK_NATNUM_SPECIFIER(x) CHECK_SPECIFIER_TYPE (x, natnum)
|
|
449 #define CONCHECK_NATNUM_SPECIFIER(x) CONCHECK_SPECIFIER_TYPE (x, natnum)
|
|
450
|
|
451 DECLARE_SPECIFIER_TYPE (boolean);
|
|
452 #define XBOOLEAN_SPECIFIER(x) XSPECIFIER_TYPE (x, boolean)
|
|
453 #define XSETBOOLEAN_SPECIFIER(x, p) XSETSPECIFIER_TYPE (x, p, boolean)
|
|
454 #define BOOLEAN_SPECIFIERP(x) SPECIFIER_TYPEP (x, boolean)
|
|
455 #define CHECK_BOOLEAN_SPECIFIER(x) CHECK_SPECIFIER_TYPE (x, boolean)
|
|
456 #define CONCHECK_BOOLEAN_SPECIFIER(x) CONCHECK_SPECIFIER_TYPE (x, boolean)
|
|
457
|
116
|
458 DECLARE_SPECIFIER_TYPE (display_table);
|
|
459 #define XDISPLAYTABLE_SPECIFIER(x) XSPECIFIER_TYPE (x, display_table)
|
|
460 #define XSETDISPLAYTABLE_SPECIFIER(x, p) XSETSPECIFIER_TYPE (x, p, display_table)
|
|
461 #define DISPLAYTABLE_SPECIFIERP(x) SPECIFIER_TYPEP (x, display_table)
|
|
462 #define CHECK_DISPLAYTABLE_SPECIFIER(x) CHECK_SPECIFIER_TYPE (x, display_table)
|
|
463 #define CONCHECK_DISPLAYTABLE_SPECIFIER(x) CONCHECK_SPECIFIER_TYPE (x, display_table)
|
|
464
|
0
|
465 #endif /* _XEMACS_SPECIFIER_H_ */
|