]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
src: replace copy of printf mappings with an include
authorViktor Szakats <commit@vsz.me>
Thu, 22 Aug 2024 15:12:09 +0000 (17:12 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 22 Aug 2024 22:11:24 +0000 (00:11 +0200)
Closes #14648

lib/curlx.h

index 053c3465c89c72702aed4853b2663a8eb911f64b..0391d7cd7f296cd635f83a7a2c69ccef86b0511b 100644 (file)
  * be.
  */
 
-#include <curl/mprintf.h>
-/* this is still a public header file that provides the curl_mprintf()
-   functions while they still are offered publicly. They will be made library-
-   private one day */
+/* map standard printf functions to curl implementations */
+#include "curl_printf.h"
 
 #include "strcase.h"
 /* "strcase.h" provides the strcasecompare protos */
 
 */
 
-/* We define all "standard" printf() functions to use the curlx_* version
-   instead. It makes the source code transparent and easier to
-   understand/patch. Undefine them first. */
-# undef printf
-# undef fprintf
-# undef msnprintf
-# undef vprintf
-# undef vfprintf
-# undef mvsnprintf
-# undef aprintf
-# undef vaprintf
-
-# define printf curl_mprintf
-# define fprintf curl_mfprintf
-# define msnprintf curl_msnprintf
-# define vprintf curl_mvprintf
-# define vfprintf curl_mvfprintf
-# define mvsnprintf curl_mvsnprintf
-# define aprintf curl_maprintf
-# define vaprintf curl_mvaprintf
-
 #endif /* HEADER_CURL_CURLX_H */