home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 5.ddi / MWHC.005 / 81 < prev    next >
Encoding:
Text File  |  1992-01-07  |  1.4 KB  |  42 lines

  1. /*
  2.  *   lineterm.cf -- non-ANSI 
  3.  *
  4.  *   Facilities for manipulating the line terminator definitions.
  5.  *
  6.  *           Copyright (c) 1990, MetaWare Incorporated
  7.  */
  8.  
  9. #ifndef _LINETERM_CF
  10. #define _LINETERM_CF
  11.  
  12. #if 0
  13. This defines line termination conventions on a particular system.
  14. Both the input line terminator and the output line terminator are
  15. specified.  This allows one to write a program to convert text from one
  16. format to another by simply reading and writing lines.
  17. The values are exported from an assembly language routine so that
  18. they can easily be changed without recompiling any Pascal source.
  19. Re-linking with the modified assembly version means that a new Pascal
  20. compiler can be produced with a different line termination convention.
  21. These values can also be changed dynamically by the programmer at
  22. execution time.
  23.  
  24. There may be at most 2 chars in the input line terminator.
  25. The output line terminator may be of any length.
  26. For systems terminating a line with a single character (e.g UNIX), merely
  27. set both strings to a string of length 1 containing just that character.
  28. #endif
  29.  
  30. #include <implemen.cf>
  31.  
  32. #pragma data(common,_Private_prefix "LTCONV");
  33.  
  34. /* Pascal strings contain two bytes of length followed by the characters. */
  35. struct {short Length; char S[2];} LTConv_in, LTConv_out;
  36. /* For Unix: LTConv = LF; MS-DOS: LTConv = CR || LF; Daisy Logician: LTConv = CR. */
  37.  
  38. #pragma data;
  39.  
  40.  
  41. #endif /* _LINETERM_CF */
  42.