]> granicus.if.org Git - curl/commitdiff
include libcurl standard internal headers
authorYang Tse <yangsita@gmail.com>
Wed, 2 Jun 2010 12:13:02 +0000 (14:13 +0200)
committerYang Tse <yangsita@gmail.com>
Wed, 2 Jun 2010 12:13:02 +0000 (14:13 +0200)
12 files changed:
lib/curl_fnmatch.c
lib/curl_hmac.h
lib/curl_rtmp.c
lib/curl_rtmp.h
lib/fileinfo.c
lib/fileinfo.h
lib/ftplistparser.c
lib/ftplistparser.h
lib/hmac.c
lib/polarssl.h
lib/wildcard.c
lib/wildcard.h

index bc17ed673ee798c501f865a27b86b000797d8b21..0725ce2bd65423524062953b4b29155121190da1 100644 (file)
 
 #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)
 
index 4c5a5a6c12828d83a1350869453540c66836ccb7..9b65c8c2a1bd569db79e7e4807fc4788f11f7351 100644 (file)
@@ -64,4 +64,4 @@ int Curl_HMAC_final(HMAC_context * context, unsigned char * result);
 
 #endif
 
-#endif
+#endif /* HEADER_CURL_HMAC_H */
index 21a67f5cef07b03563fd750581fdde8c933de7bd..df30dc1f6ba72c311448d105fdc4a05d313019d7 100644 (file)
 #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
index 06555ffceac962055d775fd619535a88f79b6fb7..4a9e9e60c218aaaa096906f7cbb1191fdaab67ed 100644 (file)
@@ -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 */
index c1c11274322947fb199ae419a9b91ca3b67e0559..f5dbfce4b66f0b8870c07618198475acc368f96c 100644 (file)
 #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));
index b040ef4ce46cc559de1fa4720c19286cb15ce476..b0e5e59e1285e42caa9d4873bec3129a8e4f654b 100644 (file)
@@ -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 */
index 95adfe68de2d6d40af85aadfef563df4e026b6c9..65addfaa1df0460a7a2cc1dec1b8d959bbd7ac8e 100644 (file)
 #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
 
index 20d75efa2175d436bf512efc8079a47b3cebd03b..5a16abf6a16dd6c5400630c6d0ea8566b452ee7c 100644 (file)
@@ -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 */
index f59397653df31f1ae6b530a08398035b6dfc9239..0c01d1187a641ea461e674e21e55eed3d8a79d5f 100644 (file)
 
 #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.
  *
index be905987e884669c1c4036d2d4f7bc91ec2b380d..964af1728c5a6006718721d1841df7093230a4bd 100644 (file)
@@ -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 */
index 186c515c527c66f5a36656b8a9ce3d5d79678a81..0fe153c5fe7a50badfbfb3436a8b4fb63afbd859 100644 (file)
@@ -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"
index 1a1c1bb0c25032ee5faee031b06b0f167d65b288..8f732d106ba9aebce0f93feac68007d22ec47e74 100644 (file)
@@ -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 */