home *** CD-ROM | disk | FTP | other *** search
- /*
- * lineterm.cf -- non-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 an assembly language routine so that
- they can easily be changed without recompiling any Pascal source.
- Re-linking with the modified assembly version means that a new Pascal
- compiler can be produced with a different line termination convention.
- 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.
- #endif
-
- #include <implemen.cf>
-
- #pragma data(common,_Private_prefix "LTCONV");
-
- /* Pascal strings contain two bytes of length followed by the characters. */
- 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 */
-