-
Notifications
You must be signed in to change notification settings - Fork 12
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 use of STATIC macros from EDK II C Coding Standard Specification (Bugzilla Bug 1766) #21
Comments
Comment 7341Date: 2019-04-29 12:27:36 +0000
Update EDK II C Coding Standard Specification to remove the use of STATIC macros. Instead, the standard C syntax of 'static' should be used. This macro was introduced a long time ago so it could be overloaded to other value to help with debugging. These debugging issues are not an issue anymore with the supported toolchains, so this document should recommend the use of the standard C syntax. |
Comment 7343Date: 2019-04-29 12:43:47 +0000 Also add recommendations on when to use 'static'. There is feedback in the email thread above that compilers/linkers can Another advantage of using 'static' for global variables that are scoped Add recommendations to the EDK II C Coding Standards Specification to use |
Comment 7453Date: 2019-05-08 23:04:26 +0000 Mike, please help on it. thanks. |
Comment 14540Date: 2020-12-09 15:36:56 +0000 Has the problem of debuggers not coping with static functions been fixed? |
Comment 14541Date: 2020-12-09 15:38:40 +0000 Using |
Comment 20038Date: 2022-11-15 22:08:32 +0000 Abner will update it. |
Comment 20062Date: 2022-11-18 22:26:22 +0000 Remove the entire 5.4.2.2 section. We are not allowed to use upper-case STAIC in the source file now. Just follow C standard and use the lower-case 'static'. |
Comment 21501Date: 2023-05-06 05:53:46 +0000 There are still several locations that need updated. In addition, I seem to recall a decision to allow use of static functions. 5.4.2.2 Static 5.4.2.2.2 Functions should not be declared STATIC. 5.6.1.2 The use of int, unsigned, char, void, static, long is a violation |
This issue was created automatically with bugzilla2github
Bugzilla Bug 1766
Date: 2019-04-29T12:27:36+00:00
From: @mdkinney
To: @changab
CC: @lgao4, @bexcran, yonghong.zhu
Blocker for: #1767
Last updated: 2023-05-06T05:53:46+00:00
The text was updated successfully, but these errors were encountered: