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

Add a comment for every return #525

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add a comment for every return #525

wants to merge 3 commits into from

Conversation

gperciva
Copy link
Member

@gperciva gperciva commented Aug 8, 2024

No description provided.

@gperciva
Copy link
Member Author

gperciva commented Aug 8, 2024

With two exceptions[1], this PR ensures that every return statement is annotated.

  • main change: added /* Done! */ to STYLE (and apply).

    This is for things like return (ret) where it's not appropriate to say either /* Success! */ or /* Failure! */. Also for returning a mathematical result, such as return (state).

  • secondary change: added /* Do nothing. */ where appropriate.

  • third: described the 8 remaining returns which were left un-annotated.

[1] Did not comment sysendian.h, or the return (mpool_malloc(... because that was in the middle of a huge macro.

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.

1 participant