18 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 |
*/ |
*/ |
20 |
|
|
21 |
|
#include <stdlib.h> |
22 |
#include <stdio.h> |
#include <stdio.h> |
23 |
#include <string.h> |
#include <string.h> |
24 |
|
#include <X11/Xlib.h> |
25 |
|
|
26 |
#define VERSION "0.9.0-alpha2" |
#define VERSION "1.1.0" |
27 |
|
|
28 |
#define STATUS(args...) fprintf(stderr, args); |
#ifdef WITH_DEBUG |
29 |
#define ERROR(args...) fprintf(stderr, "ERROR: "args); |
#define DEBUG(args) printf args; |
30 |
#define WARN(args...) fprintf(stderr, "WARNING: "args); |
#else |
31 |
#define NOTIMP(args...) fprintf(stderr, "NOTIMP: "args); |
#define DEBUG(args) |
32 |
|
#endif |
33 |
|
|
34 |
#ifdef RDP_DEBUG |
#if defined(WITH_DEBUG_KBD) |
35 |
#define DEBUG(args...) fprintf(stderr, args); |
#define DEBUG_KBD(args...) fprintf(stderr, args); |
36 |
#else |
#else |
37 |
#define DEBUG(args...) |
#define DEBUG_KBD(args...) |
38 |
#endif |
#endif |
39 |
|
|
40 |
|
#define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } |
41 |
|
|
42 |
#include "constants.h" |
#include "constants.h" |
43 |
#include "types.h" |
#include "types.h" |
44 |
#include "parse.h" |
#include "parse.h" |