Fixed potential crash in fd_dump function.
[wine/multimedia.git] / tools / wrc / wrc.h
blob075177c6d12251a4a0dc5c1e1cee0e6e9b24b30b
1 /*
2 * Main definitions and externals
4 * Copyright 1998 Bertho A. Stultiens (BS)
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.
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.
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
21 #ifndef __WRC_WRC_H
22 #define __WRC_WRC_H
24 #include <time.h> /* For time_t */
26 #include "wrctypes.h"
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)"
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
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
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;
58 extern char *output_name;
59 extern char *input_name;
60 extern char *cmdline;
61 extern time_t now;
63 extern int line_number;
64 extern int char_number;
66 extern resource_t *resource_top;
67 extern language_t *currentlanguage;
69 #endif