Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 109 lines (96 sloc) 3.51 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 * $Id$
24 ***************************************************************************/
25
26 /*
27 * Defines protos and includes all header files that provide the curlx_*
28 * functions. The curlx_* functions are not part of the libcurl API, but are
29 * stand-alone functions whose sources can be built and linked by apps if need
30 * be.
31 */
32
33 #include <curl/mprintf.h>
34 /* this is still a public header file that provides the curl_mprintf()
35 functions while they still are offered publicly. They will be made library-
36 private one day */
37
38 #include "strequal.h"
39 /* "strequal.h" provides the strequal protos */
40
41 #include "strtoofft.h"
42 /* "strtoofft.h" provides this function: curlx_strtoofft(), returns a
43 curl_off_t number from a given string.
44 */
45
46 #include "timeval.h"
47 /*
48 "timeval.h" sets up a 'struct timeval' even for platforms that otherwise
49 don't have one and has protos for these functions:
50
51 curlx_tvnow()
52 curlx_tvdiff()
53 curlx_tvdiff_secs()
54 */
55
56 /* Now setup curlx_ * names for the functions that are to become curlx_ and
57 be removed from a future libcurl official API:
58 curlx_getenv
59 curlx_mprintf (and its variations)
60 curlx_strequal
61 curlx_strnequal
62
63 */
64
65 #define curlx_getenv curl_getenv
66 #define curlx_strequal curl_strequal
67 #define curlx_strnequal curl_strnequal
a579d67 @bagder - Pascal Terjan filed bug #2154627
authored
68 #define curlx_ascii_equal Curl_ascii_equal
913e157 @bagder New header file that offers easy access to the curlx_ functions for a…
authored
69 #define curlx_mvsnprintf curl_mvsnprintf
70 #define curlx_msnprintf curl_msnprintf
71 #define curlx_maprintf curl_maprintf
72 #define curlx_mvaprintf curl_mvaprintf
73 #define curlx_msprintf curl_msprintf
74 #define curlx_mprintf curl_mprintf
75 #define curlx_mfprintf curl_mfprintf
76 #define curlx_mvsprintf curl_mvsprintf
77 #define curlx_mvprintf curl_mvprintf
78 #define curlx_mvfprintf curl_mvfprintf
79
80 #ifdef ENABLE_CURLX_PRINTF
81 /* If this define is set, we define all "standard" printf() functions to use
82 the curlx_* version instead. It makes the source code transparant and
2ddb9d5 Undefine symbols before redefining them.
Gisle Vanem authored
83 easier to understand/patch. Undefine them first in case _MPRINTF_REPLACE
84 is set. */
85 # undef printf
86 # undef fprintf
87 # undef sprintf
88 # undef snprintf
89 # undef vprintf
90 # undef vfprintf
91 # undef vsprintf
92 # undef vsnprintf
93 # undef aprintf
94 # undef vaprintf
95
913e157 @bagder New header file that offers easy access to the curlx_ functions for a…
authored
96 # define printf curlx_mprintf
97 # define fprintf curlx_mfprintf
98 # define sprintf curlx_msprintf
99 # define snprintf curlx_msnprintf
100 # define vprintf curlx_mvprintf
101 # define vfprintf curlx_mvfprintf
102 # define vsprintf curlx_mvsprintf
103 # define vsnprintf curlx_mvsnprintf
104 # define aprintf curlx_maprintf
105 # define vaprintf curlx_mvaprintf
106 #endif /* ENABLE_CURLX_PRINTF */
107
108 #endif /* __CURLX_H */
Something went wrong with that request. Please try again.