Commit b59283f2 by Robert Dewar Committed by Arnaud Charlet

g-comlin.adb: Minor reformatting

2008-08-04  Robert Dewar  <dewar@adacore.com>

	* g-comlin.adb: Minor reformatting

From-SVN: r138604
parent 05a76b51
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
with Ada.Unchecked_Deallocation; with Ada.Unchecked_Deallocation;
with Ada.Strings.Unbounded; with Ada.Strings.Unbounded;
with GNAT.OS_Lib; use GNAT.OS_Lib; with GNAT.OS_Lib; use GNAT.OS_Lib;
package body GNAT.Command_Line is package body GNAT.Command_Line is
...@@ -1468,10 +1469,12 @@ package body GNAT.Command_Line is ...@@ -1468,10 +1469,12 @@ package body GNAT.Command_Line is
and then Looking_At and then Looking_At
(Result (C).all, Result (C)'First, Cmd.Config.Prefixes (P).all) (Result (C).all, Result (C)'First, Cmd.Config.Prefixes (P).all)
then then
Group := Group & Group :=
Result (C) Group &
(Result (C)'First + Cmd.Config.Prefixes (P)'Length .. Result (C)
(Result (C)'First + Cmd.Config.Prefixes (P)'Length ..
Result (C)'Last); Result (C)'Last);
if First = 0 then if First = 0 then
First := C; First := C;
end if; end if;
...@@ -1481,9 +1484,10 @@ package body GNAT.Command_Line is ...@@ -1481,9 +1484,10 @@ package body GNAT.Command_Line is
end loop; end loop;
if First > 0 then if First > 0 then
Result (First) := new String' Result (First) :=
(Cmd.Config.Prefixes (P).all & new String'
Ada.Strings.Unbounded.To_String (Group)); (Cmd.Config.Prefixes (P).all &
Ada.Strings.Unbounded.To_String (Group));
end if; end if;
end loop; end loop;
end Group_Switches; end Group_Switches;
......
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