windows: adjust name of two internal public functions
According to `docs/INTERNALS.md`, internal function names spanning source files start with uppercase `Curl_`. Bring these two functions in alignment with this. This also stops exporting them from `libcurl.dll` in autotools builds. Reviewed-by: Daniel Stenberg Closes #9598
This commit is contained in:
Родитель
2481dbe5f4
Коммит
92b9624a68
|
@ -67,10 +67,10 @@ WINBASEAPI int WINAPI IdnToUnicode(DWORD dwFlags,
|
|||
|
||||
#define IDN_MAX_LENGTH 255
|
||||
|
||||
bool curl_win32_idn_to_ascii(const char *in, char **out);
|
||||
bool curl_win32_ascii_to_idn(const char *in, char **out);
|
||||
bool Curl_win32_idn_to_ascii(const char *in, char **out);
|
||||
bool Curl_win32_ascii_to_idn(const char *in, char **out);
|
||||
|
||||
bool curl_win32_idn_to_ascii(const char *in, char **out)
|
||||
bool Curl_win32_idn_to_ascii(const char *in, char **out)
|
||||
{
|
||||
bool success = FALSE;
|
||||
|
||||
|
@ -93,7 +93,7 @@ bool curl_win32_idn_to_ascii(const char *in, char **out)
|
|||
return success;
|
||||
}
|
||||
|
||||
bool curl_win32_ascii_to_idn(const char *in, char **out)
|
||||
bool Curl_win32_ascii_to_idn(const char *in, char **out)
|
||||
{
|
||||
bool success = FALSE;
|
||||
|
||||
|
|
|
@ -73,8 +73,8 @@
|
|||
#endif
|
||||
|
||||
#elif defined(USE_WIN32_IDN)
|
||||
/* prototype for curl_win32_idn_to_ascii() */
|
||||
bool curl_win32_idn_to_ascii(const char *in, char **out);
|
||||
/* prototype for Curl_win32_idn_to_ascii() */
|
||||
bool Curl_win32_idn_to_ascii(const char *in, char **out);
|
||||
#endif /* USE_LIBIDN2 */
|
||||
|
||||
#include "doh.h"
|
||||
|
@ -1648,7 +1648,7 @@ CURLcode Curl_idnconvert_hostname(struct Curl_easy *data,
|
|||
#elif defined(USE_WIN32_IDN)
|
||||
char *ace_hostname = NULL;
|
||||
|
||||
if(curl_win32_idn_to_ascii(host->name, &ace_hostname)) {
|
||||
if(Curl_win32_idn_to_ascii(host->name, &ace_hostname)) {
|
||||
host->encalloc = ace_hostname;
|
||||
/* change the name pointer to point to the encoded hostname */
|
||||
host->name = host->encalloc;
|
||||
|
@ -1679,7 +1679,7 @@ void Curl_free_idnconverted_hostname(struct hostname *host)
|
|||
}
|
||||
#elif defined(USE_WIN32_IDN)
|
||||
free(host->encalloc); /* must be freed with free() since this was
|
||||
allocated by curl_win32_idn_to_ascii */
|
||||
allocated by Curl_win32_idn_to_ascii */
|
||||
host->encalloc = NULL;
|
||||
#else
|
||||
(void)host;
|
||||
|
|
Загрузка…
Ссылка в новой задаче