wrc.h 1.99 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4 5
/*
 * Main definitions and externals
 *
 * Copyright 1998 Bertho A. Stultiens (BS)
 *
6 7 8 9 10 11 12 13 14 15 16 17 18
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
Alexandre Julliard's avatar
Alexandre Julliard committed
19 20 21 22 23
 */

#ifndef __WRC_WRC_H
#define __WRC_WRC_H

24 25
#include <time.h>	/* For time_t */

26 27
#include "wrctypes.h"

28 29
#define WRC_MAJOR_VERSION	1
#define WRC_MINOR_VERSION	1
30 31
#define WRC_MICRO_VERSION	9
#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 37
#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
38 39 40 41 42 43 44

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

extern int win32;
extern int create_res;
extern int extensions;
extern int create_s;
extern int pedantic;
54
extern int byteorder;
55 56
extern int preprocess_only;
extern int no_preprocess;
Alexandre Julliard's avatar
Alexandre Julliard committed
57 58 59

extern char *output_name;
extern char *input_name;
60
extern char *cmdline;
61 62 63 64
extern time_t now;

extern int line_number;
extern int char_number;
Alexandre Julliard's avatar
Alexandre Julliard committed
65 66 67 68 69

extern resource_t *resource_top;
extern language_t *currentlanguage;

#endif