summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ada/g-comlin.ads29
1 files changed, 14 insertions, 15 deletions
diff --git a/gcc/ada/g-comlin.ads b/gcc/ada/g-comlin.ads
index 738afe96a69..41cdfb8e36d 100644
--- a/gcc/ada/g-comlin.ads
+++ b/gcc/ada/g-comlin.ads
@@ -530,8 +530,7 @@ package GNAT.Command_Line is
function Get_Switches
(Config : Command_Line_Configuration;
- Switch_Char : Character)
- return String;
+ Switch_Char : Character) return String;
-- Get the switches list as expected by getopt. This list is built using
-- all switches defined previously via Define_Switch above.
@@ -636,7 +635,7 @@ package GNAT.Command_Line is
-- If Remove_All is True, then all matching switches are removed, otherwise
-- 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.
--
-- If the switch belongs to a section, then this section should be
@@ -664,7 +663,7 @@ package GNAT.Command_Line is
-- string, then only a switch with no parameter will be removed.
---------------
- -- Iterating --
+ -- Iteration --
---------------
type Command_Line_Iterator is private;
@@ -807,15 +806,15 @@ private
Prefixes : GNAT.OS_Lib.Argument_List_Access;
-- The list of prefixes
- Sections : GNAT.OS_Lib.Argument_List_Access;
+ Sections : GNAT.OS_Lib.Argument_List_Access;
-- The list of sections
Aliases : 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;
- -- List of expected switches. Used when expanding switch groups.
+ Switches : GNAT.OS_Lib.Argument_List_Access;
+ -- List of expected switches (Used when expanding switch groups)
end record;
type Command_Line_Configuration is access Command_Line_Configuration_Record;
@@ -825,19 +824,19 @@ private
Params : GNAT.OS_Lib.Argument_List_Access;
-- 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
Coalesce : GNAT.OS_Lib.Argument_List_Access;
Coalesce_Params : 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
- -- command line changes. Switches are grouped as much as possible, and
- -- aliases are used to reduce the length of the command line.
- -- The parameters are not allocated, they point into Params, so must not
- -- be freed.
+ -- Cached version of the command line. This is recomputed every time
+ -- the command line changes. Switches are grouped as much as possible,
+ -- and aliases are used to reduce the length of the command line. The
+ -- parameters are not allocated, they point into Params, so they must
+ -- not be freed.
end record;
type Command_Line_Iterator is record