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

Winapi reformatting #677

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Winapi reformatting #677

merged 2 commits into from
Sep 10, 2024

Conversation

thrimbor
Copy link
Member

@thrimbor thrimbor commented Sep 9, 2024

A bit of a follow-up to #670, reformats all the winapi code to comply with the .clang-format Ryzee added.

Also utilizing .git-blame-ignore-revs, so this reformatting won't mess up the blame view (as long as this PR doesn't get rebased which would change the commit hash), https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view has more info on how that works.

#define INIT_ONCE_CHECK_ONLY 0x00000001UL
#define INIT_ONCE_ASYNC 0x00000002UL
#define INIT_ONCE_INIT_FAILED 0x00000004UL
typedef BOOL(CALLBACK *PINIT_ONCE_FN)(PINIT_ONCE, PVOID, PVOID *);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does removing the white-spaces here not change the behavior?

Copy link
Member Author

Choose a reason for hiding this comment

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

That can be the case with #defines, where there must not be a whitespace between the name and parameter list for function-style macros, but typedef isn't sensitive to whitespace changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, in that case I have no qualms for a merge.

Copy link
Contributor

@dracc dracc left a comment

Choose a reason for hiding this comment

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

Looks good to me although one line raised some concern.

@Ryzee119 Ryzee119 merged commit 56cdc3d into XboxDev:master Sep 10, 2024
6 checks passed
@thrimbor thrimbor deleted the winapi_reformat branch September 11, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants