mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
include libcurl standard internal headers
This commit is contained in:
parent
df06182d86
commit
077125e4a2
@ -24,6 +24,13 @@
|
||||
|
||||
#include "curl_fnmatch.h"
|
||||
|
||||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "curl_memory.h"
|
||||
/* The last #include file should be: */
|
||||
#include "memdebug.h"
|
||||
|
||||
#define CURLFNM_CHARSET_LEN (sizeof(char) * 256)
|
||||
#define CURLFNM_CHSET_SIZE (CURLFNM_CHARSET_LEN + 15)
|
||||
|
||||
|
@ -64,4 +64,4 @@ int Curl_HMAC_final(HMAC_context * context, unsigned char * result);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* HEADER_CURL_HMAC_H */
|
||||
|
@ -31,6 +31,13 @@
|
||||
#include <curl/curl.h>
|
||||
#include <librtmp/rtmp.h>
|
||||
|
||||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "curl_memory.h"
|
||||
/* The last #include file should be: */
|
||||
#include "memdebug.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define setsockopt(a,b,c,d,e) (setsockopt)(a,b,c,(const char *)d,(int)e)
|
||||
#define SET_RCVTIMEO(tv,s) int tv = s*1000
|
||||
|
@ -1,6 +1,5 @@
|
||||
#ifndef __CURL_RTMP_H
|
||||
#define __CURL_RTMP_H
|
||||
|
||||
#ifndef HEADER_CURL_RTMP_H
|
||||
#define HEADER_CURL_RTMP_H
|
||||
/***************************************************************************
|
||||
* _ _ ____ _
|
||||
* Project ___| | | | _ \| |
|
||||
@ -31,4 +30,4 @@ extern const struct Curl_handler Curl_handler_rtmps;
|
||||
extern const struct Curl_handler Curl_handler_rtmpts;
|
||||
#endif
|
||||
|
||||
#endif /* __CURL_RTMP_H */
|
||||
#endif /* HEADER_CURL_RTMP_H */
|
||||
|
@ -26,6 +26,13 @@
|
||||
#include "strdup.h"
|
||||
#include "fileinfo.h"
|
||||
|
||||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "curl_memory.h"
|
||||
/* The last #include file should be: */
|
||||
#include "memdebug.h"
|
||||
|
||||
struct curl_fileinfo *Curl_fileinfo_alloc(void)
|
||||
{
|
||||
struct curl_fileinfo *tmp = malloc(sizeof(struct curl_fileinfo));
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef __FILEINFO_H
|
||||
#define __FILEINFO_H
|
||||
#ifndef HEADER_CURL_FILEINFO_H
|
||||
#define HEADER_CURL_FILEINFO_H
|
||||
/***************************************************************************
|
||||
* _ _ ____ _
|
||||
* Project ___| | | | _ \| |
|
||||
@ -30,4 +30,4 @@ void Curl_fileinfo_dtor(void *, void *);
|
||||
|
||||
struct curl_fileinfo *Curl_fileinfo_dup(const struct curl_fileinfo *src);
|
||||
|
||||
#endif /* __FILEINFO_H */
|
||||
#endif /* HEADER_CURL_FILEINFO_H */
|
||||
|
@ -50,6 +50,13 @@
|
||||
#include "rawstr.h"
|
||||
#include "ftp.h"
|
||||
|
||||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "curl_memory.h"
|
||||
/* The last #include file should be: */
|
||||
#include "memdebug.h"
|
||||
|
||||
/* allocs buffer which will contain one line of LIST command response */
|
||||
#define FTP_BUFFER_ALLOCSIZE 160
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef __FTPLISTPARSER_H_
|
||||
#define __FTPLISTPARSER_H_
|
||||
#ifndef HEADER_CURL_FTPLISTPARSER_H
|
||||
#define HEADER_CURL_FTPLISTPARSER_H
|
||||
/***************************************************************************
|
||||
* _ _ ____ _
|
||||
* Project ___| | | | _ \| |
|
||||
@ -35,4 +35,4 @@ struct ftp_parselist_data *ftp_parselist_data_alloc(void);
|
||||
|
||||
void ftp_parselist_data_free(struct ftp_parselist_data **pl_data);
|
||||
|
||||
#endif /* __FTPLISTPARSER_H_ */
|
||||
#endif /* HEADER_CURL_FTPLISTPARSER_H */
|
||||
|
@ -28,6 +28,13 @@
|
||||
|
||||
#include "curl_hmac.h"
|
||||
|
||||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "curl_memory.h"
|
||||
/* The last #include file should be: */
|
||||
#include "memdebug.h"
|
||||
|
||||
/*
|
||||
* Generic HMAC algorithm.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef __POLARSSL_H
|
||||
#define __POLARSSL_H
|
||||
#ifndef HEADER_CURL_POLARSSL_H
|
||||
#define HEADER_CURL_POLARSSL_H
|
||||
/***************************************************************************
|
||||
* _ _ ____ _
|
||||
* Project ___| | | | _ \| |
|
||||
@ -54,4 +54,4 @@ int Curl_polarssl_shutdown(struct connectdata *conn, int sockindex);
|
||||
#define curlssl_data_pending(x,y) (x=x, y=y, 0)
|
||||
|
||||
#endif /* USE_POLARSSL */
|
||||
#endif
|
||||
#endif /* HEADER_CURL_POLARSSL_H */
|
||||
|
@ -25,6 +25,9 @@
|
||||
#include "llist.h"
|
||||
#include "fileinfo.h"
|
||||
|
||||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "curl_memory.h"
|
||||
/* The last #include file should be: */
|
||||
#include "memdebug.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef __WILDCARD_H
|
||||
#define __WILDCARD_H
|
||||
#ifndef HEADER_CURL_WILDCARD_H
|
||||
#define HEADER_CURL_WILDCARD_H
|
||||
/***************************************************************************
|
||||
* _ _ ____ _
|
||||
* Project ___| | | | _ \| |
|
||||
@ -55,4 +55,4 @@ void Curl_wildcard_dtor(struct WildcardData *wc);
|
||||
|
||||
struct SessionHandle;
|
||||
|
||||
#endif /* __WILDCARD_H */
|
||||
#endif /* HEADER_CURL_WILDCARD_H */
|
||||
|
Loading…
Reference in New Issue
Block a user