home *** CD-ROM | disk | FTP | other *** search
- { (C) Copyright 1986-1992 MetaWare Incorporated; Santa Cruz, CA 95060. }
-
- #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
-
- pragma c_include('implement.pf');
- package Lineterm;
- pragma data(common,Implement.RTE || 'ltconv');
- var LTConv_in, LTConv_out: string(2);
- pragma data;
- const LF = chr(10); CR = chr(13);
- { For UNIX: LTConv = LF }
- { For MS-DOS: LTConv = CR || LF }
- { For Daisy Logician: LTConv = CR }
- end;
-