1 /* ----------------------------------------------------------------------
2      MIME Mangler - single pass reduction of MIME to plain text
3 
4      Laurence Lundblade <lgl@qualcomm.com>
5 
6      Copyright 1997, QUALCOMM Inc.
7 
8      File: lineend.h - deal with varying end of line conventions
9      Version: 0.2.3, Dec 1997
10      Last Edited: Nov 10 22:35
11 
12   ---- */
13 
14 #ifndef _LINEENDINCLUDED
15 #define _LINEENDINCLUDED
16 #include "config.h"
17 extern const char *lineEnd;
18 
19 /*#undef UNIX */
20 /*#undef PILOT */
21 /* #define NETWORK */
22 
23 #if defined(UNIX) || defined(PILOT)
24 
25 #define EOLCHECK(string) (*(string) == '\n')
26 #define ENDLINE(string)  (*(string)++ = '\n')
27 #define EOLLEN           (1)
28 #define EOLSTRING        ("\n")
29 #define EOLCHAR          '\n'
30 
31 #elif defined(NETWORK) || defined(PC)
32 
33 #define EOLCHECK(string) (*string == '\r')
34 #define ENDLINE(string) (*(string)++ = '\r', *(string)++ = '\n' )
35 #define EOLLEN           (2)
36 #define EOLSTRING        ("\r\n")
37 
38 #elif defined(MACINTOSH)
39 
40 #define EOLCHECK(string) (*string == '\r')
41 #define ENDLINE(string) (*(string)++ = '\r')
42 #define EOLLEN           (1)
43 #define EOLSTRING        ("\r")
44 #define EOLCHAR          '\r'
45 
46 #endif
47 
48 #endif /* _LINEENDINCLUDED */
49