Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 119 lines (103 sloc) 3.68 kB
913e157 @bagder New header file that offers easy access to the curlx_ functions for a…
authored
1 #ifndef __CURLX_H
2 #define __CURLX_H
3 /***************************************************************************
5d8b526 @bagder delete trailing whitespace
authored
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
913e157 @bagder New header file that offers easy access to the curlx_ functions for a…
authored
8 * \___|\___/|_| \_\_____|
9 *
a579d67 @bagder - Pascal Terjan filed bug #2154627
authored
10 * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
913e157 @bagder New header file that offers easy access to the curlx_ functions for a…
authored
11 *
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
14 * are also available at http://curl.haxx.se/docs/copyright.html.
5d8b526 @bagder delete trailing whitespace
authored
15 *
913e157 @bagder New header file that offers easy access to the curlx_ functions for a…
authored
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 ***************************************************************************/
24
25 /*
26 * Defines protos and includes all header files that provide the curlx_*
27 * functions. The curlx_* functions are not part of the libcurl API, but are
28 * stand-alone functions whose sources can be built and linked by apps if need
29 * be.
30 */
31
32 #include <curl/mprintf.h>
33 /* this is still a public header file that provides the curl_mprintf()
34 functions while they still are offered publicly. They will be made library-
35 private one day */
36
37 #include "strequal.h"
38 /* "strequal.h" provides the strequal protos */
39
40 #include "strtoofft.h"
41 /* "strtoofft.h" provides this function: curlx_strtoofft(), returns a
42 curl_off_t number from a given string.
43 */
44
45 #include "timeval.h"
46 /*
47 "timeval.h" sets up a 'struct timeval' even for platforms that otherwise
48 don't have one and has protos for these functions:
49
50 curlx_tvnow()
51 curlx_tvdiff()
52 curlx_tvdiff_secs()
53 */
54
d709cb2 @bagder - Eric Wong introduced curlx_nonblock() that the curl tool now (re-)u…
authored
55 #include "nonblock.h"
56 /* "nonblock.h" provides curlx_nonblock() */
57
439f62b @yangtse convert Curl_ultous() and Curl_ultouc() functions to curlx_ultous() and
yangtse authored
58 #include "warnless.h"
59 /* "warnless.h" provides functions:
60
61 curlx_ultous()
62 curlx_ultouc()
bcd1c7c @yangtse fix compiler warning
yangtse authored
63 curlx_uztosi()
439f62b @yangtse convert Curl_ultous() and Curl_ultouc() functions to curlx_ultous() and
yangtse authored
64 */
65
913e157 @bagder New header file that offers easy access to the curlx_ functions for a…
authored
66 /* Now setup curlx_ * names for the functions that are to become curlx_ and
67 be removed from a future libcurl official API:
68 curlx_getenv
69 curlx_mprintf (and its variations)
70 curlx_strequal
71 curlx_strnequal
72
73 */
74
75 #define curlx_getenv curl_getenv
76 #define curlx_strequal curl_strequal
77 #define curlx_strnequal curl_strnequal
9d16b40 @bagder Renamed Curl_ascii_equal to Curl_raw_equal and bugfixed the my_touppe…
authored
78 #define curlx_raw_equal Curl_raw_equal
913e157 @bagder New header file that offers easy access to the curlx_ functions for a…
authored
79 #define curlx_mvsnprintf curl_mvsnprintf
80 #define curlx_msnprintf curl_msnprintf
81 #define curlx_maprintf curl_maprintf
82 #define curlx_mvaprintf curl_mvaprintf
83 #define curlx_msprintf curl_msprintf
84 #define curlx_mprintf curl_mprintf
85 #define curlx_mfprintf curl_mfprintf
86 #define curlx_mvsprintf curl_mvsprintf
87 #define curlx_mvprintf curl_mvprintf
88 #define curlx_mvfprintf curl_mvfprintf
89
90 #ifdef ENABLE_CURLX_PRINTF
91 /* If this define is set, we define all "standard" printf() functions to use
f37d681 @bradh Typo fixes.
bradh authored
92 the curlx_* version instead. It makes the source code transparent and
2ddb9d5 Undefine symbols before redefining them.
Gisle Vanem authored
93 easier to understand/patch. Undefine them first in case _MPRINTF_REPLACE
94 is set. */
95 # undef printf
96 # undef fprintf
97 # undef sprintf
98 # undef snprintf
99 # undef vprintf
100 # undef vfprintf
101 # undef vsprintf
102 # undef vsnprintf
103 # undef aprintf
104 # undef vaprintf
105
913e157 @bagder New header file that offers easy access to the curlx_ functions for a…
authored
106 # define printf curlx_mprintf
107 # define fprintf curlx_mfprintf
108 # define sprintf curlx_msprintf
109 # define snprintf curlx_msnprintf
110 # define vprintf curlx_mvprintf
111 # define vfprintf curlx_mvfprintf
112 # define vsprintf curlx_mvsprintf
113 # define vsnprintf curlx_mvsnprintf
114 # define aprintf curlx_maprintf
115 # define vaprintf curlx_mvaprintf
116 #endif /* ENABLE_CURLX_PRINTF */
117
118 #endif /* __CURLX_H */
Something went wrong with that request. Please try again.