[Ada] Simplify Big_Integer and Big_Real interface
authorArnaud Charlet <charlet@adacore.com>
Wed, 18 Dec 2019 07:15:52 +0000 (07:15 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 18 Dec 2019 07:15:52 +0000 (07:15 +0000)
commit5815f92a08bb7e03c83e3592e93ea2470067148c
treee0df265c18ffaa31a721399940736639bb73b11a
parent16b54914309fa2d94159d71b2e4a75fd497e1e75
[Ada] Simplify Big_Integer and Big_Real interface

2019-12-18  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* libgnat/a-nbnbin.ads, libgnat/a-nbnbin.adb,
libgnat/a-nbnbre.ads, libgnat/a-nbnbre.adb: Replace
Optional_Big_* types by a simple check and exception raise in
Get_Bignum.
(Set_Bignum): Arg should be 'out' and not 'in out'.
(Invalid_Big_Integer, No_Big_Real): Removed.
(Is_Valid): Now convention Intrinsic.

From-SVN: r279515
gcc/ada/ChangeLog
gcc/ada/libgnat/a-nbnbin.adb
gcc/ada/libgnat/a-nbnbin.ads
gcc/ada/libgnat/a-nbnbre.adb
gcc/ada/libgnat/a-nbnbre.ads