Debian Codegraph @

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

raw
1 * SYSTYPE
2 * Sets new_line value according to OS
3 * Guido Milanese <[email protected]>
4 * March 2003
5 #################################################################
6 # MIT License - Copyright (c) 2003 Guido Milanese
7 # See file LICENSE in this package
8 #################################################################
9 DEFINE('SYSTYPE()os') :(SYSTYPE_END)
10 SYSTYPE os = replace(host(),&UCASE,&LCASE)
11 UNIX os ? ('nix' | 'nux') :f(DOS)
12 systype = char(10) :(return)
13 DOS systype = char(13) char(10) :s(return)
14 :(freturn)
15 SYSTYPE_END
16 * 'os' is the string returned by host().
17 * The function does not work under snobol4+, requires Spitbol or CSnobol4.