Rev | Line | |
---|
[9] | 1 | typedef struct Codepage_l {
|
---|
| 2 | int nr;
|
---|
| 3 | unsigned char tounix[128];
|
---|
| 4 | } Codepage_t;
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | typedef 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
|
---|
| 16 | void init_codepage(void);
|
---|
| 17 | unsigned char to_dos(unsigned char c);
|
---|
| 18 | void 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 |
|
---|
| 30 | extern Codepage_t *Codepage;
|
---|
| 31 | extern char *mstoupper;
|
---|
| 32 | extern country_t countries[];
|
---|
| 33 | extern unsigned char toucase[][128];
|
---|
| 34 | extern Codepage_t codepages[];
|
---|
| 35 | extern char *country_string;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.