-
Notifications
You must be signed in to change notification settings - Fork 97
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
Remove double underscores from macro and add a check for it #230
Remove double underscores from macro and add a check for it #230
Conversation
This pattern (identifiers containing a double underscore anywhere in them) is reserved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Check names commit should also go to Mbed TLS development branch (no other ports needed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This will now result in Although we could fix this with a matching change to the tools that extracts the spec documentation from the mbed implementation (which we still do for the moment), it is not an ideal situation. Ideally, there needs to be some reserved name spaces defined for the PSA specification, such that implementations would be able to allocate symbols for their own internal and extension APIs without risk of collision with the specification. It may be late to request that mbed not use a |
I agree. Does the PSA framework define this?
We've been inconsistent about this. The first time I added an implementation-specific function to Mbed Crypto, I called it |
This PR addresses issue #171.
It removes the double underscore from a macro, adds an exception for it in "test_psa_constant_names", and introduces a check for double underscores in check-names.sh.