mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
vtls: use curl_printf.h all over
No need to use _MPRINTF_REPLACE internally.
This commit is contained in:
parent
dcf23b0cfe
commit
8aabbf5f8c
@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -163,11 +163,6 @@
|
|||||||
#define HAVE_TERMIOS_H 1
|
#define HAVE_TERMIOS_H 1
|
||||||
#define HAVE_VARIADIC_MACROS_GCC 1
|
#define HAVE_VARIADIC_MACROS_GCC 1
|
||||||
|
|
||||||
/* Because djgpp <= 2.03 doesn't have snprintf() etc. */
|
|
||||||
#if (DJGPP_MINOR < 4)
|
|
||||||
#define _MPRINTF_REPLACE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#elif defined(__WATCOMC__)
|
#elif defined(__WATCOMC__)
|
||||||
#define HAVE_STRCASECMP 1
|
#define HAVE_STRCASECMP 1
|
||||||
|
|
||||||
|
@ -27,9 +27,25 @@
|
|||||||
* *rintf() functions.
|
* *rintf() functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
|
||||||
#include <curl/mprintf.h>
|
#include <curl/mprintf.h>
|
||||||
|
|
||||||
|
# undef printf
|
||||||
|
# undef fprintf
|
||||||
|
# undef snprintf
|
||||||
|
# undef vprintf
|
||||||
|
# undef vfprintf
|
||||||
|
# undef vsnprintf
|
||||||
|
# undef aprintf
|
||||||
|
# undef vaprintf
|
||||||
|
# define printf curl_mprintf
|
||||||
|
# define fprintf curl_mfprintf
|
||||||
|
# define snprintf curl_msnprintf
|
||||||
|
# define vprintf curl_mvprintf
|
||||||
|
# define vfprintf curl_mvfprintf
|
||||||
|
# define vsnprintf curl_mvsnprintf
|
||||||
|
# define aprintf curl_maprintf
|
||||||
|
# define vaprintf curl_mvaprintf
|
||||||
|
|
||||||
/* We define away the sprintf functions unconditonally since we don't want
|
/* We define away the sprintf functions unconditonally since we don't want
|
||||||
internal code to be using them, intentionally or by mistake!*/
|
internal code to be using them, intentionally or by mistake!*/
|
||||||
# undef sprintf
|
# undef sprintf
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -90,8 +90,7 @@
|
|||||||
#ifdef ENABLE_CURLX_PRINTF
|
#ifdef ENABLE_CURLX_PRINTF
|
||||||
/* If this define is set, we define all "standard" printf() functions to use
|
/* If this define is set, we define all "standard" printf() functions to use
|
||||||
the curlx_* version instead. It makes the source code transparent and
|
the curlx_* version instead. It makes the source code transparent and
|
||||||
easier to understand/patch. Undefine them first in case _MPRINTF_REPLACE
|
easier to understand/patch. Undefine them first. */
|
||||||
is set. */
|
|
||||||
# undef printf
|
# undef printf
|
||||||
# undef fprintf
|
# undef fprintf
|
||||||
# undef sprintf
|
# undef sprintf
|
||||||
|
@ -38,8 +38,7 @@
|
|||||||
#include "parsedate.h"
|
#include "parsedate.h"
|
||||||
#include "connect.h" /* for the connect timeout */
|
#include "connect.h" /* for the connect timeout */
|
||||||
#include "select.h"
|
#include "select.h"
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
#include "curl_printf.h"
|
||||||
#include <curl/mprintf.h>
|
|
||||||
#include "curl_memory.h"
|
#include "curl_memory.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#include "connect.h" /* for the connect timeout */
|
#include "connect.h" /* for the connect timeout */
|
||||||
#include "select.h"
|
#include "select.h"
|
||||||
#include "rawstr.h"
|
#include "rawstr.h"
|
||||||
|
#include "curl_printf.h"
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
|
||||||
#include <curl/mprintf.h>
|
|
||||||
#include "curl_memory.h"
|
#include "curl_memory.h"
|
||||||
|
|
||||||
#include <cyassl/ssl.h>
|
#include <cyassl/ssl.h>
|
||||||
|
@ -103,9 +103,7 @@
|
|||||||
#include "select.h"
|
#include "select.h"
|
||||||
#include "vtls.h"
|
#include "vtls.h"
|
||||||
#include "darwinssl.h"
|
#include "darwinssl.h"
|
||||||
|
#include "curl_printf.h"
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
|
||||||
#include <curl/mprintf.h>
|
|
||||||
|
|
||||||
#include "curl_memory.h"
|
#include "curl_memory.h"
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
|
@ -74,9 +74,7 @@
|
|||||||
#include "select.h"
|
#include "select.h"
|
||||||
#include "strequal.h"
|
#include "strequal.h"
|
||||||
#include "x509asn1.h"
|
#include "x509asn1.h"
|
||||||
|
#include "curl_printf.h"
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
|
||||||
#include <curl/mprintf.h>
|
|
||||||
|
|
||||||
#include "curl_memory.h"
|
#include "curl_memory.h"
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
|
@ -53,9 +53,7 @@
|
|||||||
#include "select.h"
|
#include "select.h"
|
||||||
#include "rawstr.h"
|
#include "rawstr.h"
|
||||||
#include "warnless.h"
|
#include "warnless.h"
|
||||||
|
#include "curl_printf.h"
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
|
||||||
#include <curl/mprintf.h>
|
|
||||||
#include "curl_memory.h"
|
#include "curl_memory.h"
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
@ -38,10 +38,7 @@
|
|||||||
#include "select.h"
|
#include "select.h"
|
||||||
#include "vtls.h"
|
#include "vtls.h"
|
||||||
#include "llist.h"
|
#include "llist.h"
|
||||||
|
#include "curl_printf.h"
|
||||||
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
|
|
||||||
#include <curl/mprintf.h>
|
|
||||||
|
|
||||||
#include "nssg.h"
|
#include "nssg.h"
|
||||||
#include <nspr.h>
|
#include <nspr.h>
|
||||||
#include <nss.h>
|
#include <nss.h>
|
||||||
|
@ -49,9 +49,7 @@
|
|||||||
#include "vtls.h"
|
#include "vtls.h"
|
||||||
#include "rawstr.h"
|
#include "rawstr.h"
|
||||||
#include "hostcheck.h"
|
#include "hostcheck.h"
|
||||||
|
#include "curl_printf.h"
|
||||||
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
|
|
||||||
#include <curl/mprintf.h>
|
|
||||||
|
|
||||||
#ifdef USE_SSLEAY
|
#ifdef USE_SSLEAY
|
||||||
|
|
||||||
|
@ -55,9 +55,7 @@
|
|||||||
#include "select.h"
|
#include "select.h"
|
||||||
#include "rawstr.h"
|
#include "rawstr.h"
|
||||||
#include "polarssl_threadlock.h"
|
#include "polarssl_threadlock.h"
|
||||||
|
#include "curl_printf.h"
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
|
||||||
#include <curl/mprintf.h>
|
|
||||||
#include "curl_memory.h"
|
#include "curl_memory.h"
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
@ -36,10 +36,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "polarssl_threadlock.h"
|
#include "polarssl_threadlock.h"
|
||||||
|
#include "curl_printf.h"
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
|
||||||
#include <curl/mprintf.h>
|
|
||||||
|
|
||||||
#include "curl_memory.h"
|
#include "curl_memory.h"
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
@ -56,10 +56,7 @@
|
|||||||
#include "inet_pton.h" /* for IP addr SNI check */
|
#include "inet_pton.h" /* for IP addr SNI check */
|
||||||
#include "curl_multibyte.h"
|
#include "curl_multibyte.h"
|
||||||
#include "warnless.h"
|
#include "warnless.h"
|
||||||
|
#include "curl_printf.h"
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
|
||||||
#include <curl/mprintf.h>
|
|
||||||
|
|
||||||
#include "curl_memory.h"
|
#include "curl_memory.h"
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -70,9 +70,7 @@
|
|||||||
#include "curl_md5.h"
|
#include "curl_md5.h"
|
||||||
#include "warnless.h"
|
#include "warnless.h"
|
||||||
#include "curl_base64.h"
|
#include "curl_base64.h"
|
||||||
|
#include "curl_printf.h"
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
|
||||||
#include <curl/mprintf.h>
|
|
||||||
|
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user