mirror of
https://github.com/curl/curl.git
synced 2026-01-18 17:21:26 +01:00
build: drop duplicate include curl/curl.h and others
- curl_range: replace `sendf.h` with direct header dependency `curl_trc.h`. - drop `curl/curl.h` includes from internal sourcees in favor of the include made from `curl_setup.h`. Replace it with the latter where it's the only include. - include `curl_setup.h` before using macros, where missing. - drop redundant `stdlib.h`, `string.h` includes, in favor of `curl_setup_once.h` including them. - drop redundant `limits.h` in favor of `curl_setup.h` including it. - fake_addrinfo.h: fix typo in comment. - curl_setup_once.h: drop `stdio.h` in favor of earlier include in `curl_setup.h`. - drop stray, unused, `stddef.h` includes. - memdebug.h: add missing `stddef.h` include. (relying on accidental includes via other headers before this patch.) - stddef.h: document why it's included. - strerr: drop `curl/mprintf.h` in favor of `curl/curl.h` including it via `curl_setup.h`. Closes #20027
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
#include "curl_setup.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_ALTSVC)
|
||||
#include <curl/curl.h>
|
||||
#include "urldata.h"
|
||||
#include "altsvc.h"
|
||||
#include "curl_fopen.h"
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include "curl_setup.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_ALTSVC)
|
||||
#include <curl/curl.h>
|
||||
#include "llist.h"
|
||||
|
||||
struct althost {
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
|
||||
#ifdef __AMIGA__
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "hostip.h"
|
||||
#include "amigaos.h"
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
* as defined in asyn.h, nothing else belongs in this file!
|
||||
**********************************************************************/
|
||||
|
||||
#include <limits.h>
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
***************************************************************************/
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
/**
|
||||
* A chunk of bytes for reading and writing.
|
||||
* The size is fixed a creation with read and write offset
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
#if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP)
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "urldata.h"
|
||||
#include "curlx/dynbuf.h"
|
||||
#include "sendf.h"
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
defined(USE_NGHTTP2)
|
||||
|
||||
#include <nghttp2/nghttp2.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "url.h"
|
||||
#include "cfilters.h"
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
#ifndef CURL_DISABLE_PROXY
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "urldata.h"
|
||||
#include "cfilters.h"
|
||||
#include "cf-haproxy.h"
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "urldata.h"
|
||||
|
||||
#ifndef CURL_DISABLE_PROXY
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#ifndef CURL_DISABLE_HTTP
|
||||
|
||||
#include "urldata.h"
|
||||
#include <curl/curl.h>
|
||||
#include "curl_trc.h"
|
||||
#include "cfilters.h"
|
||||
#include "connect.h"
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "url.h"
|
||||
#include "cfilters.h"
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "curlx/timeval.h"
|
||||
|
||||
struct connectdata;
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "urldata.h"
|
||||
#include <curl/curl.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef HAVE_LIBZ
|
||||
#include <zlib.h>
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
***************************************************************************/
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "llist.h"
|
||||
|
||||
struct Cookie {
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "url.h"
|
||||
#include "cfilters.h"
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "curlx/timeval.h"
|
||||
|
||||
struct connectdata;
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
# include <netinet/in.h>
|
||||
#endif
|
||||
@@ -47,7 +45,7 @@
|
||||
# include <inet.h>
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stddef.h> /* for offsetof() */
|
||||
|
||||
#include "curl_addrinfo.h"
|
||||
#include "fake_addrinfo.h"
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
#ifndef CURL_DISABLE_FTP
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "curl_fnmatch.h"
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "urldata.h"
|
||||
|
||||
#ifdef HAVE_GSSAPI
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
!defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) || \
|
||||
defined(USE_LIBSSH2) || defined(USE_SSL)
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#define HMAC_MD5_LENGTH 16
|
||||
|
||||
typedef CURLcode (*HMAC_hinit)(void *context);
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
#include <curl/curl.h>
|
||||
|
||||
#ifdef USE_CURL_NTLM_CORE
|
||||
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "curl_memrchr.h"
|
||||
|
||||
#ifndef HAVE_MEMRCHR
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
|
||||
#ifdef HAVE_MEMRCHR
|
||||
|
||||
#include <string.h>
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "curl_range.h"
|
||||
#include "sendf.h"
|
||||
#include "curl_trc.h"
|
||||
#include "curlx/strparse.h"
|
||||
|
||||
/* Only include this function if one or more of FTP, FILE are enabled. */
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "urldata.h"
|
||||
|
||||
CURLcode Curl_range(struct Curl_easy *data);
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "transfer.h"
|
||||
#include "bufref.h"
|
||||
#include "curlx/warnless.h"
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include <librtmp/rtmp.h>
|
||||
|
||||
#if defined(USE_WINSOCK) || defined(LWIP_SO_SNDRCVTIMEO_NONSTANDARD)
|
||||
|
||||
@@ -39,9 +39,7 @@
|
||||
!defined(CURL_DISABLE_POP3) || \
|
||||
(!defined(CURL_DISABLE_LDAP) && defined(USE_OPENLDAP))
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "urldata.h"
|
||||
|
||||
#include "curlx/base64.h"
|
||||
#include "vauth/vauth.h"
|
||||
#include "cfilters.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "bufref.h"
|
||||
|
||||
struct Curl_easy;
|
||||
|
||||
@@ -924,7 +924,7 @@ extern curl_calloc_callback Curl_ccalloc;
|
||||
(ptr) = NULL; \
|
||||
} while(0)
|
||||
|
||||
#include <curl/curl.h> /* for CURL_EXTERN, mprintf.h */
|
||||
#include <curl/curl.h> /* for CURL_EXTERN, curl_socket_t, mprintf.h */
|
||||
|
||||
#ifdef CURLDEBUG
|
||||
#ifdef __clang__
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
* Inclusion of common header files.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
@@ -25,10 +25,11 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) || \
|
||||
defined(USE_LIBSSH2) || defined(USE_SSL)
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "curl_hmac.h"
|
||||
|
||||
extern const struct HMAC_params Curl_HMAC_SHA256;
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
(__NetBSD_Version__ >= 1099000000 && \
|
||||
__NetBSD_Version__ < 1099001100)
|
||||
# define NEED_NETBSD_SHA512_256_WORKAROUND 1
|
||||
# include <string.h>
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
|
||||
@@ -24,9 +24,10 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_DIGEST_AUTH) && !defined(CURL_DISABLE_SHA512_256)
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "curl_hmac.h"
|
||||
|
||||
#define CURL_HAVE_SHA512_256
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "urldata.h"
|
||||
#include "connect.h"
|
||||
#include "curl_share.h"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "cookie.h"
|
||||
#include "psl.h"
|
||||
#include "urldata.h"
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
#ifdef USE_WINDOWS_SSPI
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "curl_sspi.h"
|
||||
#include "strdup.h"
|
||||
#include "curlx/multibyte.h"
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
|
||||
#ifdef USE_WINDOWS_SSPI
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
/*
|
||||
* When including the following three headers, it is mandatory to define either
|
||||
* SECURITY_WIN32 or SECURITY_KERNEL, indicating who is compiling the code.
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#if defined(USE_THREADS_POSIX) && defined(HAVE_PTHREAD_H)
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "curl_trc.h"
|
||||
#include "urldata.h"
|
||||
#include "cfilters.h"
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
#include "../curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "warnless.h"
|
||||
#include "base64.h"
|
||||
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
struct dynbuf {
|
||||
char *bufr; /* point to a null-terminated allocated buffer */
|
||||
size_t leng; /* number of bytes *EXCLUDING* the null-terminator */
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include <curl/curl.h> /* for curl_socket_t */
|
||||
|
||||
int curlx_nonblock(curl_socket_t sockfd, /* operate on this */
|
||||
int nonblock /* TRUE or FALSE */);
|
||||
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "winapi.h"
|
||||
#include "snprintf.h"
|
||||
#include "strerr.h"
|
||||
|
||||
@@ -24,10 +24,6 @@
|
||||
|
||||
#include "strparse.h"
|
||||
|
||||
#ifndef WITHOUT_LIBCURL
|
||||
#include <curl/curl.h> /* for curl_strnequal() */
|
||||
#endif
|
||||
|
||||
void curlx_str_init(struct Curl_str *out)
|
||||
{
|
||||
out->str = NULL;
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "timediff.h"
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
/*
|
||||
* Converts number of milliseconds into a timeval structure.
|
||||
*
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "version_win32.h"
|
||||
#include "../system_win32.h"
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "version_win32.h"
|
||||
#include "warnless.h"
|
||||
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
#error "We cannot compile without select() support."
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#elif defined(HAVE_UNISTD_H)
|
||||
|
||||
@@ -35,8 +35,6 @@
|
||||
|
||||
#endif /* __INTEL_COMPILER && __unix__ */
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#define CURL_MASK_UCHAR ((unsigned char)~0)
|
||||
|
||||
#define CURL_MASK_USHORT ((unsigned short)~0)
|
||||
|
||||
@@ -26,10 +26,6 @@
|
||||
|
||||
#include "../curl_setup.h"
|
||||
|
||||
#ifdef USE_WINSOCK
|
||||
#include <curl/curl.h> /* for curl_socket_t */
|
||||
#endif
|
||||
|
||||
#define CURLX_FUNCTION_CAST(target_type, func) \
|
||||
(target_type)(void (*)(void))(func)
|
||||
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "cfilters.h"
|
||||
#include "headers.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "bufq.h"
|
||||
#include "cfilters.h"
|
||||
|
||||
@@ -53,7 +53,6 @@
|
||||
#endif
|
||||
|
||||
#include "urldata.h"
|
||||
#include <curl/curl.h>
|
||||
#include "transfer.h"
|
||||
#include "sendf.h"
|
||||
#include "escape.h"
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "dynhds.h"
|
||||
#include "strcase.h"
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
***************************************************************************/
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "curlx/dynbuf.h"
|
||||
|
||||
struct dynbuf;
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
#endif
|
||||
|
||||
#include "urldata.h"
|
||||
#include <curl/curl.h>
|
||||
#include "transfer.h"
|
||||
#include "vtls/vtls.h"
|
||||
#include "vtls/vtls_scache.h"
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "easyoptions.h"
|
||||
|
||||
#ifndef CURL_DISABLE_GETOPTIONS
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
/* This source code is generated by optiontable.pl - DO NOT EDIT BY HAND */
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "easyoptions.h"
|
||||
|
||||
/* all easy setopt options listed in alphabetical order */
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
|
||||
/* should probably go into the public header */
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
/* generated table with all easy options */
|
||||
extern const struct curl_easyoption Curl_easyopts[];
|
||||
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
struct Curl_easy;
|
||||
|
||||
#include "urldata.h"
|
||||
|
||||
@@ -23,12 +23,11 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "fake_addrinfo.h"
|
||||
|
||||
#ifdef USE_FAKE_GETADDRINFO
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <ares.h>
|
||||
|
||||
void r_freeaddrinfo(struct addrinfo *cahead)
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(CURLDEBUG) && defined(USE_ARES) && defined(HAVE_GETADDRINFO) && \
|
||||
(ARES_VERSION >= 0x011a00) /* >= 1.26. 0 */
|
||||
(ARES_VERSION >= 0x011a00) /* >= 1.26.0 */
|
||||
#define USE_FAKE_GETADDRINFO 1
|
||||
#endif
|
||||
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
#endif
|
||||
|
||||
#include "urldata.h"
|
||||
#include <curl/curl.h>
|
||||
#include "progress.h"
|
||||
#include "sendf.h"
|
||||
#include "escape.h"
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "llist.h"
|
||||
#include "curlx/dynbuf.h"
|
||||
|
||||
|
||||
@@ -24,11 +24,10 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
struct Curl_easy;
|
||||
|
||||
#include "formdata.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_FORM_API)
|
||||
|
||||
#include "urldata.h" /* for struct Curl_easy */
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
#include <inet.h>
|
||||
#endif
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "urldata.h"
|
||||
#include "sendf.h"
|
||||
#include "if2ip.h"
|
||||
|
||||
@@ -41,8 +41,6 @@
|
||||
|
||||
#ifndef CURL_DISABLE_FTP
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "fileinfo.h"
|
||||
#include "llist.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
char *curl_getenv(const char *variable)
|
||||
{
|
||||
#if defined(CURL_WINDOWS_UWP) || \
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "getinfo.h"
|
||||
#include "cfilters.h"
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#ifndef CURL_DISABLE_GOPHER
|
||||
|
||||
#include "urldata.h"
|
||||
#include <curl/curl.h>
|
||||
#include "transfer.h"
|
||||
#include "sendf.h"
|
||||
#include "cfilters.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "hash.h"
|
||||
|
||||
/* random patterns for API verification */
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/* Hash function prototype */
|
||||
typedef size_t (*hash_function)(void *key,
|
||||
size_t key_length,
|
||||
|
||||
@@ -30,8 +30,6 @@
|
||||
!defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) || \
|
||||
defined(USE_SSL)
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "curl_hmac.h"
|
||||
#include "curlx/warnless.h"
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "hash.h"
|
||||
#include "curl_addrinfo.h"
|
||||
#include "curlx/timeval.h" /* for timediff_t */
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#include "curl_setup.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_HSTS)
|
||||
#include <curl/curl.h>
|
||||
#include "urldata.h"
|
||||
#include "llist.h"
|
||||
#include "hsts.h"
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include "curl_setup.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_HSTS)
|
||||
#include <curl/curl.h>
|
||||
#include "llist.h"
|
||||
|
||||
#if defined(DEBUGBUILD) || defined(UNITTESTS)
|
||||
|
||||
@@ -48,7 +48,6 @@
|
||||
#endif
|
||||
|
||||
#include "urldata.h"
|
||||
#include <curl/curl.h>
|
||||
#include "transfer.h"
|
||||
#include "sendf.h"
|
||||
#include "formdata.h"
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#ifndef CURL_DISABLE_HTTP
|
||||
|
||||
#include "urldata.h"
|
||||
#include <curl/curl.h>
|
||||
#include "http.h"
|
||||
#include "http1.h"
|
||||
#include "urlapi-int.h"
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#if !defined(CURL_DISABLE_HTTP) && defined(USE_NGHTTP2)
|
||||
#include <stdint.h>
|
||||
#include <nghttp2/nghttp2.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "bufq.h"
|
||||
#include "uint-hash.h"
|
||||
@@ -3045,7 +3046,6 @@ void *Curl_nghttp2_realloc(void *ptr, size_t size, void *user_data)
|
||||
#else /* CURL_DISABLE_HTTP || !USE_NGHTTP2 */
|
||||
|
||||
/* Satisfy external references even if http2 is not compiled in. */
|
||||
#include <curl/curl.h>
|
||||
|
||||
char *curl_pushheader_bynum(struct curl_pushheaders *h, size_t num)
|
||||
{
|
||||
|
||||
@@ -36,11 +36,10 @@
|
||||
#include "escape.h"
|
||||
#include "curlx/strparse.h"
|
||||
#include "curlx/timeval.h"
|
||||
#include "slist.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include "slist.h"
|
||||
|
||||
#define HMAC_SHA256(k, kl, d, dl, o) \
|
||||
do { \
|
||||
result = Curl_hmacit(&Curl_HMAC_SHA256, \
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "curlx/dynbuf.h"
|
||||
#include "urldata.h"
|
||||
#include "curlx/strparse.h"
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
* SPDX-License-Identifier: curl
|
||||
*
|
||||
***************************************************************************/
|
||||
#include "curl_setup.h"
|
||||
|
||||
#ifndef CURL_DISABLE_HTTP
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
* SPDX-License-Identifier: curl
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_DIGEST_AUTH)
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#if !defined(CURL_DISABLE_HTTP) && defined(USE_SPNEGO)
|
||||
|
||||
/* this is for Negotiate header input */
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
|
||||
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY)
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "sendf.h"
|
||||
#include "http.h"
|
||||
#include "url.h"
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
*/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "urldata.h"
|
||||
#include "idn.h"
|
||||
#include "sendf.h"
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
#include "curlx/dynbuf.h"
|
||||
|
||||
#ifndef CURL_DISABLE_IMAP
|
||||
|
||||
@@ -54,7 +53,7 @@
|
||||
#include <inet.h>
|
||||
#endif
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include "curlx/dynbuf.h"
|
||||
#include "urldata.h"
|
||||
#include "sendf.h"
|
||||
#include "hostip.h"
|
||||
|
||||
@@ -77,7 +77,6 @@
|
||||
#endif
|
||||
|
||||
#include "urldata.h"
|
||||
#include <curl/curl.h>
|
||||
#include "cfilters.h"
|
||||
#include "sendf.h"
|
||||
#include "escape.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "llist.h"
|
||||
|
||||
#ifdef DEBUGBUILD
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
#include <stddef.h>
|
||||
|
||||
typedef void (*Curl_llist_dtor)(void *user, void *elem);
|
||||
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
|
||||
#ifdef CURL_MACOS_CALL_COPYPROXIES
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "macos.h"
|
||||
|
||||
#include <SystemConfiguration/SCDynamicStoreCopySpecific.h>
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
|
||||
#ifdef USE_CURL_NTLM_CORE
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "curl_md4.h"
|
||||
#include "curlx/warnless.h"
|
||||
|
||||
|
||||
@@ -27,9 +27,6 @@
|
||||
#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) || \
|
||||
!defined(CURL_DISABLE_DIGEST_AUTH)
|
||||
|
||||
#include <string.h>
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "curl_md5.h"
|
||||
#include "curl_hmac.h"
|
||||
#include "curlx/warnless.h"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#ifdef CURLDEBUG
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include <stddef.h> /* for offsetof() */
|
||||
|
||||
#include "urldata.h"
|
||||
#include "curl_threads.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
struct Curl_easy;
|
||||
|
||||
#include "mime.h"
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "curlx/dynbuf.h"
|
||||
#include "curl_printf.h"
|
||||
#include "curlx/strparse.h"
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#ifndef CURL_DISABLE_MQTT
|
||||
|
||||
#include "urldata.h"
|
||||
#include <curl/curl.h>
|
||||
#include "transfer.h"
|
||||
#include "sendf.h"
|
||||
#include "progress.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "transfer.h"
|
||||
#include "url.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "url.h"
|
||||
#include "cfilters.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "urldata.h"
|
||||
#include "curl_trc.h"
|
||||
#include "multihandle.h"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user