r260940 - in /trunk/gcc/ada: ChangeLog libgnat/...

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Wed May 30 08:58:00 GMT 2018


Author: pmderodat
Date: Wed May 30 08:58:00 2018
New Revision: 260940

URL: https://gcc.gnu.org/viewcvs?rev=260940&root=gcc&view=rev
Log:
[Ada] Add support for Define_Switch with a callback in GNAT.Command_Line

Add support for Define_Switch with a callback in GNAT.Command_Line.

The callback is called for every instance of the switch found on the
command line. This make it possible to have full control over the
switch value and chain multiple actions if needed.

2018-05-30  Pascal Obry  <obry@adacore.com>

gcc/ada/

	* libgnat/g-comlin.ads (Value_Callback, Define_Switch): New.
	* libgnat/g-comlin.adb: Add corresponding implementation.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/libgnat/g-comlin.adb
    trunk/gcc/ada/libgnat/g-comlin.ads



More information about the Gcc-cvs mailing list