comparison src/events.h @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 697ef44129c6
children
comparison
equal deleted inserted replaced
423:28d9c139be4c 424:11054d720c21
432 #endif 432 #endif
433 #ifdef HAVE_MS_WINDOWS 433 #ifdef HAVE_MS_WINDOWS
434 int underlying_mswindows_event; 434 int underlying_mswindows_event;
435 #endif 435 #endif
436 }; 436 };
437
438 struct Lisp_Timeout
439 {
440 struct lcrecord_header header;
441 int id; /* Id we use to identify the timeout over its lifetime */
442 int interval_id; /* Id for this particular interval; this may
443 be different each time the timeout is
444 signalled.*/
445 Lisp_Object function, object; /* Function and object associated
446 with timeout. */
447 EMACS_TIME next_signal_time; /* Absolute time when the timeout
448 is next going to be signalled. */
449 unsigned int resignal_msecs; /* How far after the next timeout
450 should the one after that
451 occur? */
452 };
453
454 DECLARE_LRECORD (timeout, struct Lisp_Timeout);
455 #define XTIMEOUT(x) XRECORD (x, timeout, struct Lisp_Timeout)
456 #define XSETTIMEOUT(x, p) XSETRECORD (x, p, timeout)
457 #define TIMEOUTP(x) RECORDP (x, timeout)
458 #define CHECK_TIMEOUT(x) CHECK_RECORD (x, timeout)
459 #define CONCHECK_TIMEOUT(x) CONCHECK_RECORD (x, timeout)
437 460
438 struct Lisp_Event 461 struct Lisp_Event
439 { 462 {
440 /* header->next (aka XEVENT_NEXT ()) is used as follows: 463 /* header->next (aka XEVENT_NEXT ()) is used as follows:
441 - For dead events, this is the next dead one. 464 - For dead events, this is the next dead one.
464 487
465 DECLARE_LRECORD (event, struct Lisp_Event); 488 DECLARE_LRECORD (event, struct Lisp_Event);
466 #define XEVENT(x) XRECORD (x, event, struct Lisp_Event) 489 #define XEVENT(x) XRECORD (x, event, struct Lisp_Event)
467 #define XSETEVENT(x, p) XSETRECORD (x, p, event) 490 #define XSETEVENT(x, p) XSETRECORD (x, p, event)
468 #define EVENTP(x) RECORDP (x, event) 491 #define EVENTP(x) RECORDP (x, event)
469 #define GC_EVENTP(x) GC_RECORDP (x, event)
470 #define CHECK_EVENT(x) CHECK_RECORD (x, event) 492 #define CHECK_EVENT(x) CHECK_RECORD (x, event)
471 #define CONCHECK_EVENT(x) CONCHECK_RECORD (x, event) 493 #define CONCHECK_EVENT(x) CONCHECK_RECORD (x, event)
472 494
473 DECLARE_LRECORD (command_builder, struct command_builder); 495 DECLARE_LRECORD (command_builder, struct command_builder);
474 496