+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.
-- --
-- B o d y --
-- --
--- $Revision$ --
+-- $Revision$
-- --
-- Copyright (C) 2001 Free Software Foundation, Inc. --
-- --
-- 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.
-- 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);
-- 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;
-- 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;