Permalink
Browse files

include libcurl standard internal headers

  • Loading branch information...
1 parent df06182 commit 077125e4a2a77384c88b51ffd88c985cabf95193 @yangtse yangtse committed Jun 2, 2010
Showing with 54 additions and 17 deletions.
  1. +7 −0 lib/curl_fnmatch.c
  2. +1 −1 lib/curl_hmac.h
  3. +7 −0 lib/curl_rtmp.c
  4. +3 −4 lib/curl_rtmp.h
  5. +7 −0 lib/fileinfo.c
  6. +3 −3 lib/fileinfo.h
  7. +7 −0 lib/ftplistparser.c
  8. +3 −3 lib/ftplistparser.h
  9. +7 −0 lib/hmac.c
  10. +3 −3 lib/polarssl.h
  11. +3 −0 lib/wildcard.c
  12. +3 −3 lib/wildcard.h
View
@@ -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)
View
@@ -64,4 +64,4 @@ int Curl_HMAC_final(HMAC_context * context, unsigned char * result);
#endif
-#endif
+#endif /* HEADER_CURL_HMAC_H */
View
@@ -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
View
@@ -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 */
View
@@ -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));
View
@@ -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 */
View
@@ -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
View
@@ -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 */
View
@@ -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.
*
View
@@ -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 */
View
@@ -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"
View
@@ -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 */

0 comments on commit 077125e

Please sign in to comment.