unit tests: adjust header inclusion order

Additionally, prevent multiple inclusions of curl_config.h
This commit is contained in:
Yang Tse 2011-05-21 13:22:11 +02:00
parent 3f6ffcd26d
commit 02f3ff3b0a
7 changed files with 8 additions and 26 deletions

View File

@ -19,12 +19,9 @@
* KIND, either express or implied.
*
***************************************************************************/
#include <stdlib.h>
#include "curl_config.h"
#include "setup.h"
#include "curlcheck.h"
#include "llist.h"
#include "curlcheck.h"
struct curl_llist *llist;

View File

@ -19,12 +19,9 @@
* KIND, either express or implied.
*
***************************************************************************/
#include <stdlib.h>
#include "curl_config.h"
#include "setup.h"
#include "curlcheck.h"
#include "strequal.h"
#include "curlcheck.h"
static CURLcode unit_setup( void ) {return CURLE_OK;}
static void unit_stop( void ) {}

View File

@ -19,14 +19,11 @@
* KIND, either express or implied.
*
***************************************************************************/
#include <stdlib.h>
#include "curl_config.h"
#include "setup.h"
#include "curlcheck.h"
#include "urldata.h"
#include "url.h" /* for Curl_safefree */
#include "curl_base64.h"
#include "curlcheck.h"
#include "memdebug.h" /* LAST include file */
static struct SessionHandle *data;

View File

@ -19,13 +19,10 @@
* KIND, either express or implied.
*
***************************************************************************/
#include <stdlib.h>
#include "curl_config.h"
#include "setup.h"
#include "curlcheck.h"
#include "urldata.h"
#include "connect.h"
#include "curlcheck.h"
#include "memdebug.h" /* LAST include file */
static struct SessionHandle *data;

View File

@ -19,12 +19,9 @@
* KIND, either express or implied.
*
***************************************************************************/
#include <stdlib.h>
#include "curl_config.h"
#include "setup.h"
#include "curlcheck.h"
#include "netrc.h"
#include "curlcheck.h"
char login[LOGINSIZE];
char password[PASSWORDSIZE];

View File

@ -19,11 +19,8 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include "curlcheck.h"
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
@ -39,7 +36,6 @@
#include "hash.h"
#include "hostip.h"
#include "curlcheck.h"
#include "curl_memory.h"
#include "memdebug.h" /* LAST include file */

View File

@ -19,9 +19,10 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "curl_fnmatch.h"
#include "curlcheck.h"
#include "curl_fnmatch.h"
#define MATCH CURL_FNMATCH_MATCH
#define NOMATCH CURL_FNMATCH_NOMATCH
#define RE_ERR CURL_FNMATCH_FAIL