| [882] | 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 | 
 | 
|---|
| [5523] | 15 | #include <time.h>       /* For time_t */
 | 
|---|
| [882] | 16 | 
 | 
|---|
| [5523] | 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)"
 | 
|---|
| [882] | 21 | 
 | 
|---|
| [5523] | 22 | #define WRC_STRINGIZE(a)        #a
 | 
|---|
 | 23 | #define WRC_EXP_STRINGIZE(a)    WRC_STRINGIZE(a)
 | 
|---|
| [21589] | 24 | #define WRC_VERSIONIZE(a,b,c)   WRC_STRINGIZE(a) "." WRC_STRINGIZE(b) "." WRC_STRINGIZE(c)
 | 
|---|
| [5523] | 25 | #define WRC_VERSION             WRC_VERSIONIZE(WRC_MAJOR_VERSION, WRC_MINOR_VERSION, WRC_MICRO_VERSION)
 | 
|---|
 | 26 | #define WRC_FULLVERSION         WRC_VERSION " " WRC_RELEASEDATE
 | 
|---|
| [882] | 27 | 
 | 
|---|
| [5523] | 28 | #ifndef MAX
 | 
|---|
 | 29 | #define MAX(a,b)        ((a) > (b) ? (a) : (b))
 | 
|---|
 | 30 | #endif
 | 
|---|
 | 31 | 
 | 
|---|
| [882] | 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
 | 
|---|
| [5523] | 38 | #define DEBUGLEVEL_PPMSG        0x0008
 | 
|---|
 | 39 | #define DEBUGLEVEL_PPLEX        0x0010
 | 
|---|
 | 40 | #define DEBUGLEVEL_PPTRACE      0x0020
 | 
|---|
| [882] | 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;
 | 
|---|
| [5523] | 59 | extern int byteorder;
 | 
|---|
 | 60 | extern int preprocess_only;
 | 
|---|
 | 61 | extern int no_preprocess;
 | 
|---|
 | 62 | extern int remap;
 | 
|---|
| [21589] | 63 | extern int masm_mode;
 | 
|---|
| [882] | 64 | 
 | 
|---|
 | 65 | extern char *prefix;
 | 
|---|
 | 66 | extern char *output_name;
 | 
|---|
 | 67 | extern char *input_name;
 | 
|---|
 | 68 | extern char *header_name;
 | 
|---|
| [21589] | 69 | extern char *cmdline;
 | 
|---|
| [5523] | 70 | extern time_t now;
 | 
|---|
| [882] | 71 | 
 | 
|---|
| [5523] | 72 | extern int line_number;
 | 
|---|
 | 73 | extern int char_number;
 | 
|---|
 | 74 | 
 | 
|---|
| [882] | 75 | extern resource_t *resource_top;
 | 
|---|
 | 76 | extern language_t *currentlanguage;
 | 
|---|
 | 77 | 
 | 
|---|
 | 78 | #endif
 | 
|---|