mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 06:25:03 -05:00
4a5aa6682d
This reverts renaming and usage of lib/*.h header files done
28-12-2012, reverting 2 commits:
f871de0... build: make use of 76 lib/*.h renamed files
ffd8e12... build: rename 76 lib/*.h files
This also reverts removal of redundant include guard (redundant thanks
to changes in above commits) done 2-12-2013, reverting 1 commit:
c087374... curl_setup.h: remove redundant include guard
This also reverts renaming and usage of lib/*.c source files done
3-12-2013, reverting 3 commits:
13606bb... build: make use of 93 lib/*.c renamed files
5b6e792... build: rename 93 lib/*.c files
7d83dff... build: commit 13606bbfde
follow-up 1
Start of related discussion thread:
http://curl.haxx.se/mail/lib-2013-01/0012.html
Asking for confirmation on pushing this revertion commit:
http://curl.haxx.se/mail/lib-2013-01/0048.html
Confirmation summary:
http://curl.haxx.se/mail/lib-2013-01/0079.html
NOTICE: The list of 2 files that have been modified by other
intermixed commits, while renamed, and also by at least one
of the 6 commits this one reverts follows below. These 2 files
will exhibit a hole in history unless git's '--follow' option
is used when viewing logs.
lib/curl_imap.h
lib/curl_smtp.h
62 lines
2.0 KiB
Plaintext
62 lines
2.0 KiB
Plaintext
_ _ ____ _
|
|
___| | | | _ \| |
|
|
/ __| | | | |_) | |
|
|
| (__| |_| | _ <| |___
|
|
\___|\___/|_| \_\_____|
|
|
|
|
Source Code Functions Apps Might Use
|
|
====================================
|
|
|
|
The libcurl source code offers a few functions by source only. They are not
|
|
part of the official libcurl API, but the source files might be useful for
|
|
others so apps can optionally compile/build with these sources to gain
|
|
additional functions.
|
|
|
|
We provide them through a single header file for easy access for apps:
|
|
"curlx.h"
|
|
|
|
curlx_strtoofft()
|
|
|
|
A macro that converts a string containing a number to a curl_off_t number.
|
|
This might use the curlx_strtoll() function which is provided as source
|
|
code in strtoofft.c. Note that the function is only provided if no
|
|
strtoll() (or equivalent) function exist on your platform. If curl_off_t
|
|
is only a 32 bit number on your platform, this macro uses strtol().
|
|
|
|
curlx_tvnow()
|
|
|
|
returns a struct timeval for the current time.
|
|
|
|
curlx_tvdiff()
|
|
|
|
returns the difference between two timeval structs, in number of
|
|
milliseconds.
|
|
|
|
curlx_tvdiff_secs()
|
|
|
|
returns the same as curlx_tvdiff but with full usec resolution (as a
|
|
double)
|
|
|
|
FUTURE
|
|
======
|
|
|
|
Several functions will be removed from the public curl_ name space in a
|
|
future libcurl release. They will then only become available as curlx_
|
|
functions instead. To make the transition easier, we already today provide
|
|
these functions with the curlx_ prefix to allow sources to get built properly
|
|
with the new function names. The functions this concerns are:
|
|
|
|
curlx_getenv
|
|
curlx_strequal
|
|
curlx_strnequal
|
|
curlx_mvsnprintf
|
|
curlx_msnprintf
|
|
curlx_maprintf
|
|
curlx_mvaprintf
|
|
curlx_msprintf
|
|
curlx_mprintf
|
|
curlx_mfprintf
|
|
curlx_mvsprintf
|
|
curlx_mvprintf
|
|
curlx_mvfprintf
|