blob: d57c683abc62034e1c4f090d5a2faa191ff7cad9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#define done(type, value) do { if (to->addr != NULL) { if (to->size < sizeof(type)) { to->size = sizeof(type); return False; } *(type*)(to->addr) = (value); } else { static type static_val; static_val = (value); to->addr = (XtPointer)&static_val; } to->size = sizeof(type); return True; } while (0)
|