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

Fix style in some header files. #995

Merged
merged 1 commit into from
Jul 12, 2018
Merged

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Jul 9, 2018

  • Enums must by typedef'd.
  • Comments at end of #define must be // comments.
  • Typedef structs must not be anonymous.
  • ; at the end of a #define is invalid.
  • Callback typedefs must list their parameter names.
  • No nested structs.
  • No inline use of function pointer types. Only typedef'd callback types
    are allowed.
  • Enum types are spelled in Camelsnake_Case.
  • The argument to #error must be a string literal.

This change is Reviewable

@iphydf iphydf added this to the v0.2.x milestone Jul 9, 2018
@iphydf iphydf force-pushed the header-style-fixes branch 3 times, most recently from fb25263 to 51b6d15 Compare July 10, 2018 15:24
Copy link

@sudden6 sudden6 left a comment

Choose a reason for hiding this comment

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

:lgtm_strong:

Reviewed 9 of 9 files at r1.
Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained

* Enums must by typedef'd.
* Comments at end of `#define` must be `//` comments.
* Typedef structs must not be anonymous.
* `;` at the end of a `#define` is invalid.
* Callback typedefs must list their parameter names.
* No nested structs.
* No inline use of function pointer types. Only typedef'd callback types
  are allowed.
* Enum types are spelled in Camelsnake_Case.
* The argument to `#error` must be a string literal.
@iphydf iphydf merged commit 37f8f56 into TokTok:master Jul 12, 2018
@iphydf iphydf deleted the header-style-fixes branch July 12, 2018 09:31
@iphydf iphydf modified the milestones: v0.2.x, v0.2.4 Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants