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 |
|
|
25 |
#define VERSION "1.0.0" |
#define VERSION "1.1.0" |
26 |
|
|
27 |
#define STATUS(args...) fprintf(stderr, args); |
#ifdef WITH_DEBUG |
28 |
#define ERROR(args...) fprintf(stderr, "ERROR: "args); |
#define DEBUG(args) printf args; |
|
#define WARN(args...) fprintf(stderr, "WARNING: "args); |
|
|
#define NOTIMP(args...) fprintf(stderr, "NOTIMP: "args); |
|
|
|
|
|
#ifdef RDP_DEBUG |
|
|
#define DEBUG(args...) fprintf(stderr, args); |
|
29 |
#else |
#else |
30 |
#define DEBUG(args...) |
#define DEBUG(args) |
31 |
#endif |
#endif |
32 |
|
|
33 |
|
#define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } |
34 |
|
|
35 |
#include "constants.h" |
#include "constants.h" |
36 |
#include "types.h" |
#include "types.h" |
37 |
#include "parse.h" |
#include "parse.h" |