mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:53:32 +03:00
build: make use of 76 lib/*.h renamed files
76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
This commit is contained in:
parent
ec691ca34b
commit
f871de0064
322 changed files with 1346 additions and 1271 deletions
|
|
@ -6,7 +6,7 @@
|
|||
# | (__| |_| | _ <| |___
|
||||
# \___|\___/|_| \_\_____|
|
||||
#
|
||||
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
# Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
#
|
||||
# This software is licensed as described in the file COPYING, which
|
||||
# you should have received as part of this distribution. The terms
|
||||
|
|
@ -45,7 +45,7 @@ require "getpart.pm";
|
|||
# Boilerplate code for test tool
|
||||
my $head =
|
||||
'#include "test.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function(SETUP_TEST TEST_NAME) # ARGN are the files in the test
|
|||
string(TOUPPER ${TEST_NAME} UPPER_TEST_NAME)
|
||||
|
||||
include_directories(
|
||||
${CURL_SOURCE_DIR}/lib # To be able to reach "setup_once.h"
|
||||
${CURL_SOURCE_DIR}/lib # To be able to reach "curl_setup_once.h"
|
||||
${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h"
|
||||
${CURL_BINARY_DIR}/include # To be able to reach "curl/curlbuild.h"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ TESTUTIL = testutil.c testutil.h
|
|||
TSTTRACE = testtrace.c testtrace.h
|
||||
|
||||
# files used only in some libcurl test programs
|
||||
WARNLESS = $(top_srcdir)/lib/warnless.c $(top_srcdir)/lib/warnless.h
|
||||
WARNLESS = $(top_srcdir)/lib/warnless.c $(top_srcdir)/lib/curl_warnless.h
|
||||
|
||||
# these files are used in every single test program below
|
||||
SUPPORTFILES = first.c test.h
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
* KIND, either express or implied.
|
||||
*
|
||||
***************************************************************************/
|
||||
#include "setup.h"
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "curl_gethostname.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#ifdef CURLDEBUG
|
||||
# define MEMDEBUG_NODEFINES
|
||||
# include "memdebug.h"
|
||||
# include "curl_memdebug.h"
|
||||
#endif
|
||||
|
||||
int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#include "test.h"
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 30 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@
|
|||
#endif
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
#include "test.h"
|
||||
|
||||
#include "testtrace.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#ifdef LIB585
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#include "test.h"
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#include "test.h"
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#include "test.h"
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/*
|
||||
* This example shows an FTP upload, with a rename of the file just after
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static const char *HOSTHEADER = "Host: www.host.foo.com";
|
||||
static const char *JAR = "log/jar506";
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#include "test.h"
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static char data[]="this is what we post to the silly web server\n";
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static const char *post[]={
|
||||
"one",
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/* Test case code based on source in a bug report filed by James Bursa on
|
||||
28 Apr 2004 */
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static const char * const dates[]={
|
||||
"Sun, 06 Nov 1994 08:49:37 GMT",
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@
|
|||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#ifndef FD_SETSIZE
|
||||
#error "this test requires FD_SETSIZE"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#include "test.h"
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@
|
|||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#if !defined(HAVE_POLL_FINE) && \
|
||||
!defined(USE_WINSOCK) && \
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@
|
|||
#endif
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/*
|
||||
* Two FTP uploads, the second with no content sent.
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/*
|
||||
* FTP get with NOBODY but no HEADER
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static char teststring[] =
|
||||
#ifdef CURL_DOES_CONVERSIONS
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#ifdef CURL_DOES_CONVERSIONS
|
||||
/* ASCII representation with escape sequences for non-ASCII platforms */
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
|
||||
#include "test.h"
|
||||
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
struct data {
|
||||
char trace_ascii; /* 1 or 0 */
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define POSTLEN 40960
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static char data[]=
|
||||
#ifdef CURL_DOES_CONVERSIONS
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@
|
|||
|
||||
#include "test.h"
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/* For Windows, mainly (may be moved in a config file?) */
|
||||
#ifndef STDIN_FILENO
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
|
||||
#if (CURL_SIZEOF_CURL_OFF_T > CURL_SIZEOF_LONG)
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#include "test.h"
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/*
|
||||
* From "KNOWN_BUGS" April 2009:
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/*
|
||||
* Test a simple OPTIONS request with a custom header
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/* build request url */
|
||||
static char *suburl(const char *base, int i)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/* build request url */
|
||||
static char *suburl(const char *base, int i)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/* build request url */
|
||||
static char *suburl(const char *base, int i)
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@
|
|||
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define RTP_PKT_CHANNEL(p) ((int)((unsigned char)((p)[1])))
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/* build request url */
|
||||
static char *suburl(const char *base, int i)
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
#include "testtrace.h"
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static int new_fnmatch(const char *pattern, const char *string)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
#include "test.h"
|
||||
|
||||
#include "testutil.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
typedef struct {
|
||||
int remains;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/* The size of data should be kept below MAX_INITIAL_POST_SIZE! */
|
||||
static char data[]="this is a short string.\n";
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static const char * const post[]={
|
||||
"one",
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define THREADS 2
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
- Start the request
|
||||
*/
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@
|
|||
#endif
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 5 * 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "test.h"
|
||||
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static int progress_callback(void *clientp, double dltotal,
|
||||
double dlnow, double ultotal, double ulnow)
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
*/
|
||||
|
||||
#include "test.h"
|
||||
#include "strequal.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_strequal.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static CURLcode send_request(CURL *curl, const char *url, int seq,
|
||||
long auth_scheme, const char *userpwd)
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@
|
|||
#include <assert.h>
|
||||
|
||||
#include "testutil.h"
|
||||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_warnless.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define TEST_HANG_TIMEOUT 5 * 1000
|
||||
#define MAX_EASY_HANDLES 3
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
* KIND, either express or implied.
|
||||
*
|
||||
***************************************************************************/
|
||||
#include "setup.h"
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "sethostname.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -20,14 +20,14 @@
|
|||
*
|
||||
***************************************************************************/
|
||||
|
||||
/* Now include the setup.h file from libcurl's private libdir (the source
|
||||
version, but that might include "curl_config.h" from the build dir so we
|
||||
need both of them in the include path), so that we get good in-depth
|
||||
knowledge about the system we're building this on */
|
||||
/* Now include the curl_setup.h file from libcurl's private libdir (the
|
||||
source version, but that might include "curl_config.h" from the build
|
||||
dir so we need both of them in the include path), so that we get good
|
||||
in-depth knowledge about the system we're building this on */
|
||||
|
||||
#define CURL_NO_OLDIES
|
||||
|
||||
#include "setup.h"
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
|
|
@ -37,7 +37,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef TPF
|
||||
# include "select.h"
|
||||
# include "curl_select.h"
|
||||
#endif
|
||||
|
||||
#define test_setopt(A,B,C) \
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#include "testutil.h"
|
||||
#include "testtrace.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
struct libtest_trace_cfg libtest_debug_config;
|
||||
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@
|
|||
* KIND, either express or implied.
|
||||
*
|
||||
***************************************************************************/
|
||||
#include "setup.h"
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "testutil.h"
|
||||
#include "memdebug.h"
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#if defined(WIN32) && !defined(MSDOS)
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
* KIND, either express or implied.
|
||||
*
|
||||
***************************************************************************/
|
||||
#include "setup.h"
|
||||
#include "curl_setup.h"
|
||||
|
||||
struct timeval tutil_tvnow(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ sub scanfile {
|
|||
if($_ =~ /(free|alloc|strdup)\(/) {
|
||||
$memfunc++;
|
||||
}
|
||||
elsif($_ =~ /^ *# *include \"memdebug.h\"/) {
|
||||
elsif($_ =~ /^ *# *include \"curl_memdebug.h\"/) {
|
||||
$memdebug++;
|
||||
}
|
||||
elsif($_ =~ /^ *# *include \"curl_memory.h\"/) {
|
||||
|
|
@ -70,7 +70,7 @@ sub scanfile {
|
|||
}
|
||||
else {
|
||||
if(!$memdebug) {
|
||||
print STDERR "$file doesn't include \"memdebug.h\"!\n";
|
||||
print STDERR "$file doesn't include \"curl_memdebug.h\"!\n";
|
||||
}
|
||||
if(!$curlmem) {
|
||||
print STDERR "$file doesn't include \"curl_memory.h\"!\n";
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ function(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test
|
|||
string(TOUPPER ${TEST_NAME} UPPER_TEST_NAME)
|
||||
|
||||
include_directories(
|
||||
${CURL_SOURCE_DIR}/lib # To be able to reach "setup_once.h"
|
||||
${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h"
|
||||
${CURL_SOURCE_DIR}/lib # To be able to reach "curl_setup_once.h"
|
||||
${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h"
|
||||
${CURL_BINARY_DIR}/include # To be able to reach "curl/curlbuild.h"
|
||||
)
|
||||
if(CURL_USE_ARES)
|
||||
|
|
@ -67,5 +67,5 @@ endforeach()
|
|||
# SETUP_EXECUTABLE(resolve resolve.c util.c util.h ${useful})
|
||||
# SETUP_EXECUTABLE(sockfilt sockfilt.c util.c util.h ${useful} ${CURL_SOURCE_DIR}/lib/inet_pton.c)
|
||||
# SETUP_EXECUTABLE(getpart testpart.c ${useful})
|
||||
# SETUP_EXECUTABLE(tftpd tftpd.c util.c util.h ${useful} tftp.h)
|
||||
# SETUP_EXECUTABLE(tftpd tftpd.c util.c util.h ${useful} server_tftp.h)
|
||||
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ CURLX_SRCS = \
|
|||
|
||||
CURLX_HDRS = \
|
||||
$(top_srcdir)/lib/curlx.h \
|
||||
$(top_srcdir)/lib/nonblock.h \
|
||||
$(top_srcdir)/lib/strequal.h \
|
||||
$(top_srcdir)/lib/strtoofft.h \
|
||||
$(top_srcdir)/lib/timeval.h \
|
||||
$(top_srcdir)/lib/warnless.h
|
||||
$(top_srcdir)/lib/curl_nonblock.h \
|
||||
$(top_srcdir)/lib/curl_strequal.h \
|
||||
$(top_srcdir)/lib/curl_strtoofft.h \
|
||||
$(top_srcdir)/lib/curl_timeval.h \
|
||||
$(top_srcdir)/lib/curl_warnless.h
|
||||
|
||||
USEFUL = \
|
||||
getpart.c \
|
||||
|
|
@ -23,7 +23,7 @@ USEFUL = \
|
|||
$(top_srcdir)/lib/base64.c \
|
||||
$(top_srcdir)/lib/curl_base64.h \
|
||||
$(top_srcdir)/lib/memdebug.c \
|
||||
$(top_srcdir)/lib/memdebug.h
|
||||
$(top_srcdir)/lib/curl_memdebug.h
|
||||
|
||||
UTIL = \
|
||||
util.c \
|
||||
|
|
@ -62,7 +62,7 @@ sws_CFLAGS = $(AM_CFLAGS)
|
|||
tftpd_SOURCES = $(CURLX_SRCS) $(CURLX_HDRS) $(USEFUL) $(UTIL) \
|
||||
server_sockaddr.h \
|
||||
tftpd.c \
|
||||
tftp.h
|
||||
server_tftp.h
|
||||
tftpd_LDADD = @CURL_NETWORK_AND_TIME_LIBS@
|
||||
tftpd_CFLAGS = $(AM_CFLAGS)
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@
|
|||
#include "getpart.h"
|
||||
#include "util.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
/* include curl_memdebug.h last */
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#ifndef DEFAULT_LOGFILE
|
||||
#define DEFAULT_LOGFILE "log/fake_ntlm.log"
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ struct SessionHandle {
|
|||
#include "curl_base64.h"
|
||||
#include "curl_memory.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
/* include curl_memdebug.h last */
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define EAT_SPACE(p) while(*(p) && ISSPACE(*(p))) (p)++
|
||||
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@
|
|||
#include "curlx.h" /* from the private lib dir */
|
||||
#include "util.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
/* include curl_memdebug.h last */
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
static bool use_ipv6 = FALSE;
|
||||
static const char *ipv_inuse = "IPv4";
|
||||
|
|
@ -136,7 +136,7 @@ int main(int argc, char *argv[])
|
|||
hints.ai_socktype = SOCK_STREAM;
|
||||
hints.ai_flags = AI_CANONNAME;
|
||||
/* Use parenthesis around function to stop it from being replaced by
|
||||
the macro in memdebug.h */
|
||||
the macro in curl_memdebug.h */
|
||||
rc = (getaddrinfo)(host, "80", &hints, &ai);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@
|
|||
#include "util.h"
|
||||
#include "server_sockaddr.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
/* include curl_memdebug.h last */
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#ifdef ENABLE_IPV6
|
||||
static bool use_ipv6 = FALSE;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#define CURL_NO_OLDIES
|
||||
|
||||
#include "setup.h" /* portability help from the lib directory */
|
||||
#include "curl_setup.h" /* portability help from the lib directory */
|
||||
|
||||
#endif /* HEADER_CURL_SERVER_SETUP_H */
|
||||
|
||||
|
|
|
|||
|
|
@ -98,12 +98,12 @@
|
|||
versions instead */
|
||||
#include "curlx.h" /* from the private lib dir */
|
||||
#include "getpart.h"
|
||||
#include "inet_pton.h"
|
||||
#include "curl_inet_pton.h"
|
||||
#include "util.h"
|
||||
#include "server_sockaddr.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
/* include curl_memdebug.h last */
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#define DEFAULT_PORT 8999
|
||||
|
||||
|
|
|
|||
|
|
@ -49,12 +49,12 @@
|
|||
versions instead */
|
||||
#include "curlx.h" /* from the private lib dir */
|
||||
#include "getpart.h"
|
||||
#include "inet_pton.h"
|
||||
#include "curl_inet_pton.h"
|
||||
#include "util.h"
|
||||
#include "server_sockaddr.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
/* include curl_memdebug.h last */
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
#ifdef ENABLE_IPV6
|
||||
static bool use_ipv6 = FALSE;
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@
|
|||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
/* include curl_memdebug.h last */
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
#ifdef HAVE_ARPA_TFTP_H
|
||||
#include <arpa/tftp.h>
|
||||
#else
|
||||
#include "tftp.h"
|
||||
#include "server_tftp.h"
|
||||
#endif
|
||||
#ifdef HAVE_NETDB_H
|
||||
#include <netdb.h>
|
||||
|
|
@ -91,8 +91,8 @@
|
|||
#include "util.h"
|
||||
#include "server_sockaddr.h"
|
||||
|
||||
/* include memdebug.h last */
|
||||
#include "memdebug.h"
|
||||
/* include curl_memdebug.h last */
|
||||
#include "curl_memdebug.h"
|
||||
|
||||
/*****************************************************************************
|
||||
* STRUCT DECLARATIONS AND DEFINES *
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
#include "curlx.h" /* from the private lib dir */
|
||||
#include "getpart.h"
|
||||
#include "util.h"
|
||||
#include "timeval.h"
|
||||
#include "curl_timeval.h"
|
||||
|
||||
#if defined(ENABLE_IPV6) && defined(__MINGW32__)
|
||||
const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "curlcheck.h"
|
||||
|
||||
#include "llist.h"
|
||||
#include "curl_llist.h"
|
||||
|
||||
static struct curl_llist *llist;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
***************************************************************************/
|
||||
#include "curlcheck.h"
|
||||
|
||||
#include "strequal.h"
|
||||
#include "curl_strequal.h"
|
||||
|
||||
static CURLcode unit_setup( void ) {return CURLE_OK;}
|
||||
static void unit_stop( void ) {}
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@
|
|||
***************************************************************************/
|
||||
#include "curlcheck.h"
|
||||
|
||||
#include "urldata.h"
|
||||
#include "url.h" /* for Curl_safefree */
|
||||
#include "curl_urldata.h"
|
||||
#include "curl_url.h"
|
||||
#include "curl_base64.h"
|
||||
#include "memdebug.h" /* LAST include file */
|
||||
#include "curl_memdebug.h" /* LAST include file */
|
||||
|
||||
static struct SessionHandle *data;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
***************************************************************************/
|
||||
#include "curlcheck.h"
|
||||
|
||||
#include "urldata.h"
|
||||
#include "connect.h"
|
||||
#include "memdebug.h" /* LAST include file */
|
||||
#include "curl_urldata.h"
|
||||
#include "curl_connect.h"
|
||||
#include "curl_memdebug.h" /* LAST include file */
|
||||
|
||||
static struct SessionHandle *data;
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue