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

Use named types for onion callbacks. #987

Merged
merged 1 commit into from
Jul 8, 2018
Merged

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Jul 8, 2018

This is now a style rule: you can only use typedef'd function types.

Previous rules now applied in onion_*.c:

  • structs must have a name (typedef of unnamed struct is not allowed).
  • ++i for increment-stmt, not i++, e.g. in loops.
  • Only a single declarator per struct member declaration.
  • Type_Names vs. variable_names.

This change is Reviewable

This is now a style rule: you can only use typedef'd function types.

Previous rules now applied in `onion_*.c`:
* `struct`s must have a name (typedef of unnamed struct is not allowed).
* `++i` for increment-stmt, not `i++`, e.g. in loops.
* Only a single declarator per struct member declaration.
* Type_Names vs. variable_names.
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 5 of 5 files at r1.
Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained

@iphydf iphydf merged commit ebdc432 into TokTok:master Jul 8, 2018
@iphydf iphydf deleted the cb-types branch July 8, 2018 19:03
@iphydf iphydf modified the milestones: v0.2.x, v0.2.4 Jul 16, 2018
This pull request was closed.
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.

2 participants