home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / h / charset.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-18  |  1.3 KB  |  70 lines

  1. /* charset.h */
  2.  
  3. /*
  4.  * @(#) $Header: /xtel/pp/pp-beta/h/RCS/charset.h,v 6.0 1991/12/18 20:42:44 jpo Rel $
  5.  *
  6.  * $Log: charset.h,v $
  7.  * Revision 6.0  1991/12/18  20:42:44  jpo
  8.  * Release 6.0
  9.  *
  10.  *
  11.  */
  12.  
  13.  
  14. #ifndef _H_CHARSET
  15. #define _H_CHARSET
  16.  
  17.  
  18. /* -***-
  19. The character set conversion filter is written by Keld Simonsen (keld@dkuug.dk).
  20. Please refer to the PP documentation Volume 1 on more information 
  21. about its modification.
  22. -***- */
  23.  
  24.  
  25.  
  26. /* --- the following 3 parameters may need modifying --- */
  27. typedef unsigned char    CHAR8U;    /* must be able to hold values 0-255 */
  28. typedef short int    INT16S;    /* Must be able to hold 16 bits signed int */
  29. #define DEFAULT_ESCAPE    29    /* ASCII GS */
  30.  
  31.  
  32. #define LOW_LINE    64    /* LOW LINE  '_' */ 
  33.                 /* if menmonics are required */
  34. #define QUESTION_MARK    32    /* QUESTION MARK '?' */
  35.                 /* if X.408 conv is required */
  36.  
  37. #ifndef TRUE
  38. #define TRUE        1
  39. #endif
  40.  
  41. #ifndef FLASE
  42. #define FALSE        0
  43. #endif
  44.  
  45.  
  46. #define IN_CH        INT16S
  47. #define OUT_CH        CHAR8U
  48.  
  49.  
  50. typedef struct charset    CHARSET;
  51. #define C256L        256L
  52. #define C256        256    /* max val of any char encoded as one byte */
  53. #define LSIZE        256    /* max byte chars on a line, in a file name */
  54.  
  55.  
  56. struct charset
  57. {
  58.     CHARSET        *next;
  59.     INT16S        ecma;
  60.     char        *name;
  61.     IN_CH        *in;
  62.     OUT_CH        *out;
  63.     INT16S        esc;
  64. };
  65.  
  66.  
  67. extern    CHARSET        *getchset();
  68.  
  69. #endif
  70.