source: trunk/minix/commands/i386/mtools-3.9.7/codepage.h@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 746 bytes
Line 
1typedef struct Codepage_l {
2 int nr;
3 unsigned char tounix[128];
4} Codepage_t;
5
6
7typedef struct country_l {
8 int country;
9 int codepage;
10 int default_codepage;
11 int to_upper;
12} country_t;
13
14
15#ifndef NO_CONFIG
16void init_codepage(void);
17unsigned char to_dos(unsigned char c);
18void to_unix(char *a, int n);
19#define mstoupper(c) mstoupper[(c) & 0x7F]
20
21#else /* NO_CONFIG */
22
23/* Imagine a codepage with 128 uppercase letters for the top 128 characters. */
24#define mstoupper(c) (c)
25#define to_dos(c) (c)
26#define to_unix(a, n) ((void) 0)
27#define mstoupper(c) (c)
28#endif
29
30extern Codepage_t *Codepage;
31extern char *mstoupper;
32extern country_t countries[];
33extern unsigned char toucase[][128];
34extern Codepage_t codepages[];
35extern char *country_string;
Note: See TracBrowser for help on using the repository browser.