(r8090/r2592)
#include <stdint.h>
#include "Xosdefs.h"
#include <stddef.h>
#include "Xfuncs.h"
Go to the source code of this file.
Defines |
| #define | MAXSCREENS 3 |
| #define | MAXCLIENTS 128 |
| #define | MAXFORMATS 8 |
| #define | MAXVISUALS_PER_SCREEN 50 |
| #define | NullBox ((BoxPtr)0) |
| #define | MILLI_PER_MIN (1000 * 60) |
| #define | MILLI_PER_SECOND (1000) |
| #define | USE_BACKGROUND_PIXEL 3 |
| #define | USE_BORDER_PIXEL 3 |
| #define | lswapl(x) |
| #define | lswaps(x) ((((x) & 0xff) << 8) | (((x) >> 8) & 0xff)) |
| #define | min(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | max(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | sign(x) ((x) < 0 ? -1 : ((x) > 0 ? 1 : 0)) |
| #define | modulus(a, b, d) if (((d) = (a) % (b)) < 0) (d) += (b) |
| #define | lowbit(x) ((x) & (~(x) + 1)) |
| #define | MAXSHORT 32767 |
| #define | MINSHORT -MAXSHORT |
| #define | LengthRestB(stuff) (((uint32_t)stuff->length << 2) - sizeof(*stuff)) |
| #define | LengthRestS(stuff) (((uint32_t)stuff->length << 1) - (sizeof(*stuff) >> 1)) |
| #define | LengthRestL(stuff) ((uint32_t)stuff->length - (sizeof(*stuff) >> 2)) |
| #define | SwapRestS(stuff) SwapShorts((short *)(stuff + 1), LengthRestS(stuff)) |
| #define | SwapRestL(stuff) SwapLongs((int32_t *)(stuff + 1), LengthRestL(stuff)) |
| #define | swapl(x, n) |
| #define | swaps(x, n) |
| #define | cpswapl(src, dst) |
| #define | cpswaps(src, dst) |
Typedefs |
| typedef unsigned char * | pointer |
| typedef int | Bool |
| typedef uint32_t | PIXEL |
| typedef uint32_t | ATOM |
| typedef struct _DDXPoint * | DDXPointPtr |
| typedef struct _Box * | BoxPtr |
Functions |
| void | SwapLongs () |
| void | SwapShorts () |
Variables |
| uint32_t | globalSerialNumber |
| uint32_t | serverGeneration |
Define Documentation
Value:((char *)&(dst))[0] = ((char *) &(src))[3];\
((char *)&(dst))[1] = ((char *) &(src))[2];\
((char *)&(dst))[2] = ((char *) &(src))[1];\
((char *)&(dst))[3] = ((char *) &(src))[0];
Definition at line 142 of file misc.h.
Value:((char *) &(dst))[0] = ((char *) &(src))[1];\
((char *) &(dst))[1] = ((char *) &(src))[0];
Definition at line 149 of file misc.h.
| #define LengthRestS |
( |
|
stuff | ) |
(((uint32_t)stuff->length << 1) - (sizeof(*stuff) >> 1)) |
| #define lowbit |
( |
|
x | ) |
((x) & (~(x) + 1)) |
Value:((((x) & 0xff) << 24) |\
(((x) & 0xff00) << 8) |\
(((x) & 0xff0000) >> 8) |\
(((x) >> 24) & 0xff))
Definition at line 79 of file misc.h.
| #define lswaps |
( |
|
x | ) |
((((x) & 0xff) << 8) | (((x) >> 8) & 0xff)) |
| #define max |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) > (b)) ? (a) : (b)) |
| #define min |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) < (b)) ? (a) : (b)) |
| #define modulus |
( |
|
a, |
|
|
|
b, |
|
|
|
d |
|
) |
| if (((d) = (a) % (b)) < 0) (d) += (b) |
| #define sign |
( |
|
x | ) |
((x) < 0 ? -1 : ((x) > 0 ? 1 : 0)) |
Value:n = ((char *) (x))[0];\
((char *) (x))[0] = ((char *) (x))[3];\
((char *) (x))[3] = n;\
n = ((char *) (x))[1];\
((char *) (x))[1] = ((char *) (x))[2];\
((char *) (x))[2] = n;
Definition at line 129 of file misc.h.
Value:n = ((char *) (x))[0];\
((char *) (x))[0] = ((char *) (x))[1];\
((char *) (x))[1] = n
Definition at line 137 of file misc.h.
Typedef Documentation
Function Documentation
Variable Documentation