Repository navigation
Conversation
From `CURL_VERSION`. To avoid confusion with the non-debug `CURL_VERSION` macro, and to avoid possible, difficult-to-track-down collision when `CURL_VERSION` is legitimately used for something else. Refs: libssh2/libssh2@51333f9 libssh2/libssh2#2590 libssh2/libssh2@bb8e095
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The implementation and affected test fixtures consistently use the new name, with no unresolved issues.
Review effort: Balanced
Findings: None
What changed in this PR
Renames the debug version override to CURL_DEBUG_VERSION, avoiding confusion with the public CURL_VERSION macro.
Changes:
- Updates the debug-only environment lookup and its comment.
- Updates both affected JSON-output test fixtures.
| File | Description |
|---|---|
| tests/data/test972 | Uses the renamed debug environment variable. |
| tests/data/test970 | Uses the renamed debug environment variable. |
| lib/version.c | Reads CURL_DEBUG_VERSION in debug builds. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
From
CURL_VERSION. To avoid confusion with the non-debugCURL_VERSIONmacro, and to avoid possible, difficult-to-track-downfallouts when
CURL_VERSIONis legitimately used for something else.Refs:
libssh2/libssh2@51333f9
libssh2/libssh2#2590
libssh2/libssh2@bb8e095