Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/tools/wmc/wmc.h
4389 views
1
/*
2
* Main definitions and externals
3
*
4
* Copyright 2000 Bertho A. Stultiens (BS)
5
*
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.
10
*
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.
15
*
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
19
*/
20
21
#ifndef __WMC_WMC_H
22
#define __WMC_WMC_H
23
24
#include "../tools.h"
25
#include "wmctypes.h"
26
27
/*
28
* The default codepage setting is only to
29
* read and convert input which is non-message
30
* text. It doesn't really matter that much because
31
* all codepages map 0x00-0x7f to 0x0000-0x007f from
32
* char to unicode and all non-message text should
33
* be plain ASCII.
34
* However, we do implement iso-8859-1 for 1-to-1
35
* mapping for all other chars, so this is very close
36
* to what we really want.
37
*/
38
#define WMC_DEFAULT_CODEPAGE 28591
39
40
extern int pedantic;
41
extern int leave_case;
42
extern int decimal;
43
extern int custombit;
44
extern int unicodein;
45
extern int rcinline;
46
47
extern char *output_name;
48
extern const char *input_name;
49
extern char *header_name;
50
extern char *cmdline;
51
52
extern const char *nlsdirs[];
53
54
extern int line_number;
55
extern int char_number;
56
57
int mcy_parse(void);
58
extern int mcy_debug;
59
extern int want_nl;
60
extern int want_line;
61
extern int want_file;
62
extern struct node *nodehead;
63
extern struct lan_blk *lanblockhead;
64
65
int mcy_lex(void);
66
extern FILE *yyin;
67
void set_codepage(int cp);
68
69
void add_token(enum tok_enum type, const WCHAR *name, int tok, int cp, const WCHAR *alias, int fix);
70
struct token *lookup_token(const WCHAR *s);
71
void get_tokentable(struct token **tab, int *len);
72
73
#endif
74
75