Commit 8529dde5 by Robert Dewar Committed by Arnaud Charlet

g-comlin.ads: Minor reformatting

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

	* g-comlin.ads: Minor reformatting

From-SVN: r138867
parent 1bae4562
...@@ -530,8 +530,7 @@ package GNAT.Command_Line is ...@@ -530,8 +530,7 @@ package GNAT.Command_Line is
function Get_Switches function Get_Switches
(Config : Command_Line_Configuration; (Config : Command_Line_Configuration;
Switch_Char : Character) Switch_Char : Character) return String;
return String;
-- Get the switches list as expected by getopt. This list is built using -- Get the switches list as expected by getopt. This list is built using
-- all switches defined previously via Define_Switch above. -- all switches defined previously via Define_Switch above.
...@@ -636,7 +635,7 @@ package GNAT.Command_Line is ...@@ -636,7 +635,7 @@ package GNAT.Command_Line is
-- If Remove_All is True, then all matching switches are removed, otherwise -- If Remove_All is True, then all matching switches are removed, otherwise
-- only the first matching one is removed. -- only the first matching one is removed.
-- --
-- if Has_Parameter is set to True, then only switches having a parameter -- If Has_Parameter is set to True, then only switches having a parameter
-- are removed. -- are removed.
-- --
-- If the switch belongs to a section, then this section should be -- If the switch belongs to a section, then this section should be
...@@ -664,7 +663,7 @@ package GNAT.Command_Line is ...@@ -664,7 +663,7 @@ package GNAT.Command_Line is
-- string, then only a switch with no parameter will be removed. -- string, then only a switch with no parameter will be removed.
--------------- ---------------
-- Iterating -- -- Iteration --
--------------- ---------------
type Command_Line_Iterator is private; type Command_Line_Iterator is private;
...@@ -807,15 +806,15 @@ private ...@@ -807,15 +806,15 @@ private
Prefixes : GNAT.OS_Lib.Argument_List_Access; Prefixes : GNAT.OS_Lib.Argument_List_Access;
-- The list of prefixes -- The list of prefixes
Sections : GNAT.OS_Lib.Argument_List_Access; Sections : GNAT.OS_Lib.Argument_List_Access;
-- The list of sections -- The list of sections
Aliases : GNAT.OS_Lib.Argument_List_Access; Aliases : GNAT.OS_Lib.Argument_List_Access;
Expansions : GNAT.OS_Lib.Argument_List_Access; Expansions : GNAT.OS_Lib.Argument_List_Access;
-- The aliases. Both arrays have the same indices -- The aliases (Both arrays have the same bounds)
Switches : GNAT.OS_Lib.Argument_List_Access; Switches : GNAT.OS_Lib.Argument_List_Access;
-- List of expected switches. Used when expanding switch groups. -- List of expected switches (Used when expanding switch groups)
end record; end record;
type Command_Line_Configuration is access Command_Line_Configuration_Record; type Command_Line_Configuration is access Command_Line_Configuration_Record;
...@@ -825,19 +824,19 @@ private ...@@ -825,19 +824,19 @@ private
Params : GNAT.OS_Lib.Argument_List_Access; Params : GNAT.OS_Lib.Argument_List_Access;
-- Parameter for the corresponding switch in Expanded. The first -- Parameter for the corresponding switch in Expanded. The first
-- character is the separator (or ASCII.NUL if there is no separator) -- character is the separator (or ASCII.NUL if there is no separator).
Sections : GNAT.OS_Lib.Argument_List_Access; Sections : GNAT.OS_Lib.Argument_List_Access;
-- The list of sections -- The list of sections
Coalesce : GNAT.OS_Lib.Argument_List_Access; Coalesce : GNAT.OS_Lib.Argument_List_Access;
Coalesce_Params : GNAT.OS_Lib.Argument_List_Access; Coalesce_Params : GNAT.OS_Lib.Argument_List_Access;
Coalesce_Sections : GNAT.OS_Lib.Argument_List_Access; Coalesce_Sections : GNAT.OS_Lib.Argument_List_Access;
-- Cached version of the command line. This is recomputed every time the -- Cached version of the command line. This is recomputed every time
-- command line changes. Switches are grouped as much as possible, and -- the command line changes. Switches are grouped as much as possible,
-- aliases are used to reduce the length of the command line. -- and aliases are used to reduce the length of the command line. The
-- The parameters are not allocated, they point into Params, so must not -- parameters are not allocated, they point into Params, so they must
-- be freed. -- not be freed.
end record; end record;
type Command_Line_Iterator is record type Command_Line_Iterator is record
......
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