Fix the ofn flags setup.
[wine/dcerpc.git] / tools / wmc / wmc.h
blob19eee29278ae146c7578f069a0d77a4146d5fb9d
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 #ifndef __WMC_WMCTYPES_H
25 #include "wmctypes.h"
26 #endif
28 #include <time.h> /* For time_t */
30 #define WMC_MAJOR_VERSION 1
31 #define WMC_MINOR_VERSION 0
32 #define WMC_MICRO_VERSION 0
33 #define WMC_RELEASEDATE "(12-Jun-2000)"
35 #define WMC_STRINGIZE(a) #a
36 #define WMC_VERSIONIZE(a,b,c) WMC_STRINGIZE(a) "." WMC_STRINGIZE(b) "." WMC_STRINGIZE(c)
37 #define WMC_VERSION WMC_VERSIONIZE(WMC_MAJOR_VERSION, WMC_MINOR_VERSION, WMC_MICRO_VERSION)
38 #define WMC_FULLVERSION WMC_VERSION " " WMC_RELEASEDATE
41 * The default codepage setting is only to
42 * read and convert input which is non-message
43 * text. It doesn't really matter that much because
44 * all codepages map 0x00-0x7f to 0x0000-0x007f from
45 * char to unicode and all non-message text should
46 * be plain ASCII.
47 * However, we do implement iso-8859-1 for 1-to-1
48 * mapping for all other chars, so this is very close
49 * to what we really want.
51 #define WMC_DEFAULT_CODEPAGE 28591
53 extern int pedantic;
54 extern int leave_case;
55 extern int byteorder;
56 extern int decimal;
57 extern int custombit;
58 extern int unicodein;
59 extern int unicodeout;
60 extern int rcinline;
62 extern char *output_name;
63 extern char *input_name;
64 extern char *header_name;
65 extern char *cmdline;
66 extern time_t now;
68 extern int line_number;
69 extern int char_number;
71 int yyparse(void);
72 extern int yydebug;
73 extern int want_nl;
74 extern int want_line;
75 extern int want_file;
76 extern node_t *nodehead;
77 extern lan_blk_t *lanblockhead;
79 int yylex(void);
80 FILE *yyin;
81 void set_codepage(int cp);
83 void add_token(tok_e type, const WCHAR *name, int tok, int cp, const WCHAR *alias, int fix);
84 token_t *lookup_token(const WCHAR *s);
85 void get_tokentable(token_t **tab, int *len);
87 #endif