Sync to Wine-20050628:
[reactos.git] / reactos / tools / wrc / wrc.h
1 /*
2 * Main definitions and externals
3 *
4 * Copyright 1998 Bertho A. Stultiens (BS)
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #ifndef __WRC_WRC_H
22 #define __WRC_WRC_H
23
24 #include <time.h> /* For time_t */
25
26 #include "wrctypes.h"
27
28 #define WRC_MAJOR_VERSION 1
29 #define WRC_MINOR_VERSION 1
30 #define WRC_MICRO_VERSION 9
31 #define WRC_RELEASEDATE "(31-Dec-2000)"
32
33 #define WRC_STRINGIZE(a) #a
34 #define WRC_EXP_STRINGIZE(a) WRC_STRINGIZE(a)
35 #define WRC_VERSIONIZE(a,b,c) WRC_STRINGIZE(a) "." WRC_STRINGIZE(b) "." WRC_STRINGIZE(c)
36 #define WRC_VERSION WRC_VERSIONIZE(WRC_MAJOR_VERSION, WRC_MINOR_VERSION, WRC_MICRO_VERSION)
37 #define WRC_FULLVERSION WRC_VERSION " " WRC_RELEASEDATE
38
39 /* From wrc.c */
40 extern int debuglevel;
41 #define DEBUGLEVEL_NONE 0x0000
42 #define DEBUGLEVEL_CHAT 0x0001
43 #define DEBUGLEVEL_DUMP 0x0002
44 #define DEBUGLEVEL_TRACE 0x0004
45 #define DEBUGLEVEL_PPMSG 0x0008
46 #define DEBUGLEVEL_PPLEX 0x0010
47 #define DEBUGLEVEL_PPTRACE 0x0020
48
49 extern int win32;
50 extern int create_res;
51 extern int extensions;
52 extern int create_s;
53 extern int pedantic;
54 extern int byteorder;
55 extern int preprocess_only;
56 extern int no_preprocess;
57
58 extern char *output_name;
59 extern char *input_name;
60 extern char *cmdline;
61 extern time_t now;
62
63 extern int line_number;
64 extern int char_number;
65
66 extern resource_t *resource_top;
67 extern language_t *currentlanguage;
68
69 void verify_translations(resource_t *top);
70 void write_resfile(char *outname, resource_t *top);
71
72 #endif