Debian Codegraph @

texmf-dist/source/support/texaccents/newline.inc

raw
1 * NEWLINE
2 * Checks OS and compiler type to set newline
3 * Part of this function uses code posted by
4 * Gregory White <[email protected]>
5 * on the Snobol list in March 2003
6 * Guido Milanese <[email protected]>
7 #################################################################
8 # MIT License - Copyright (c) 2003 Guido Milanese
9 # See file LICENSE in this package
10 #################################################################
11 define('newline()compiler_type')
12 -include "compiler.inc"
13 -include "systype.inc"
14 :(newline_end)
15 newline
16 * Compiler being used. If it is Snobol4+, that does not have
17 * the HOST() function, assumes that the newline is Dos type
18 snobol4 (compiler_type = compiler()) ? "SNOBOL4+" :f(other)
19 newline = char(13) char(10) :(return)
20 * otherwise finds through HOST the OS type and sets newline
21 * accordingly
22 other newline = systype() :(return)
23 newline_end