1 | /*
|
---|
2 | * Main definitions and externals
|
---|
3 | *
|
---|
4 | * Copyright 1998 Bertho A. Stultiens (BS)
|
---|
5 | *
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef __WRC_WRC_H
|
---|
9 | #define __WRC_WRC_H
|
---|
10 |
|
---|
11 | #ifndef __WRC_WRCTYPES_H
|
---|
12 | #include "wrctypes.h"
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | #include <time.h> /* For time_t */
|
---|
16 |
|
---|
17 | #define WRC_MAJOR_VERSION 1
|
---|
18 | #define WRC_MINOR_VERSION 1
|
---|
19 | #define WRC_MICRO_VERSION 9
|
---|
20 | #define WRC_RELEASEDATE "(31-Dec-2000)"
|
---|
21 |
|
---|
22 | #define WRC_STRINGIZE(a) #a
|
---|
23 | #define WRC_EXP_STRINGIZE(a) WRC_STRINGIZE(a)
|
---|
24 | #define WRC_VERSIONIZE(a,b,c) WRC_STRINGIZE(a) "." WRC_STRINGIZE(b) "." WRC_STRINGIZE(c)
|
---|
25 | #define WRC_VERSION WRC_VERSIONIZE(WRC_MAJOR_VERSION, WRC_MINOR_VERSION, WRC_MICRO_VERSION)
|
---|
26 | #define WRC_FULLVERSION WRC_VERSION " " WRC_RELEASEDATE
|
---|
27 |
|
---|
28 | #ifndef MAX
|
---|
29 | #define MAX(a,b) ((a) > (b) ? (a) : (b))
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | /* From wrc.c */
|
---|
33 | extern int debuglevel;
|
---|
34 | #define DEBUGLEVEL_NONE 0x0000
|
---|
35 | #define DEBUGLEVEL_CHAT 0x0001
|
---|
36 | #define DEBUGLEVEL_DUMP 0x0002
|
---|
37 | #define DEBUGLEVEL_TRACE 0x0004
|
---|
38 | #define DEBUGLEVEL_PPMSG 0x0008
|
---|
39 | #define DEBUGLEVEL_PPLEX 0x0010
|
---|
40 | #define DEBUGLEVEL_PPTRACE 0x0020
|
---|
41 |
|
---|
42 | extern int win32;
|
---|
43 | extern int constant;
|
---|
44 | extern int create_res;
|
---|
45 | extern int extensions;
|
---|
46 | extern int binary;
|
---|
47 | extern int create_header;
|
---|
48 | extern int create_dir;
|
---|
49 | extern int global;
|
---|
50 | extern int indirect;
|
---|
51 | extern int indirect_only;
|
---|
52 | extern int alignment;
|
---|
53 | extern int alignment_pwr;
|
---|
54 | extern int create_s;
|
---|
55 | extern DWORD codepage;
|
---|
56 | extern int pedantic;
|
---|
57 | extern int auto_register;
|
---|
58 | extern int leave_case;
|
---|
59 | extern int byteorder;
|
---|
60 | extern int preprocess_only;
|
---|
61 | extern int no_preprocess;
|
---|
62 | extern int remap;
|
---|
63 |
|
---|
64 | extern char *prefix;
|
---|
65 | extern char *output_name;
|
---|
66 | extern char *input_name;
|
---|
67 | extern char *header_name;
|
---|
68 | extern char *cmdline;
|
---|
69 | extern time_t now;
|
---|
70 |
|
---|
71 | extern int line_number;
|
---|
72 | extern int char_number;
|
---|
73 |
|
---|
74 | extern resource_t *resource_top;
|
---|
75 | extern language_t *currentlanguage;
|
---|
76 |
|
---|
77 | #endif
|
---|