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 const value qualifiers for C functions where applicable #628

Merged
merged 8 commits into from
Jul 3, 2021

Conversation

TysonAndre
Copy link
Collaborator

Problem

Make it easier for readers to understand what arguments are or aren't modified by a function (etc.)
Make it harder to accidentally modify a pointer that is assumed to not be modified.

Solution

Add const qualifiers to function signatures, local variables, static variables

@TysonAndre TysonAndre merged commit 9339bcf into master Jul 3, 2021
@TysonAndre TysonAndre deleted the const-values branch July 4, 2021 20:26
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.

1 participant