Add AppDefaults app selection to control panel
[wine/gsoc-2012-control.git] / tools / wmc / wmc.h
blobcf6d430759ea8dff59b8713828f877b7232994da
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WMC_WMC_H
22 #define __WMC_WMC_H
24 #include <time.h> /* For time_t */
26 #include "wmctypes.h"
29 * The default codepage setting is only to
30 * read and convert input which is non-message
31 * text. It doesn't really matter that much because
32 * all codepages map 0x00-0x7f to 0x0000-0x007f from
33 * char to unicode and all non-message text should
34 * be plain ASCII.
35 * However, we do implement iso-8859-1 for 1-to-1
36 * mapping for all other chars, so this is very close
37 * to what we really want.
39 #define WMC_DEFAULT_CODEPAGE 28591
41 extern int pedantic;
42 extern int leave_case;
43 extern int byteorder;
44 extern int decimal;
45 extern int custombit;
46 extern int unicodein;
47 extern int unicodeout;
48 extern int rcinline;
50 extern char *output_name;
51 extern char *input_name;
52 extern char *header_name;
53 extern char *cmdline;
54 extern time_t now;
56 extern int line_number;
57 extern int char_number;
59 int mcy_parse(void);
60 extern int mcy_debug;
61 extern int want_nl;
62 extern int want_line;
63 extern int want_file;
64 extern node_t *nodehead;
65 extern lan_blk_t *lanblockhead;
67 int mcy_lex(void);
68 extern FILE *yyin;
69 void set_codepage(int cp);
71 void add_token(tok_e type, const WCHAR *name, int tok, int cp, const WCHAR *alias, int fix);
72 token_t *lookup_token(const WCHAR *s);
73 void get_tokentable(token_t **tab, int *len);
75 #endif