diff options
author | Bob Duff <duff@adacore.com> | 2009-04-20 14:29:12 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-04-20 14:29:12 +0200 |
commit | 1414183dedbfa408e8c247e77779b189c3a819bc (patch) | |
tree | 455aaf901e0849b2d28a3231c491f30d8776711f | |
parent | 8737a29a325411b422a550958bd4a01613c5a48f (diff) | |
download | gcc-1414183dedbfa408e8c247e77779b189c3a819bc.zip gcc-1414183dedbfa408e8c247e77779b189c3a819bc.tar.gz gcc-1414183dedbfa408e8c247e77779b189c3a819bc.tar.bz2 |
output.adb (Flush_Buffer): Do not indent blank lines.
2009-04-20 Bob Duff <duff@adacore.com>
* output.adb (Flush_Buffer): Do not indent blank lines.
(Ignore_Output): New procedure for output suppression.
From-SVN: r146402
-rw-r--r-- | gcc/ada/output.adb | 14 | ||||
-rw-r--r-- | gcc/ada/output.ads | 4 |
2 files changed, 17 insertions, 1 deletions
diff --git a/gcc/ada/output.adb b/gcc/ada/output.adb index 745d47f..141c12f 100644 --- a/gcc/ada/output.adb +++ b/gcc/ada/output.adb @@ -112,14 +112,17 @@ package body Output is Len : constant Natural := Next_Col - 1; + -- Start of processing for Flush_Buffer + begin if Len /= 0 then begin -- If there's no indentation, or if the line is too long with - -- indentation, just write the buffer. + -- indentation, or if it's a blank line, just write the buffer. if Cur_Indentation = 0 or else Cur_Indentation + Len > Buffer_Max + or else Buffer (1 .. Len) = (1 => ASCII.LF) then Write_Buffer (Buffer (1 .. Len)); @@ -156,6 +159,15 @@ package body Output is end if; end Flush_Buffer; + ------------------- + -- Ignore_Output -- + ------------------- + + procedure Ignore_Output (S : String) is + begin + null; + end Ignore_Output; + ------------ -- Indent -- ------------ diff --git a/gcc/ada/output.ads b/gcc/ada/output.ads index 8e8eb6b..6e9176e 100644 --- a/gcc/ada/output.ads +++ b/gcc/ada/output.ads @@ -66,6 +66,10 @@ package Output is -- It is never an error to call Cancel_Special_Output. It has the same -- effect as calling Set_Special_Output (null). + procedure Ignore_Output (S : String); + -- Does nothing. To disable output, pass Ignore_Output'Access to + -- Set_Special_Output. + procedure Set_Standard_Error; -- Sets subsequent output to appear on the standard error file (whatever -- that might mean for the host operating system, if anything) when |