home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / elm / elm2.4 / nls / gencat / gencat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-23  |  3.6 KB  |  130 lines

  1.  
  2. /***********************************************************
  3. Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts.
  4.  
  5.                         All Rights Reserved
  6.  
  7. Permission to use, copy, modify, and distribute this software and its
  8. documentation for any purpose and without fee is hereby granted,
  9. provided that the above copyright notice appear in all copies and that
  10. both that copyright notice and this permission notice appear in
  11. supporting documentation, and that Alfalfa's name not be used in
  12. advertising or publicity pertaining to distribution of the software
  13. without specific, written prior permission.
  14.  
  15. ALPHALPHA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  16. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  17. ALPHALPHA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  18. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  20. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  21. SOFTWARE.
  22.  
  23. If you make any modifications, bugfixes or other changes to this software
  24. we'd appreciate it if you could send a copy to us so we can keep things
  25. up-to-date.  Many thanks.
  26.                 Kee Hinckley
  27.                 Alfalfa Software, Inc.
  28.                 267 Allston St., #3
  29.                 Cambridge, MA 02139  USA
  30.                 nazgul@alfalfa.com
  31.     
  32. ******************************************************************/
  33.  
  34. /* Edit History
  35.  
  36. 02/25/91   2 nazgul    Added MCGetByteOrder
  37. 01/18/91   2 hamilton    #if not reparsed
  38. 01/12/91   2 schulert    conditionally use prototypes
  39. 11/03/90   1 hamilton    Alphalpha->Alfalfa & OmegaMail->Poste
  40. 08/13/90   1 schulert    move from ua to omu
  41. */
  42.  
  43. #ifndef gencat_h
  44. #define gencat_h
  45.  
  46. /*
  47.  * $set n comment
  48.  *    My extension:  If the comment begins with # treat the next string
  49.  *     as a constant identifier.
  50.  * $delset n comment
  51.  *    n goes from 1 to NL_SETMAX
  52.  *    Deletes a set from the MC
  53.  * $ comment
  54.  *    My extension:  If comment begins with # treat the next string as
  55.  *     a constant identifier for the next message.
  56.  * m message-text
  57.  *    m goes from 1 to NL_MSGMAX
  58.  *    If message-text is empty, and a space or tab is present, put
  59.  *     empty string in catalog.
  60.  *    If message-text is empty, delete the message.
  61.  *    Length of text is 0 to NL_TEXTMAX
  62.  *    My extension:  If '#' is used instead of a number, the number
  63.  *     is generated automatically.  A # followed by anything is an empty message.
  64.  * $quote c
  65.  *    Optional quote character which can suround message-text to 
  66.  *     show where spaces are.
  67.  *
  68.  * Escape Characters
  69.  *    \n (newline), \t (horiz tab), \v (vert tab), \b (backspace),
  70.  *    \r (carriage return), \f (formfeed), \\ (backslash), \ddd (bitpattern
  71.  *    in octal).
  72.  *    Also, \ at end of line is a continuation.
  73.  *
  74.  */
  75.  
  76. #define    MCLangC        0
  77. #define MCLangCPlusPlus    1
  78. #define MCLangANSIC    2
  79.  
  80. #define MAXTOKEN    1024
  81.  
  82. extern void MCAddSet(
  83. #if defined(__STDC__) || defined(__cplusplus)
  84.         int setId, char *c
  85. #endif
  86.         );
  87. extern void MCDelSet(
  88. #if defined(__STDC__) || defined(__cplusplus)
  89.         int setId
  90. #endif
  91.         );
  92. extern void MCAddMsg(
  93. #if defined(__STDC__) || defined(__cplusplus)
  94.         int msgId, char *msg, char *c
  95. #endif
  96.         );
  97. extern void MCDelMsg(
  98. #if defined(__STDC__) || defined(__cplusplus)
  99.         int msgId
  100. #endif
  101.         );
  102. extern void MCParse(
  103. #if defined(__STDC__) || defined(__cplusplus)
  104.         int fd
  105. #endif
  106.         );
  107. extern void MCReadCat(
  108. #if defined(__STDC__) || defined(__cplusplus)
  109.         int fd
  110. #endif
  111.         );
  112. extern void MCWriteConst(
  113. #if defined(__STDC__) || defined(__cplusplus)
  114.         int fd, int type, int orConsts
  115. #endif
  116.         );
  117. extern void MCWriteCat(
  118. #if defined(__STDC__) || defined(__cplusplus)
  119.         int fd
  120. #endif
  121.         );
  122. extern long MCGetByteOrder();
  123.  
  124. #ifndef True
  125. # define True     ~0
  126. # define False    0
  127. #endif
  128.  
  129. #endif
  130.