r138775 - in /trunk/gcc/ada: ChangeLog g-comlin...
charlet@gcc.gnu.org
charlet@gcc.gnu.org
Wed Aug 6 08:33:00 GMT 2008
Author: charlet
Date: Wed Aug 6 08:33:21 2008
New Revision: 138775
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138775
Log:
2008-08-06 Jerome Lambourg <lambourg@adacore.com>
* g-comlin.adb (Define_Switch, Get_Switches): New.
(Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
ungrouping switches.
(For_Each_Simple_Switch): Allow more control over parameters handling.
This generic method now allows ungrouping of switches with parameters
and switches with more than one letter after the prefix.
(Set_Command_Line): Take care of switches that are prefixed with a
switch handling parameters without delimiter (-gnatya and -gnaty3 for
example).
(Add_Switch, Remove_Switch): Handle parameters possibly present inside
a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
the operation.
(Start, Alias_Switches, Group_Switches): Take care of parameters
possibly present inside a group.
* g-comlin.ads (Define_Switch): New method used to define a list of
expected switches, that are necessary for correctly ungrouping switches
with more that one character after the prefix.
(Get_Switches): Method that builds a getopt string from the list of
switches as set previously by Define_Switch.
(Add_Switch, Remove_Switch): New versions of the methods, reporting the
status of the operation. Also allow the removal of switches with
parameters only.
(Command_Line_Configuration_Record): Maintain a list of expected
switches.
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/g-comlin.adb
trunk/gcc/ada/g-comlin.ads
More information about the Gcc-cvs
mailing list