Skip to content

tidy-up: rename CURL_WINDOWS_APP to CURL_WINDOWS_UWP - #14881

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:uwp-rename-macro
Closed

tidy-up: rename CURL_WINDOWS_APP to CURL_WINDOWS_UWP#14881
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:uwp-rename-macro

Conversation

@vszakats

@vszakats vszakats commented Sep 12, 2024

Copy link
Copy Markdown
Member

Rename internal macro to make its purpose more obvious.

After this patch grep -i uwp shows all the code related to UWP.

Ref: https://curl.se/mail/lib-2024-09/0014.html

@vszakats vszakats added Windows Windows-specific tidy-up labels Sep 12, 2024
@vszakats vszakats changed the title macro: CURL_WINDOWS_APPCURL_WINDOWS_UWP tidy-up: rename CURL_WINDOWS_APP to CURL_WINDOWS_UWP Sep 12, 2024

@MarcelRaad MarcelRaad left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The double "Windows" in there looks a bit strange to me, but I agree that having "UWP" in the identifier makes sense.

@vszakats

Copy link
Copy Markdown
Member Author

@MarcelRaad Oh indeed, it's twice Windows. But, WIN offers a tiny grepping advantage, and gives context. There is also precedent for it: _WIN32_WCE!

@vszakats vszakats closed this in bc2f72b Sep 19, 2024
@vszakats
vszakats deleted the uwp-rename-macro branch September 19, 2024 17:29
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Rename internal macro to make its purpose more obvious.

After this patch `grep -i uwp` shows all the code related to UWP.

Ref: https://curl.se/mail/lib-2024-09/0014.html
Closes curl#14881
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.

2 participants