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

document typedef guard macros, etc for ptraddr_t etc #34

Open
brooksdavis opened this issue Nov 10, 2022 · 1 comment
Open

document typedef guard macros, etc for ptraddr_t etc #34

brooksdavis opened this issue Nov 10, 2022 · 1 comment

Comments

@brooksdavis
Copy link
Member

We currently declare ptraddr_t and define _PTRADDR_T_DECLARED as a macro at the same time to indicate that it has been declared. We need to document this and need add __SIZEOF_* and any related macros for new types.

@nsz-arm
Copy link

nsz-arm commented Nov 10, 2022

those macros sound like perprocessor api between compiler and libc which would be nice to document, but not necessary in a language spec.

however ptraddr_t is a c language extension that violates current iso c rules (not reserved name for stddef.h) so user code may need to know about it too not just the libc. i think such extension needs a preprocessor check to indicate the language variant and version (like __STDC_VERSION__ >= 199901L check for iso c99 compatibility). but it's not clear what that language is until there is a complete cheri c language spec.

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

No branches or pull requests

2 participants