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

[Cleanup] Quantum Painter #19825

Merged
merged 4 commits into from
Mar 25, 2023
Merged

[Cleanup] Quantum Painter #19825

merged 4 commits into from
Mar 25, 2023

Conversation

elpekenin
Copy link
Contributor

@elpekenin elpekenin commented Feb 12, 2023

Description

Just some tidying of QP's codebase, adding some typedefs here and there to get rid of boilerplate struct Some of these types are defined in .c files, i dont know if they should be moved to .h, i also renamed a couple of them, appending _t

A couple of minor changes too

  • Replace a ternary with QP_MIN
  • Replace __attribute__((packed)) with QP_PACKED

Tested by compiling my keyboard's files and display worked fine. Didn't test exhaustively tho

Haven't linted, as i think the changes haven't mess up formatting, im gonna let CI warn and fix offending files if any.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@github-actions github-actions bot added the core label Feb 12, 2023
@drashna drashna requested a review from tzarc February 15, 2023 04:24
Copy link
Member

@tzarc tzarc left a comment

Choose a reason for hiding this comment

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

From memory, everything struct was QP-internal.
Guess it doesn't really matter.

@tzarc tzarc requested a review from a team March 19, 2023 20:26
@tzarc
Copy link
Member

tzarc commented Mar 19, 2023

SHA1's all match for all QP-enabled boards in the repo.

@elpekenin
Copy link
Contributor Author

SHA1's all match for all QP-enabled boards in the repo.

What does this mean? "Everything compiles"? 😅

@tzarc
Copy link
Member

tzarc commented Mar 19, 2023

What does this mean? "Everything compiles"? 😅

Yes, generated binaries are identical before and after this PR is applied.

@drashna
Copy link
Member

drashna commented Mar 23, 2023

Merge conflicts here.

@elpekenin elpekenin requested a review from tzarc March 25, 2023 11:12
@tzarc tzarc requested a review from a team March 25, 2023 13:58
@tzarc
Copy link
Member

tzarc commented Mar 25, 2023

SHA1's still match.

Copy link
Member

@KarlK90 KarlK90 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@KarlK90 KarlK90 merged commit cd542a0 into qmk:develop Mar 25, 2023
@elpekenin elpekenin deleted the qp-typedef branch March 25, 2023 18:14
nicsuzor pushed a commit to nicsuzor/qmk_firmware that referenced this pull request Mar 28, 2023
coquizen pushed a commit to coquizen/qmk_firmware that referenced this pull request Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants