Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/packages/pascal/Dumpreal @ 2855:e126b9acab32 lwtools-port
rules.mak: Do not hardcode path for "echo"
It is basically the only tool with full path here and I don't see any
reason for it. We don't use special echo options that would fail
on the shell built-in echo.
Also don't hardcode path for losetup. sudo should make sure you
have the relevant location in your path, and that the path is sanitized,
otherwise your sudo setup is broken.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sat, 13 Jul 2013 11:30:31 +0200 |
parents | 3008afb231a2 |
children |
line wrap: on
line source
$TITLE DumpReal $SUBTITLE Global Definitions PROGRAM dumpreal; VAR badvar: ^anotherbadvar; i : integer; hexc : ARRAY[0..15] OF char; trix : RECORD CASE boolean OF true :(r: real); false:(c: ARRAY[1..5] OF char) END; $subtitle Procedure PROCWITHERRORS PROCEDURE procwitherrors; BEGIN this demonstrates what error messages look like; END; $Subtitle Procedure HEXVAL PROCEDURE hexval(ch: char); BEGIN write(hexc[ord(ch) div 16], hexc[ord(ch) mod 16]) END; $SUBtitle M A I N L I N E BEGIN hexc:='0123456789ABCDEF'; WHILE true DO BEGIN write('Enter real number: '); prompt; readln(trix.r); FOR i:=1 to 5 DO BEGIN hexval(trix.c[i]); write(' '); END; writeln; END END.