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 bc17ed6..0725ce2 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 4c5a5a6..9b65c8c 100644 (file)
@@ -64,4 +64,4 @@ int Curl_HMAC_final(HMAC_context * context, unsigned char * result);
 
 #endif
 
-#endif
+#endif /* HEADER_CURL_HMAC_H */
index 21a67f5..df30dc1 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 06555ff..4a9e9e6 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 c1c1127..f5dbfce 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 b040ef4..b0e5e59 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 95adfe6..65addfa 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 20d75ef..5a16abf 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 f593976..0c01d11 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 be90598..964af17 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 186c515..0fe153c 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 1a1c1bb..8f732d1 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 */