Added mappings for a few messages.
[wine] / tools / wmc / wmc.h
1 /*
2  * Main definitions and externals
3  *
4  * Copyright 2000 Bertho A. Stultiens (BS)
5  *
6  */
7
8 #ifndef __WMC_WMC_H
9 #define __WMC_WMC_H
10
11 #ifndef __WMC_WMCTYPES_H
12 #include "wmctypes.h"
13 #endif
14
15 #include <time.h>       /* For time_t */
16
17 #define WMC_MAJOR_VERSION       1
18 #define WMC_MINOR_VERSION       0
19 #define WMC_MICRO_VERSION       0
20 #define WMC_RELEASEDATE         "(12-Jun-2000)"
21
22 #define WMC_STRINGIZE(a)        #a
23 #define WMC_VERSIONIZE(a,b,c)   WMC_STRINGIZE(a) "." WMC_STRINGIZE(b) "." WMC_STRINGIZE(c)  
24 #define WMC_VERSION             WMC_VERSIONIZE(WMC_MAJOR_VERSION, WMC_MINOR_VERSION, WMC_MICRO_VERSION)
25 #define WMC_FULLVERSION         WMC_VERSION " " WMC_RELEASEDATE
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 byteorder;
43 extern int decimal;
44 extern int custombit;
45 extern int unicodein;
46 extern int unicodeout;
47 extern int rcinline;
48
49 extern char *output_name;
50 extern char *input_name;
51 extern char *header_name;
52 extern char *cmdline;                   
53 extern time_t now;
54
55 extern int line_number;
56 extern int char_number;
57
58 int yyparse(void);
59 extern int yydebug;
60 extern int want_nl;
61 extern int want_line;
62 extern int want_file;
63 extern node_t *nodehead;
64 extern lan_blk_t *lanblockhead;
65
66 int yylex(void);
67 FILE *yyin;
68 void set_codepage(int cp);
69
70 void add_token(tok_e type, const WCHAR *name, int tok, int cp, const WCHAR *alias, int fix);
71 token_t *lookup_token(const WCHAR *s);
72 void get_tokentable(token_t **tab, int *len);
73
74 #endif