comparison src/device.h @ 2:ac2d302a0011 r19-15b2

Import from CVS: tag r19-15b2
author cvs
date Mon, 13 Aug 2007 08:46:35 +0200
parents 376386a54a3c
children 131b0175ea99
comparison
equal deleted inserted replaced
1:c0c6a60d29db 2:ac2d302a0011
312 #define UNLOCK_DEVICE(d) do { (d)->locked = 0; } while (0) 312 #define UNLOCK_DEVICE(d) do { (d)->locked = 0; } while (0)
313 313
314 #define INVALIDATE_DEVICE_PIXEL_TO_GLYPH_CACHE(d) \ 314 #define INVALIDATE_DEVICE_PIXEL_TO_GLYPH_CACHE(d) \
315 (d)->pixel_to_glyph_cache.valid = 0 315 (d)->pixel_to_glyph_cache.valid = 0
316 316
317 #define INVALIDATE_PIXEL_TO_GLYPH_CACHE do { \ 317 #define INVALIDATE_PIXEL_TO_GLYPH_CACHE do { \
318 Lisp_Object _devcons_, _concons_; \ 318 Lisp_Object _devcons_, _concons_; \
319 DEVICE_LOOP_NO_BREAK (_devcons_, _concons_) \ 319 DEVICE_LOOP_NO_BREAK (_devcons_, _concons_) \
320 INVALIDATE_DEVICE_PIXEL_TO_GLYPH_CACHE (XDEVICE (XCONS (_devcons_)->car));\ 320 INVALIDATE_DEVICE_PIXEL_TO_GLYPH_CACHE (XDEVICE (XCONS (_devcons_)->car));\
321 } while (0) 321 } while (0)
322 322
323 #define MARK_DEVICE_FACES_CHANGED(d) do { \ 323 #define MARK_DEVICE_FACES_CHANGED(d) do { \
324 faces_changed = 1; \ 324 faces_changed = 1; \
352 352
353 /* This turns out to be used heavily so we make it a macro to make it 353 /* This turns out to be used heavily so we make it a macro to make it
354 inline. Also, the majority of the time the object will turn out to 354 inline. Also, the majority of the time the object will turn out to
355 be a window so we move it from being checked last to being checked 355 be a window so we move it from being checked last to being checked
356 first. */ 356 first. */
357 #define DFW_DEVICE(obj) \ 357 #define DFW_DEVICE(obj) \
358 (WINDOWP (obj) \ 358 (WINDOWP (obj) ? WINDOW_DEVICE (XWINDOW (obj)) \
359 ? WINDOW_DEVICE (XWINDOW (obj)) \ 359 : (FRAMEP (obj) ? FRAME_DEVICE (XFRAME (obj)) \
360 : (FRAMEP (obj) \ 360 : (DEVICEP (obj) ? obj \
361 ? FRAME_DEVICE (XFRAME (obj)) \ 361 : Qnil)))
362 : (DEVICEP (obj) \
363 ? obj \
364 : Qnil)))
365 362
366 /* NO_BREAK means that "break" doesn't do what you think it does! 363 /* NO_BREAK means that "break" doesn't do what you think it does!
367 Use goto instead. "continue" is OK, though. */ 364 Use goto instead. "continue" is OK, though. */
368 #define DEVICE_LOOP_NO_BREAK(devcons, concons) \ 365 #define DEVICE_LOOP_NO_BREAK(devcons, concons) \
369 CONSOLE_LOOP (concons) \ 366 CONSOLE_LOOP (concons) \