summaryrefslogtreecommitdiff
path: root/gcc/ada/prj-util.adb
diff options
context:
space:
mode:
authorbosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-26 16:52:22 +0000
committerbosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-26 16:52:22 +0000
commit4c339ad00c890e098f7d11755ccd1bf80f847d40 (patch)
tree486b400798f470e6b3c93611bfcb8df14fa4fb2f /gcc/ada/prj-util.adb
parentec3898d1128f169288ab65a0d9072687288416b4 (diff)
downloadgcc-4c339ad00c890e098f7d11755ccd1bf80f847d40.tar.gz
* prj-util.adb: Minor reformatting. Fix bad header format.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46550 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/prj-util.adb')
-rw-r--r--gcc/ada/prj-util.adb7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ada/prj-util.adb b/gcc/ada/prj-util.adb
index 5a0f5a1293b..79ba520f0a9 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;