2 * Main definitions and externals
4 * Copyright 2000 Bertho A. Stultiens (BS)
11 #ifndef __WMC_WMCTYPES_H
15 #include <time.h> /* For time_t */
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)"
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
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
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.
38 #define WMC_DEFAULT_CODEPAGE 28591
41 extern int leave_case
;
46 extern int unicodeout
;
49 extern char *output_name
;
50 extern char *input_name
;
51 extern char *header_name
;
55 extern int line_number
;
56 extern int char_number
;
63 extern node_t
*nodehead
;
64 extern lan_blk_t
*lanblockhead
;
68 void set_codepage(int cp
);
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
);