From f6d8e786a1ca3165b41cea7de05b8f2151ac31ff Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 30 May 2015 14:05:20 +0200 Subject: write: do not implicitely append LF. --- libraries/std/textio_body.vhdl | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'libraries/std') diff --git a/libraries/std/textio_body.vhdl b/libraries/std/textio_body.vhdl index e74fcc6c0..4c49670b3 100644 --- a/libraries/std/textio_body.vhdl +++ b/libraries/std/textio_body.vhdl @@ -90,7 +90,7 @@ package body textio is -- LRM93 14.3 -- If parameter L contains a null access value at the start of the call, -- the a null string is written to the file. - write (f, ""); + null; else -- LRM93 14.3 -- Procedure WRITELINE causes the current line designated by parameter L @@ -100,27 +100,25 @@ package body textio is deallocate (l); l := new string'(""); end if; + write (f, (1 => LF)); end writeline; --START-V08 procedure Tee (file f : Text; L : inout LINE) is begin + -- LRM08 16.4 Package TEXTIO + -- The procedure TEE additionally causes the current line to be written + -- to the file OUTPUT. if l = null then - -- LRM93 14.3 - -- If parameter L contains a null access value at the start of the call, - -- the a null string is written to the file. - write (f, ""); - write (Output, ""); + null; else - -- LRM93 14.3 - -- Procedure WRITELINE causes the current line designated by parameter L - -- to be written to the file and returns with the value of parameter L - -- designating a null string. write (f, l.all); write (Output, l.all); deallocate (l); l := new string'(""); end if; + write (f, (1 => LF)); + write (output, (1 => LF)); end Tee; --END-V08 -- cgit v1.2.3