comparison src/device.h @ 545:9a775fb11bb7

[xemacs-hg @ 2001-05-18 04:39:39 by kkm] My 3 patches of 05/01-05/03
author kkm
date Fri, 18 May 2001 04:39:44 +0000
parents 0784d089fdc9
children af57a77cbc92
comparison
equal deleted inserted replaced
544:ffd4d00ff0b6 545:9a775fb11bb7
46 int retval; 46 int retval;
47 }; 47 };
48 48
49 #define DEVICE_TYPE_NAME(d) ((d)->devmeths->name) 49 #define DEVICE_TYPE_NAME(d) ((d)->devmeths->name)
50 #define DEVICE_TYPE(d) ((d)->devmeths->symbol) 50 #define DEVICE_TYPE(d) ((d)->devmeths->symbol)
51 #define DEVICE_IMPL_FLAG(d, f) CONMETH_IMPL_FLAG ((d)->devmeths, (f))
51 #define DEVICE_SPECIFIC_FRAME_PROPS(d) \ 52 #define DEVICE_SPECIFIC_FRAME_PROPS(d) \
52 ((d)->devmeths->device_specific_frame_props) 53 ((d)->devmeths->device_specific_frame_props)
53 54
54 /******** Accessing / calling a device method *********/ 55 /******** Accessing / calling a device method *********/
55 56
271 (type##_console_methods->predicate_symbol, x); \ 272 (type##_console_methods->predicate_symbol, x); \
272 } while (0) 273 } while (0)
273 274
274 #define DEVICE_DISPLAY_P(dev) \ 275 #define DEVICE_DISPLAY_P(dev) \
275 (DEVICE_LIVE_P (dev) && \ 276 (DEVICE_LIVE_P (dev) && \
276 (MAYBE_INT_DEVMETH (dev, \ 277 !DEVICE_IMPL_FLAG (dev, XDEVIMPF_IS_A_PRINTER))
277 device_implementation_flags, ()) \
278 & XDEVIMPF_IS_A_PRINTER) ? 0 : 1)
279 278
280 #define CHECK_DISPLAY_DEVICE(dev) \ 279 #define CHECK_DISPLAY_DEVICE(dev) \
281 do { \ 280 do { \
282 CHECK_DEVICE (dev); \ 281 CHECK_DEVICE (dev); \
283 if (!(DEVICEP (dev) \ 282 if (!(DEVICEP (dev) \