Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl: add my_setopt_long() and _offt() #16669

Closed
wants to merge 11 commits into from
Closed

Conversation

bagder
Copy link
Member

@bagder bagder commented Mar 11, 2025

Two new dedicated functions for setting long and curl_off_t options with curl_easy_setopt(). These make it easier to make sure we pass on the right option (types) so that the --libcurl code also gets right.

Two new dedicated functions for setting long and curl_off_t options with
curl_easy_setopt(). These make it easier to make sure we pass on the
right option (types) so that the --libcurl code also gets right.
@testclutch

This comment was marked as resolved.

@bagder bagder closed this in dc12ecd Mar 11, 2025
@bagder bagder deleted the bagder/tool-setopt branch March 11, 2025 14:03
struct OperationConfig *config = per->config; /* for the macro below */
#ifdef CURL_DISABLE_LIBCURL_OPTION
(void)config;
(void)global;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This leads to an unused parameter warning with CURL_DISABLE_LIBCURL_OPTION because the my_setopt macros don't use global in this case:
https://curl.se/dev/log.cgi?id=20250312061525-3878059#prob1

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm on it.

That would also indicate we could use a new CI job...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants