mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:05:56 +08:00
Some CURLOPT constants defined in the curl public headers were initially enums (= ints), or macros with bare numeric values. Recent curl releases upgraded them to `long` constants, to make them pass correctly to `curl_easy_setop()` by default, i.e. without requiring a `(long)` cast. This patch drops such casts from the examples embedded in the docs. At the same time it documents which curl release made them `long` types, to keep them useful when working with previous libcurl versions. Also: - drop a `(long)` cast that was never necessary. - CURLOPT_ALTSVC_CTRL.md: bump local copy of macros to long. - test1119: make it ignore symbols ending with an underscore, to skip wildcard, e.g. `**CURLAUTH_***`. Closes #18130 |
||
|---|---|---|
| .. | ||
| badwords.pl | ||
| badwords.txt | ||
| cleancmd.pl | ||
| cmp-config.pl | ||
| cmp-pkg-config.sh | ||
| codespell-ignore.txt | ||
| codespell.sh | ||
| distfiles.sh | ||
| randcurl.pl | ||
| shellcheck-ci.sh | ||
| shellcheck.sh | ||
| spacecheck.pl | ||
| spellcheck.curl | ||
| spellcheck.words | ||
| spellcheck.yaml | ||
| trimmarkdownheader.pl | ||
| typos.sh | ||
| typos.toml | ||
| verify-examples.pl | ||
| verify-synopsis.pl | ||
| yamlcheck.sh | ||
| yamlcheck.yaml | ||