diff options
author | Robert Dewar <dewar@gnat.com> | 2001-10-26 16:52:22 +0000 |
---|---|---|
committer | Geert Bosch <bosch@gcc.gnu.org> | 2001-10-26 18:52:22 +0200 |
commit | 4d553668837adcd14170e32fddf1d19fd5b7b0a7 (patch) | |
tree | 486b400798f470e6b3c93611bfcb8df14fa4fb2f /gcc | |
parent | 3e542a58b2d9545c4edc0bbd18bb7c907219baa4 (diff) | |
download | gcc-4d553668837adcd14170e32fddf1d19fd5b7b0a7.zip gcc-4d553668837adcd14170e32fddf1d19fd5b7b0a7.tar.gz gcc-4d553668837adcd14170e32fddf1d19fd5b7b0a7.tar.bz2 |
* prj-util.adb: Minor reformatting. Fix bad header format.
From-SVN: r46550
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ada/prj-util.adb | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 2dc1a14..1a37c60 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,5 +1,9 @@ 2001-10-26 Robert Dewar <dewar@gnat.com> + * prj-util.adb: Minor reformatting. Fix bad header format. + +2001-10-26 Robert Dewar <dewar@gnat.com> + * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup. * sinfo.ads: Clarify use of Associated_Node (documentation only). diff --git a/gcc/ada/prj-util.adb b/gcc/ada/prj-util.adb index 5a0f5a1..79ba520 100644 --- a/gcc/ada/prj-util.adb +++ b/gcc/ada/prj-util.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- $Revision$ -- +-- $Revision$ -- -- -- Copyright (C) 2001 Free Software Foundation, Inc. -- -- -- @@ -388,6 +388,7 @@ package body Prj.Util is -- Nothing to do for empty strings if S'Length > 0 then + -- Start on a new line if current line is already longer than -- Max_Length. @@ -399,6 +400,7 @@ package body Prj.Util is -- cut the remainder in several lines. while Positive (Column) + S'Last - First > Max_Length loop + -- Try the maximum length possible Last := First + Max_Length - Positive (Column); @@ -411,6 +413,7 @@ package body Prj.Util is -- If we do not find a separator, we output the maximum length -- possible. + if Last < First then Last := First + Max_Length - Positive (Column); end if; @@ -420,13 +423,11 @@ package body Prj.Util is -- Set the beginning of the new remainder First := Last + 1; - end loop; -- What is left goes to the buffer, without EOL Write_Str (S (First .. S'Last)); - end if; end Write_Str; |