Skip to content

CURLOPT: bump CURLWS_NOAUTOPONG, CURLWS_RAW_MODE macros to long#18137

Closed
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:longopt3
Closed

CURLOPT: bump CURLWS_NOAUTOPONG, CURLWS_RAW_MODE macros to long#18137
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:longopt3

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Aug 1, 2025

This patch bumps the size of these macros from int to long, while
keeping their actual values the same. It may cause incompatibilities in
user code, requiring the bump of holder variables and/or adding casts:

  • CURLWS_NOAUTOPONG
  • CURLWS_RAW_MODE

Also:

  • keep existing cast within the documentation to make sure it applies
    to older curl versions as well.

This patch bumps the size of these macros from `int` to `long`, while
keeping their actual values the same. It may cause incompatibilities in
user code, requiring the bump of holder variables and/or adding casts:

- CURLWS_RAW_MODE
- CURLWS_NOAUTOPONG

Also:
- keep existing cast within the documentation to make sure it applies
  to older curl versions as well.
@vszakats vszakats changed the title CURLOPT: bump CURLWS_RAW_MODE, CURLWS_NOAUTOPONG macros to long CURLOPT: bump CURLWS_NOAUTOPONG, CURLWS_RAW_MODE macros to long Aug 1, 2025
@vszakats vszakats closed this in ac0222d Aug 1, 2025
@vszakats vszakats deleted the longopt3 branch August 1, 2025 16:50
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.

1 participant