[Ada] Improve end of command line arguments detection
authorDmitriy Anisimkov <anisimko@adacore.com>
Thu, 12 Dec 2019 10:01:41 +0000 (10:01 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 12 Dec 2019 10:01:41 +0000 (10:01 +0000)
commita1449c89b7272739d0ec32ad7ca4c53460337633
tree5defd9ca4435649cdeebdd8cfdf67bf5d1dd3dd0
parentc38d4670d72427a12035a93cc3c6174f17825443
[Ada] Improve end of command line arguments detection

2019-12-12  Dmitriy Anisimkov  <anisimko@adacore.com>

gcc/ada/

* libgnat/g-comlin.ads (Get_Argument): New routine similar to
original Get_Argument but with one more out parameter
End_Of_Arguments.
(Get_Arguments): Comment improved.
* libgnat/g-comlin.adb (Get_Argument): Implementation taken from
original Get_Argument and improved.
(Get_Argument): Calls new routine Get_Argument with additional
parameter.

From-SVN: r279277
gcc/ada/ChangeLog
gcc/ada/libgnat/g-comlin.adb
gcc/ada/libgnat/g-comlin.ads