mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
The Curl_* prefixes are now changed for curl_* ones, as these two functions
are used externally and thus are public symbols.
This commit is contained in:
parent
3201d2dafa
commit
3738e4bdc0
@ -25,7 +25,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
int Curl_strequal(const char *first, const char *second)
|
||||
int curl_strequal(const char *first, const char *second)
|
||||
{
|
||||
#if defined(HAVE_STRCASECMP)
|
||||
return !strcasecmp(first, second);
|
||||
@ -45,7 +45,7 @@ int Curl_strequal(const char *first, const char *second)
|
||||
#endif
|
||||
}
|
||||
|
||||
int Curl_strnequal(const char *first, const char *second, size_t max)
|
||||
int curl_strnequal(const char *first, const char *second, size_t max)
|
||||
{
|
||||
#if defined(HAVE_STRCASECMP)
|
||||
return !strncasecmp(first, second, max);
|
||||
|
@ -22,10 +22,14 @@
|
||||
*
|
||||
* $Id$
|
||||
*****************************************************************************/
|
||||
int Curl_strequal(const char *first, const char *second);
|
||||
int Curl_strnequal(const char *first, const char *second, size_t max);
|
||||
|
||||
#define strequal(a,b) Curl_strequal(a,b)
|
||||
#define strnequal(a,b,c) Curl_strnequal(a,b,c)
|
||||
/*
|
||||
* These two actually are public functions.
|
||||
*/
|
||||
int curl_strequal(const char *first, const char *second);
|
||||
int curl_strnequal(const char *first, const char *second, size_t max);
|
||||
|
||||
#define strequal(a,b) curl_strequal(a,b)
|
||||
#define strnequal(a,b,c) curl_strnequal(a,b,c)
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user