docs: add CURLOPT type change history, drop casts where present#18130
Closed
vszakats wants to merge 46 commits intocurl:masterfrom
Closed
docs: add CURLOPT type change history, drop casts where present#18130vszakats wants to merge 46 commits intocurl:masterfrom
vszakats wants to merge 46 commits intocurl:masterfrom
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
bagder
reviewed
Aug 1, 2025
757d781 to
ccc88b7
Compare
vszakats
added a commit
that referenced
this pull request
Aug 1, 2025
In curl/curl.h and the man page. To match the rest of CURLOPT macros. Cherry-picked from #18130
This reverts commit ad12113.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
longconstants, to make them pass correctly tocurl_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
longtypes,to keep them useful when working with previous libcurl versions.
Also:
(long)cast that was never necessary.wildcard, e.g.
**CURLAUTH_***.(long)cast withLsuffix forCURLHSTS_*macros. → moved to separate commit d1da954→ CURLOPT: bump remaining macros to
long#18134→ CURLOPT: bump
CURL_SSLVERSION_*macros tolong#18135→ CURLOPT: bump
CURLPROTO_*macros tolong#18136→ CURLOPT: bump
CURLWS_NOAUTOPONG,CURLWS_RAW_MODEmacros tolong#18137