Beginnings of an infrastructure to allow specifying the target CPU and
[wine/multimedia.git] / tools / wmc / wmc.h
blobf410236042407eb4fe0d0597f0f4c14d07533ed4
1 /*
2 * Main definitions and externals
4 * Copyright 2000 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 __WMC_WMC_H
22 #define __WMC_WMC_H
24 #include <time.h> /* For time_t */
26 #include "wmctypes.h"
28 #define WMC_MAJOR_VERSION 1
29 #define WMC_MINOR_VERSION 0
30 #define WMC_MICRO_VERSION 0
31 #define WMC_RELEASEDATE "(12-Jun-2000)"
33 #define WMC_STRINGIZE(a) #a
34 #define WMC_VERSIONIZE(a,b,c) WMC_STRINGIZE(a) "." WMC_STRINGIZE(b) "." WMC_STRINGIZE(c)
35 #define WMC_VERSION WMC_VERSIONIZE(WMC_MAJOR_VERSION, WMC_MINOR_VERSION, WMC_MICRO_VERSION)
36 #define WMC_FULLVERSION WMC_VERSION " " WMC_RELEASEDATE
39 * The default codepage setting is only to
40 * read and convert input which is non-message
41 * text. It doesn't really matter that much because
42 * all codepages map 0x00-0x7f to 0x0000-0x007f from
43 * char to unicode and all non-message text should
44 * be plain ASCII.
45 * However, we do implement iso-8859-1 for 1-to-1
46 * mapping for all other chars, so this is very close
47 * to what we really want.
49 #define WMC_DEFAULT_CODEPAGE 28591
51 extern int pedantic;
52 extern int leave_case;
53 extern int byteorder;
54 extern int decimal;
55 extern int custombit;
56 extern int unicodein;
57 extern int unicodeout;
58 extern int rcinline;
60 extern char *output_name;
61 extern char *input_name;
62 extern char *header_name;
63 extern char *cmdline;
64 extern time_t now;
66 extern int line_number;
67 extern int char_number;
69 int yyparse(void);
70 extern int yydebug;
71 extern int want_nl;
72 extern int want_line;
73 extern int want_file;
74 extern node_t *nodehead;
75 extern lan_blk_t *lanblockhead;
77 int yylex(void);
78 FILE *yyin;
79 void set_codepage(int cp);
81 void add_token(tok_e type, const WCHAR *name, int tok, int cp, const WCHAR *alias, int fix);
82 token_t *lookup_token(const WCHAR *s);
83 void get_tokentable(token_t **tab, int *len);
85 #endif