home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lynx2.8.1dev.10.tar.gz / lynx2.8.1dev.10.tar / lynx2-8 / src / chrtrans / UCkd.h < prev    next >
C/C++ Source or Header  |  1998-02-27  |  2KB  |  66 lines

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