|
|
1.1 root 1: #include <X/Xlib.h>
2:
3: #define XREPBUFSIZE 64
4:
5: typedef struct
6: {
7: int rindex;
8: int windex;
9: int mindex;
10: XEvent xrep[XREPBUFSIZE];
11: }
12: XREPBUFFER;
13:
14: extern int x_edges_specified;
15:
16: #ifndef sigmask
17: #define sigmask(no) (1L << ((no) - 1))
18: #endif
19:
20: #ifdef SIGIO
21:
22: #define BLOCK_INPUT_DECLARE() int BLOCK_INPUT_mask;
23: #define BLOCK_INPUT() BLOCK_INPUT_mask = sigblock (sigmask (SIGIO))
24: #define UNBLOCK_INPUT() sigsetmask (BLOCK_INPUT_mask)
25: #define SIGNAL_INPUT() kill (XXpid, SIGIO)
26:
27: #define RESIGNAL_INPUT() \
28: do \
29: { \
30: if (QLength () > 0) \
31: SIGNAL_INPUT (); \
32: } while (0)
33:
34: #define SIGNAL_INPUT_WHILE(flag) \
35: do \
36: { \
37: while (flag) \
38: SIGNAL_INPUT (); \
39: } while (0)
40:
41: #define UNBLOCK_INPUT_RESIGNAL() \
42: do \
43: { \
44: UNBLOCK_INPUT (); \
45: RESIGNAL_INPUT (); \
46: } while (0)
47:
48: #else /* SIGIO undefined */
49:
50: #define BLOCK_INPUT_DECLARE()
51: #define BLOCK_INPUT()
52: #define UNBLOCK_INPUT()
53: #define SIGNAL_INPUT() /* input_available_signal (0) */
54: #define RESIGNAL_INPUT()
55: #define SIGNAL_INPUT_WHILE(bitblt) /* input_available_signal (0) */
56: #define UNBLOCK_INPUT_RESIGNAL()
57:
58: #endif /* SIGIO */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.