-
Notifications
You must be signed in to change notification settings - Fork 683
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
reserved identifier violation #52
Comments
Counld you tell me, what is the C language standard about this identifiers? Thanks! |
How do you think about to read corresponding information sources that describe the consequences of underscores in such identifiers? |
Have seen that article. I was surprised by "Names that end with '_t' are reserved".. see: In addition to the names documented in this manual, reserved names include all external identifiers (global functions and variables) that begin with an underscore (‘_’) and all identifiers regardless of use that begin with either two underscores or an underscore followed by a capital letter are reserved names. This is so that the library and header files can define functions, variables, and macros for internal purposes without risk of conflict with names in user programs.
is quite well. Is my understanding right? |
Include guard macros are also identifiers. If you use double underscores in them like your examples, they become names which are reserved for the use in implementations of C/C++ compilers. |
I would like to point out that identifiers like "
__zlog_buf_h
" and "__zc_defs_h
" do not fit to the expected naming convention of the C language standard.Would you like to adjust your selection for unique names?
The text was updated successfully, but these errors were encountered: