]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Simplify uses of readdir_gnat with object overlay
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 15 Jun 2022 15:41:00 +0000 (17:41 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 13 May 2024 08:03:27 +0000 (10:03 +0200)
commita14dc3e9b0e4300b58f03d9c5ea83758f912e909
tree1e4ba9ec08c3e9412f730ec76bb0a3a45bd2eedd
parent105bba84b10625848ca39a26a42deaa1b2783d71
ada: Simplify uses of readdir_gnat with object overlay

Code cleanup; behavior is unaffected.

gcc/ada/

* libgnat/a-direct.adb (Start_Search_Internal): Combine subtype
and object declaration.
* libgnat/g-dirope.adb (Read): Replace convoluted unchecked
conversion with an overlay.
gcc/ada/libgnat/a-direct.adb
gcc/ada/libgnat/g-dirope.adb