wrc.h 1.7 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/*
 * Main definitions and externals
 *
 * Copyright 1998 Bertho A. Stultiens (BS)
 *
 */

#ifndef __WRC_WRC_H
#define __WRC_WRC_H

#ifndef __WRC_WRCTYPES_H
#include "wrctypes.h"
#endif

15 16 17 18
#include <time.h>	/* For time_t */

#define WRC_MAJOR_VERSION	1
#define WRC_MINOR_VERSION	1
19 20
#define WRC_MICRO_VERSION	8
#define WRC_RELEASEDATE		"(24-Aug-2000)"
21 22

#define WRC_STRINGIZE(a)	#a
23
#define WRC_EXP_STRINGIZE(a)	WRC_STRINGIZE(a)
24 25 26
#define WRC_VERSIONIZE(a,b,c)	WRC_STRINGIZE(a) "." WRC_STRINGIZE(b) "." WRC_STRINGIZE(c)  
#define WRC_VERSION		WRC_VERSIONIZE(WRC_MAJOR_VERSION, WRC_MINOR_VERSION, WRC_MICRO_VERSION)
#define WRC_FULLVERSION 	WRC_VERSION " " WRC_RELEASEDATE
Alexandre Julliard's avatar
Alexandre Julliard committed
27

28 29 30
#ifndef MAX
#define MAX(a,b)	((a) > (b) ? (a) : (b))
#endif
Alexandre Julliard's avatar
Alexandre Julliard committed
31 32 33 34 35 36 37

/* From wrc.c */
extern int debuglevel;
#define DEBUGLEVEL_NONE		0x0000
#define DEBUGLEVEL_CHAT		0x0001
#define DEBUGLEVEL_DUMP		0x0002
#define DEBUGLEVEL_TRACE	0x0004
38 39 40
#define DEBUGLEVEL_PPMSG	0x0008
#define DEBUGLEVEL_PPLEX	0x0010
#define DEBUGLEVEL_PPTRACE	0x0020
Alexandre Julliard's avatar
Alexandre Julliard committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

extern int win32;
extern int constant;
extern int create_res;
extern int extensions;
extern int binary;
extern int create_header;
extern int create_dir;
extern int global;
extern int indirect;
extern int indirect_only;
extern int alignment;
extern int alignment_pwr;
extern int create_s;
extern DWORD codepage;
extern int pedantic;
Alexandre Julliard's avatar
Alexandre Julliard committed
57
extern int auto_register;
Alexandre Julliard's avatar
Alexandre Julliard committed
58
extern int leave_case;
59
extern int byteorder;
60 61
extern int preprocess_only;
extern int no_preprocess;
62
extern int remap;
Alexandre Julliard's avatar
Alexandre Julliard committed
63 64 65 66 67 68

extern char *prefix;
extern char *output_name;
extern char *input_name;
extern char *header_name;
extern char *cmdline;			
69 70 71 72
extern time_t now;

extern int line_number;
extern int char_number;
Alexandre Julliard's avatar
Alexandre Julliard committed
73 74 75 76 77

extern resource_t *resource_top;
extern language_t *currentlanguage;

#endif