~ubuntu-branches/ubuntu/warty/lynx/warty-security

« back to all changes in this revision

Viewing changes to src/chrtrans/UCkd.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-16 12:14:10 UTC
  • Revision ID: james.westby@ubuntu.com-20040916121410-cz1gu92c4nqfeyrg
Tags: upstream-2.8.5
ImportĀ upstreamĀ versionĀ 2.8.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _UC_KD_H
 
2
#define _UC_KD_H
 
3
 
 
4
/*
 
5
 *  NOTE: THE FOLLOWING #define MAY NEED ADJUSTMENT.
 
6
 *  u16 should be an unsigned type of 16 bit length (two octets).
 
7
 *  u8  should be an unsigned type of 8  bit length (one octet).
 
8
 */
 
9
#ifndef u16
 
10
#define u16 unsigned short
 
11
#endif /* u16 */
 
12
 
 
13
 
 
14
#ifndef u8
 
15
#define u8 unsigned char
 
16
#endif /* u8 */
 
17
 
 
18
#ifdef NOTDEFINED
 
19
struct consolefontdesc {
 
20
        u_short charcount;      /* characters in font (256 or 512) */
 
21
        u_short charheight;     /* scan lines per character (1-32) */
 
22
        char *chardata;         /* font data in expanded form */
 
23
};
 
24
#endif /* NOTDEFINED */
 
25
typedef char scrnmap_t;
 
26
#define         E_TABSZ         256
 
27
 
 
28
struct unipair {
 
29
        u16 unicode;
 
30
        u16 fontpos;
 
31
};
 
32
struct unipair_str {
 
33
        u16 unicode;
 
34
        CONST char * replace_str;
 
35
};
 
36
struct unimapdesc {
 
37
        u16 entry_ct;
 
38
        struct unipair *entries;
 
39
};
 
40
struct unimapdesc_str {
 
41
        u16 entry_ct;
 
42
        struct unipair_str *entries;
 
43
        int isdefault;
 
44
        int trydefault;
 
45
};
 
46
 
 
47
 
 
48
#define UNI_DIRECT_BASE 0xF000  /* start of Direct Font Region */
 
49
#define UNI_DIRECT_MASK 0x01FF  /* Direct Font Region bitmask */
 
50
 
 
51
#define UC_MAXLEN_ID_APPEND 20
 
52
#define UC_MAXLEN_MIMECSNAME 40
 
53
#define UC_MAXLEN_LYNXCSNAME 40
 
54
#define UC_LEN_LYNXCSNAME 20
 
55
 
 
56
#undef  EX_OK                   /* may be defined in system headers */
 
57
#define EX_OK           0       /* successful termination */
 
58
#define EX_USAGE        64      /* command line usage error */
 
59
#define EX_DATAERR      65      /* data format error */
 
60
#define EX_NOINPUT      66      /* cannot open input */
 
61
 
 
62
#endif /* _UC_KD_H */