curl-curl/src
Daniel Stenberg 255aac56f9
curlx: move into to curlx/
Move curlx_ functions into its own subdir.

The idea is to use the curlx_ prefix proper on these functions, and use
these same function names both in tool, lib and test suite source code.
Stop the previous special #define setup for curlx_ names.

The printf defines are now done for the library alone. Tests no longer
use the printf defines. The tool code sets its own defines. The printf
functions are not curlx, they are publicly available.

The strcase defines are not curlx_ functions and should not be used by
tool or server code.

dynbuf, warnless, base64, strparse, timeval, timediff are now proper
curlx functions.

When libcurl is built statically, the functions from the library can be
used as-is. The key is then that the functions must work as-is, without
having to be recompiled for use in tool/tests. This avoids symbol
collisions - when libcurl is built statically, we use those functions
directly when building the tool/tests. When libcurl is shared, we
build/link them separately for the tool/tests.

Assisted-by: Jay Satiro

Closes #17253
2025-05-07 11:01:15 +02:00
..
.checksrc src: replace strto[u][ld] with curlx_str_ parsers 2025-03-10 08:09:41 +01:00
.gitignore gitignore: add generated unity sources for lib and src 2025-01-27 22:55:39 +01:00
CMakeLists.txt curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
curl.rc windows: drop code and curl manifest targeting W2K and older 2025-02-24 21:00:31 +01:00
curlinfo.c lib: provide a getaddrinfo wrapper 2025-04-28 23:48:02 +02:00
Makefile.am curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
Makefile.inc curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
mk-file-embed.pl src: guard for double declaration of curl_ca_embed in unity builds 2024-10-16 17:27:56 +02:00
mkhelp.pl mkhelp: fix to not generate a line-ending space in some cases 2025-04-30 22:14:25 +02:00
slist_wc.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
slist_wc.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
terminal.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
terminal.h curl: make warnings and other messages aware of terminal width 2024-05-28 23:12:32 +02:00
tool_binmode.h src: remove final uses of Curl_ symbol prefixes in tool code 2025-03-12 14:37:08 +01:00
tool_bname.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_bname.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cb_dbg.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_cb_dbg.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cb_hdr.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_cb_hdr.h tool: support --show-headers AND --remote-header-name 2024-10-02 08:04:33 +02:00
tool_cb_prg.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_cb_prg.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_cb_rea.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_cb_rea.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cb_see.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_cb_see.h tool: move tool_ftruncate64 to tool_util.c 2024-04-25 09:20:38 +02:00
tool_cb_soc.c curl: (on linux) add MPTCP support 2024-06-07 10:54:19 +02:00
tool_cb_soc.h curl: (on linux) add MPTCP support 2024-06-07 10:54:19 +02:00
tool_cb_wrt.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_cb_wrt.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cfgable.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_cfgable.h curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_dirhie.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_dirhie.h tool: use errorf() for error output 2023-06-01 08:19:11 +02:00
tool_doswin.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_doswin.h build: add Windows CE / CeGCC support, with CI jobs 2025-02-21 13:56:34 +01:00
tool_easysrc.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_easysrc.h build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
tool_filetime.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_filetime.h src: remove final uses of Curl_ symbol prefixes in tool code 2025-03-12 14:37:08 +01:00
tool_findfile.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_findfile.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
tool_formparse.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_formparse.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_getparam.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_getparam.h TLS: add CURLOPT_SSL_SIGNATURE_ALGORITHMS and --sigalgs 2025-04-30 17:47:22 +02:00
tool_getpass.c build: add Windows CE / CeGCC support, with CI jobs 2025-02-21 13:56:34 +01:00
tool_getpass.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
tool_help.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_help.h build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
tool_helpers.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_helpers.h src: tidy up types, add necessary casts 2024-05-17 12:32:04 +02:00
tool_hugehelp.h build: drop tool_hugehelp.c.cvs, tidy up macros, drop buildconf.bat 2025-01-26 14:22:49 +01:00
tool_ipfs.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_ipfs.h ipfs: add options to disable 2024-09-21 12:08:32 +02:00
tool_libinfo.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_libinfo.h tool_getparam: fail --hostpubsha256 if libssh2 is not used 2025-01-28 10:30:40 +01:00
tool_listhelp.c TLS: add CURLOPT_SSL_SIGNATURE_ALGORITHMS and --sigalgs 2025-04-30 17:47:22 +02:00
tool_main.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_main.h tests/server: make the signal handler signal-safe 2025-03-28 12:02:38 +01:00
tool_msgs.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_msgs.h build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
tool_operate.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_operate.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_operhlp.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_operhlp.h tool_cb_wrt: use "curl_response" if no file name in URL 2024-09-17 13:39:51 +02:00
tool_paramhlp.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_paramhlp.h curl: add byte range support to --variable reading from file 2024-12-21 11:46:27 +01:00
tool_parsecfg.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_parsecfg.h curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_progress.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_progress.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_sdecls.h tool_getparam: make --url support a file with URLs 2025-02-25 09:16:54 +01:00
tool_setopt.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_setopt.h curl: add my_setopt_long() and _offt() 2025-03-11 14:58:13 +01:00
tool_setup.h tests/server: make the signal handler signal-safe 2025-03-28 12:02:38 +01:00
tool_sleep.c select: use poll() if existing, avoid poll() with no sockets 2024-10-01 15:11:50 +02:00
tool_sleep.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_ssls.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_ssls.h vtls: feature ssls-export for SSL session im-/export 2025-01-08 23:32:07 +01:00
tool_stderr.c src: avoid strdup on platforms not doing UTF8 conversions 2025-03-05 09:19:09 +01:00
tool_stderr.h src: avoid strdup on platforms not doing UTF8 conversions 2025-03-05 09:19:09 +01:00
tool_strdup.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_strdup.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_urlglob.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_urlglob.h src: replace strto[u][ld] with curlx_str_ parsers 2025-03-10 08:09:41 +01:00
tool_util.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_util.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_version.h config: rename the OS define to CURL_OS to reduce collision risk 2024-10-30 14:59:54 +01:00
tool_vms.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_vms.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_writeout_json.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_writeout_json.h curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_writeout.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_writeout.h curl: add write-out variable 'tls_earlydata' 2025-02-22 10:02:39 +01:00
tool_xattr.c tool_xattr: create the user.creator xattr attribute 2024-10-11 10:13:37 -07:00
tool_xattr.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
var.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
var.h curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00