curl-library
some questions about ares/windows_port.c
Date: Wed, 4 Jul 2007 14:36:14 +0200
Hi,
ares/windows_port.c provides three functions where I dont see real sense for;
and just curious for what these are:
int ares_strncasecmp(const char *a, const char *b, int n);
int ares_strcasecmp(const char *a, const char *b);
I wonder why we dont do the usual stuff here for win32 - that would be something like below in setup.h:
#ifdef __WATCOMC__
#define strncasecmp strnicmp
#define strcasecmp stricmp
#else
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#endif
then it provides:
int ares_gettimeofday(struct timeval *tv, struct timezone *tz);
but I cant see any usage of gettimeofday inside ares - except that ares_gettimeofday() gets exported for MSVC builds (see Makefile.vc6);
and ./lib and ./src have own implementations in ./lib/timeval.c and ./src/curlutil.c ...
Guenter.
Received on 2007-07-04