g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the returned type on Windows.
authorPascal Obry <obry@adacore.com>
Thu, 7 Jul 2005 09:41:29 +0000 (11:41 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 7 Jul 2005 09:41:29 +0000 (11:41 +0200)
commit2366e7c600b5d2306acfd13b4324d77cea66859d
tree42d3d9e228b315764a37741113a5eb88a8f05e7b
parent41f12ed0a94c98482e4f7fe97d2be03db8faaa77
g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the returned type on Windows.

2005-07-07  Pascal Obry  <obry@adacore.com>

* g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
returned type on Windows.

* g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
routine.

* g-socket.adb (Inet_Addr): Check for empty Image and raises an
exception in this case.
Simplify the code as "Image (Image'Range)" = "Image".

From-SVN: r101691
gcc/ada/g-socket.adb
gcc/ada/g-socthi-mingw.adb
gcc/ada/g-socthi-mingw.ads