Skip to content

Commit c18609f

Browse files
author
Taiju Yamada
committed
update curl header
1 parent 7395480 commit c18609f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+11373
-4135
lines changed

msvc_binaries/amd64/vc100/include/curl/curl.h

Lines changed: 1060 additions & 391 deletions
Large diffs are not rendered by default.

msvc_binaries/amd64/vc100/include/curl/curlver.h

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
#ifndef __CURL_CURLVER_H
2-
#define __CURL_CURLVER_H
1+
#ifndef CURLINC_CURLVER_H
2+
#define CURLINC_CURLVER_H
33
/***************************************************************************
44
* _ _ ____ _
55
* Project ___| | | | _ \| |
66
* / __| | | | |_) | |
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2012, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
14-
* are also available at http://curl.haxx.se/docs/copyright.html.
14+
* are also available at https://curl.haxx.se/docs/copyright.html.
1515
*
1616
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
1717
* copies of the Software, and permit persons to whom the Software is
@@ -26,17 +26,17 @@
2626
a script at release-time. This was made its own header file in 7.11.2 */
2727

2828
/* This is the global package copyright */
29-
#define LIBCURL_COPYRIGHT "1996 - 2012 Daniel Stenberg, <[email protected]>."
29+
#define LIBCURL_COPYRIGHT "1996 - 2020 Daniel Stenberg, <[email protected]>."
3030

3131
/* This is the version number of the libcurl package from which this header
3232
file origins: */
33-
#define LIBCURL_VERSION "7.28.1"
33+
#define LIBCURL_VERSION "7.70.0"
3434

3535
/* The numeric version number is also available "in parts" by using these
3636
defines: */
3737
#define LIBCURL_VERSION_MAJOR 7
38-
#define LIBCURL_VERSION_MINOR 28
39-
#define LIBCURL_VERSION_PATCH 1
38+
#define LIBCURL_VERSION_MINOR 70
39+
#define LIBCURL_VERSION_PATCH 0
4040

4141
/* This is the numeric version of the libcurl version number, meant for easier
4242
parsing and comparions by programs. The LIBCURL_VERSION_NUM define will
@@ -52,18 +52,26 @@
5252
This 6-digit (24 bits) hexadecimal number does not show pre-release number,
5353
and it is always a greater number in a more recent release. It makes
5454
comparisons with greater than and less than work.
55+
56+
Note: This define is the full hex number and _does not_ use the
57+
CURL_VERSION_BITS() macro since curl's own configure script greps for it
58+
and needs it to contain the full number.
5559
*/
56-
#define LIBCURL_VERSION_NUM 0x071c01
60+
#define LIBCURL_VERSION_NUM 0x074600
5761

5862
/*
5963
* This is the date and time when the full source package was created. The
6064
* timestamp is not stored in git, as the timestamp is properly set in the
6165
* tarballs by the maketgz script.
6266
*
63-
* The format of the date should follow this template:
67+
* The format of the date follows this template:
6468
*
65-
* "Mon Feb 12 11:35:33 UTC 2007"
69+
* "2007-11-23"
6670
*/
67-
#define LIBCURL_TIMESTAMP "Tue Nov 20 07:12:05 UTC 2012"
71+
#define LIBCURL_TIMESTAMP "2020-04-29"
72+
73+
#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z))
74+
#define CURL_AT_LEAST_VERSION(x,y,z) \
75+
(LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z))
6876

69-
#endif /* __CURL_CURLVER_H */
77+
#endif /* CURLINC_CURLVER_H */

msvc_binaries/amd64/vc100/include/curl/easy.h

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
#ifndef __CURL_EASY_H
2-
#define __CURL_EASY_H
1+
#ifndef CURLINC_EASY_H
2+
#define CURLINC_EASY_H
33
/***************************************************************************
44
* _ _ ____ _
55
* Project ___| | | | _ \| |
66
* / __| | | | |_) | |
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2008, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2019, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
14-
* are also available at http://curl.haxx.se/docs/copyright.html.
14+
* are also available at https://curl.haxx.se/docs/copyright.html.
1515
*
1616
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
1717
* copies of the Software, and permit persons to whom the Software is
@@ -58,7 +58,7 @@ CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...);
5858
* curl_easy_duphandle() for each new thread to avoid a series of identical
5959
* curl_easy_setopt() invokes in every thread.
6060
*/
61-
CURL_EXTERN CURL* curl_easy_duphandle(CURL *curl);
61+
CURL_EXTERN CURL *curl_easy_duphandle(CURL *curl);
6262

6363
/*
6464
* NAME curl_easy_reset()
@@ -95,6 +95,16 @@ CURL_EXTERN CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen,
9595
CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer,
9696
size_t buflen, size_t *n);
9797

98+
99+
/*
100+
* NAME curl_easy_upkeep()
101+
*
102+
* DESCRIPTION
103+
*
104+
* Performs connection upkeep for the given session handle.
105+
*/
106+
CURL_EXTERN CURLcode curl_easy_upkeep(CURL *curl);
107+
98108
#ifdef __cplusplus
99109
}
100110
#endif
Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
#ifndef __CURL_MPRINTF_H
2-
#define __CURL_MPRINTF_H
1+
#ifndef CURLINC_MPRINTF_H
2+
#define CURLINC_MPRINTF_H
33
/***************************************************************************
44
* _ _ ____ _
55
* Project ___| | | | _ \| |
66
* / __| | | | |_) | |
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2006, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2019, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
14-
* are also available at http://curl.haxx.se/docs/copyright.html.
14+
* are also available at https://curl.haxx.se/docs/copyright.html.
1515
*
1616
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
1717
* copies of the Software, and permit persons to whom the Software is
@@ -24,8 +24,7 @@
2424

2525
#include <stdarg.h>
2626
#include <stdio.h> /* needed for FILE */
27-
28-
#include "curl.h"
27+
#include "curl.h" /* for CURL_EXTERN */
2928

3029
#ifdef __cplusplus
3130
extern "C" {
@@ -44,38 +43,8 @@ CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength,
4443
CURL_EXTERN char *curl_maprintf(const char *format, ...);
4544
CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
4645

47-
#ifdef _MPRINTF_REPLACE
48-
# undef printf
49-
# undef fprintf
50-
# undef sprintf
51-
# undef vsprintf
52-
# undef snprintf
53-
# undef vprintf
54-
# undef vfprintf
55-
# undef vsnprintf
56-
# undef aprintf
57-
# undef vaprintf
58-
# define printf curl_mprintf
59-
# define fprintf curl_mfprintf
60-
#ifdef CURLDEBUG
61-
/* When built with CURLDEBUG we define away the sprintf() functions since we
62-
don't want internal code to be using them */
63-
# define sprintf sprintf_was_used
64-
# define vsprintf vsprintf_was_used
65-
#else
66-
# define sprintf curl_msprintf
67-
# define vsprintf curl_mvsprintf
68-
#endif
69-
# define snprintf curl_msnprintf
70-
# define vprintf curl_mvprintf
71-
# define vfprintf curl_mvfprintf
72-
# define vsnprintf curl_mvsnprintf
73-
# define aprintf curl_maprintf
74-
# define vaprintf curl_mvaprintf
75-
#endif
76-
7746
#ifdef __cplusplus
7847
}
7948
#endif
8049

81-
#endif /* __CURL_MPRINTF_H */
50+
#endif /* CURLINC_MPRINTF_H */

0 commit comments

Comments
 (0)