home *** CD-ROM | disk | FTP | other *** search
- /*
- * lineterm.cf -- extra-ANSI
- *
- * Facilities for manipulating the line terminator definitions.
- *
- * Copyright (c) 1990, MetaWare Incorporated
- */
-
- #ifndef _LINETERM_CF
- #define _LINETERM_CF
-
- #if 0
- This defines line termination conventions on a particular system.
- Both the input line terminator and the output line terminator are
- specified. This allows one to write a program to convert text from one
- format to another by simply reading and writing lines.
- The values are exported from the assembly language init routine.
- These values can also be changed dynamically by the programmer at
- execution time.
-
- There may be at most 2 chars in the input line terminator.
- The output line terminator may be of any length.
- For systems terminating a line with a single character (e.g UNIX), merely
- set both strings to a string of length 1 containing just that character.
- MS-DOS also supports multiple input terminations. by setting the length
- to zero, the first character to cr and the second to lf, then any of the
- three combinations cr, cr lf, lf, will act as a valid line terminator.
- #endif
-
- #include <implemen.cf>
-
- #pragma data(common,_Private_prefix "LTCONV");
-
- /* Pascal strings contain two bytes of length followed by the characters. */
- static struct {short Length; char S[2];} LTConv_in, LTConv_out;
- /* For Unix: LTConv = LF; MS-DOS: LTConv = CR || LF; Daisy Logician: LTConv = CR. */
-
- #pragma data;
-
- #endif /* _LINETERM_CF */
-