Re: config.h.mingw changes

Hrvoje Niksic <[email protected]> Wed, 29 Jun 2005 15:52:59 +0200
Newsgroups gmane.comp.web.wget.patches
Message-ID <[email protected]>
Gisle Vanem <[email protected]> writes:

> PS. I said earlier that the Win32 version works for ENABLE_IPV6.
> Not quite true w/o the attached host6.c file since Winsock doesn't
> have a inet_ntop() function. Feel free to add it to host.c.

Oops, almost missed this.  Since it's Windows-specific, it should
probably go to mswindows.c.  (On Unix you either have both IPv6 and
inet_ntop or don't have IPv6 and don't need inet_ntop.)

What I don't understand is how Windows programs are *supposed* to
print IPv6 addresses.  Does every single IPv6-enabled program have a
function like that one?

What is the copyright status of that file?


P.S.

It should be noted that this comment is not correct:

  /*
   * Note that int32_t and int16_t need only be "at least" large enough
   * to contain a value of the specified size.  On some systems, like
   * Crays, there is no such thing as an integer variable with 16 bits.
   * Keep this in mind if you think this function should have been coded
   * to use pointer overlays.  All the world's not a VAX.
   */

In standard C at least, int32_t and int16_t are exact-width integer
types and, if they are defined, must be exactly that wide.  (The
environments without integral types of those sizes are free not to
define them.)  If there are compilation environments where int32_t
exists but is not exactly 32 bits wide, they will break Wget and a lot
of other programs.