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> 2018-05-29 Doug Rupp <rupp@adacore.com>
* libgnat/a-calend.adb (Epoch_Offset): Move from body to ... * libgnat/a-calend.adb (Epoch_Offset): Move from body to ...
......
...@@ -2234,6 +2234,7 @@ package body System.OS_Lib is ...@@ -2234,6 +2234,7 @@ package body System.OS_Lib is
-- the path itself, the current directory if the path is relative, -- the path itself, the current directory if the path is relative,
-- and additional fragments up to Max_Path in length in case -- and additional fragments up to Max_Path in length in case
-- there are any symlinks. -- there are any symlinks.
Start, Finish : Positive; Start, Finish : Positive;
Status : Integer; Status : Integer;
...@@ -2263,7 +2264,6 @@ package body System.OS_Lib is ...@@ -2263,7 +2264,6 @@ package body System.OS_Lib is
-- * Remove all double-quotes -- * Remove all double-quotes
if On_Windows then if On_Windows then
-- Replace all '/' by '\' -- Replace all '/' by '\'
for Index in 1 .. End_Path loop for Index in 1 .. End_Path loop
...@@ -2324,7 +2324,6 @@ package body System.OS_Lib is ...@@ -2324,7 +2324,6 @@ package body System.OS_Lib is
-- empty string. -- empty string.
for J in 1 .. Max_Iterations loop for J in 1 .. Max_Iterations loop
Start := Last + 1; Start := Last + 1;
Finish := Last; Finish := Last;
...@@ -2378,6 +2377,7 @@ package body System.OS_Lib is ...@@ -2378,6 +2377,7 @@ package body System.OS_Lib is
return Path_Buffer (1 .. Last - 1); return Path_Buffer (1 .. Last - 1);
end if; end if;
else else
Path_Buffer (Last + 1 .. End_Path - 2) := Path_Buffer (Last + 1 .. End_Path - 2) :=
Path_Buffer (Last + 3 .. End_Path); 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