mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Change u_int32_t to uint32_t.
This commit is contained in:
parent
ac091896b6
commit
c81651f4c1
@ -1,3 +1,9 @@
|
|||||||
|
2003-10-26 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* configure.in: Switch from u_int32_t to uint32_t. Check for
|
||||||
|
inttypes.h so it's used to get the definition of uint32_t where
|
||||||
|
available.
|
||||||
|
|
||||||
2003-10-26 Hrvoje Niksic <hniksic@xemacs.org>
|
2003-10-26 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* windows/Makefile.src.watcom (OBJS): Use convert.c.
|
* windows/Makefile.src.watcom (OBJS): Use convert.c.
|
||||||
|
@ -164,7 +164,8 @@ AC_CHECK_SIZEOF(short)
|
|||||||
AC_CHECK_SIZEOF(int)
|
AC_CHECK_SIZEOF(int)
|
||||||
AC_CHECK_SIZEOF(long)
|
AC_CHECK_SIZEOF(long)
|
||||||
AC_CHECK_SIZEOF(long long)
|
AC_CHECK_SIZEOF(long long)
|
||||||
AC_CHECK_TYPES(u_int32_t)
|
AC_CHECK_HEADERS(inttypes.h)
|
||||||
|
AC_CHECK_TYPES(uint32_t)
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Checks for headers
|
dnl Checks for headers
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2003-10-26 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* sysdep.h: Include inttypes.h where available.
|
||||||
|
|
||||||
|
* host.c: Switch from u_int32_t to uint32_t.
|
||||||
|
|
||||||
2003-10-26 Hrvoje Niksic <hniksic@xemacs.org>
|
2003-10-26 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* netrc.c (parse_netrc): Reset the QUOTE flag after the closing
|
* netrc.c (parse_netrc): Reset the QUOTE flag after the closing
|
||||||
|
@ -110,6 +110,9 @@ char *alloca ();
|
|||||||
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
||||||
#undef TIME_WITH_SYS_TIME
|
#undef TIME_WITH_SYS_TIME
|
||||||
|
|
||||||
|
/* Define if you have inttypes.h header. */
|
||||||
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
/* Define if you have struct utimbuf. */
|
/* Define if you have struct utimbuf. */
|
||||||
#undef HAVE_STRUCT_UTIMBUF
|
#undef HAVE_STRUCT_UTIMBUF
|
||||||
|
|
||||||
@ -275,8 +278,8 @@ char *alloca ();
|
|||||||
/* Defined to int or size_t on systems without socklen_t. */
|
/* Defined to int or size_t on systems without socklen_t. */
|
||||||
#undef socklen_t
|
#undef socklen_t
|
||||||
|
|
||||||
/* Define if you have u_int32_t. */
|
/* Define if you have uint32_t. */
|
||||||
#undef HAVE_U_INT32_T
|
#undef HAVE_UINT32_T
|
||||||
|
|
||||||
/* Some autoconf-unrelated preprocessor magic that cannot be in
|
/* Some autoconf-unrelated preprocessor magic that cannot be in
|
||||||
sysdep.h because it must be done before including the system
|
sysdep.h because it must be done before including the system
|
||||||
@ -290,17 +293,6 @@ char *alloca ();
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Under Ultrix, u_int32_t is only defined when <sys/bitypes.h> is
|
|
||||||
included. Therefore, configure doesn't pick it up, but files that
|
|
||||||
include <netdb.h> (or <resolv.h>) fail to compile because it includes
|
|
||||||
bitypes.h. This magic define causes netdb.h/resolv.h not to include
|
|
||||||
bitypes.h under Ultrix. */
|
|
||||||
|
|
||||||
#ifdef __ultrix
|
|
||||||
# define BSD 199306
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* The following several lines can be very dangerous; they can cripple
|
/* The following several lines can be very dangerous; they can cripple
|
||||||
the header files and break compilation in _verY_ non-obvious ways.
|
the header files and break compilation in _verY_ non-obvious ways.
|
||||||
Because of that, we define them only on architectures we know
|
Because of that, we define them only on architectures we know
|
||||||
|
@ -601,7 +601,7 @@ struct address_list *
|
|||||||
lookup_host (const char *host, int silent)
|
lookup_host (const char *host, int silent)
|
||||||
{
|
{
|
||||||
struct address_list *al = NULL;
|
struct address_list *al = NULL;
|
||||||
u_int32_t addr_ipv4;
|
uint32_t addr_ipv4;
|
||||||
ip_address addr;
|
ip_address addr;
|
||||||
|
|
||||||
/* First, try to check whether the address is already a numeric
|
/* First, try to check whether the address is already a numeric
|
||||||
@ -612,8 +612,8 @@ lookup_host (const char *host, int silent)
|
|||||||
return address_list_from_single (&addr);
|
return address_list_from_single (&addr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
addr_ipv4 = (u_int32_t)inet_addr (host);
|
addr_ipv4 = (uint32_t)inet_addr (host);
|
||||||
if (addr_ipv4 != (u_int32_t)-1)
|
if (addr_ipv4 != (uint32_t)-1)
|
||||||
{
|
{
|
||||||
/* ADDR is defined to be in network byte order, which is what
|
/* ADDR is defined to be in network byte order, which is what
|
||||||
this returns, so we can just copy it to STORE_IP. */
|
this returns, so we can just copy it to STORE_IP. */
|
||||||
|
18
src/sysdep.h
18
src/sysdep.h
@ -48,6 +48,10 @@ so, delete this exception statement from your version. */
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_INTTYPES_H
|
||||||
|
# include <inttypes.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
/* Windows doesn't have some functions. Include mswindows.h so we get
|
/* Windows doesn't have some functions. Include mswindows.h so we get
|
||||||
their declarations, as well as some additional declarations and
|
their declarations, as well as some additional declarations and
|
||||||
@ -245,23 +249,23 @@ void *memcpy ();
|
|||||||
int fnmatch ();
|
int fnmatch ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Provide u_int32_t on the platforms that don't define it. Although
|
/* Provide uint32_t on the platforms that don't define it. Although
|
||||||
most code should be agnostic about integer sizes, some code really
|
most code should be agnostic about integer sizes, some code really
|
||||||
does need a 32-bit integral type. Such code should use u_int32_t.
|
does need a 32-bit integral type. Such code should use uint32_t.
|
||||||
(The exception is gnu-md5.[ch], which uses its own detection for
|
(The exception is gnu-md5.[ch], which uses its own detection for
|
||||||
portability across platforms.) */
|
portability across platforms.) */
|
||||||
|
|
||||||
#ifndef HAVE_U_INT32_T
|
#ifndef HAVE_UINT32_T
|
||||||
# if SIZEOF_INT == 4
|
# if SIZEOF_INT == 4
|
||||||
typedef unsigned int u_int32_t;
|
typedef unsigned int uint32_t;
|
||||||
# else
|
# else
|
||||||
# if SIZEOF_LONG == 4
|
# if SIZEOF_LONG == 4
|
||||||
typedef unsigned long u_int32_t;
|
typedef unsigned long uint32_t;
|
||||||
# else
|
# else
|
||||||
# if SIZEOF_SHORT == 4
|
# if SIZEOF_SHORT == 4
|
||||||
typedef unsigned short u_int32_t;
|
typedef unsigned short uint32_t;
|
||||||
# else
|
# else
|
||||||
#error "Cannot determine a 32-bit type"
|
#error "Cannot determine a 32-bit unsigned integer type"
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
@ -197,7 +197,7 @@
|
|||||||
/* Defined to int or size_t on systems without socklen_t. */
|
/* Defined to int or size_t on systems without socklen_t. */
|
||||||
#define socklen_t int
|
#define socklen_t int
|
||||||
|
|
||||||
/* Define if you have u_int32_t. */
|
/* Define if you have uint32_t. */
|
||||||
/* #undef HAVE_U_INT32_T */
|
#define HAVE_UINT32_T */
|
||||||
|
|
||||||
#endif /* CONFIG_H */
|
#endif /* CONFIG_H */
|
||||||
|
@ -257,7 +257,7 @@ so, delete this exception statement from your version. */
|
|||||||
/* Defined to int or size_t on systems without socklen_t. */
|
/* Defined to int or size_t on systems without socklen_t. */
|
||||||
#define socklen_t int
|
#define socklen_t int
|
||||||
|
|
||||||
/* Define if you have u_int32_t. */
|
/* Define if you have uint32_t. */
|
||||||
/* #undef HAVE_U_INT32_T */
|
#undef HAVE_UINT32_T
|
||||||
|
|
||||||
#endif /* CONFIG_H */
|
#endif /* CONFIG_H */
|
||||||
|
@ -199,7 +199,7 @@
|
|||||||
/* Defined to int or size_t on systems without socklen_t. */
|
/* Defined to int or size_t on systems without socklen_t. */
|
||||||
#define socklen_t int
|
#define socklen_t int
|
||||||
|
|
||||||
/* Define if you have u_int32_t. */
|
/* Define if you have uint32_t. */
|
||||||
#undef HAVE_U_INT32_T
|
#define HAVE_UINT32_T
|
||||||
|
|
||||||
#endif /* CONFIG_H */
|
#endif /* CONFIG_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user