Commit ae3d5f11 by Pascal Obry Committed by Pierre-Marie de Rodat

[Ada] System.Os_Lib: minor reformatting

2018-05-29  Pascal Obry  <obry@adacore.com>

gcc/ada/

	* libgnat/s-os_lib.adb: Minor reformatting.

From-SVN: r260871
parent 35f5e2c1
2018-05-29 Pascal Obry <obry@adacore.com>
* libgnat/s-os_lib.adb: Minor reformatting.
2018-05-29 Doug Rupp <rupp@adacore.com>
* libgnat/a-calend.adb (Epoch_Offset): Move from body to ...
......
......@@ -2234,8 +2234,9 @@ package body System.OS_Lib is
-- the path itself, the current directory if the path is relative,
-- and additional fragments up to Max_Path in length in case
-- there are any symlinks.
Start, Finish : Positive;
Status : Integer;
Status : Integer;
-- Start of processing for Normalize_Pathname
......@@ -2263,7 +2264,6 @@ package body System.OS_Lib is
-- * Remove all double-quotes
if On_Windows then
-- Replace all '/' by '\'
for Index in 1 .. End_Path loop
......@@ -2324,7 +2324,6 @@ package body System.OS_Lib is
-- empty string.
for J in 1 .. Max_Iterations loop
Start := Last + 1;
Finish := Last;
......@@ -2378,6 +2377,7 @@ package body System.OS_Lib is
return Path_Buffer (1 .. Last - 1);
end if;
else
Path_Buffer (Last + 1 .. End_Path - 2) :=
Path_Buffer (Last + 3 .. End_Path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment