public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [PATCH edk2-CCodingStandardsSpecification v3 0/1] Prefer use of `static` C keyword over EDK2 type `STATIC`
@ 2025-02-03 18:45 Rebecca Cran
  2025-02-03 18:45 ` [edk2-devel] [PATCH edk2-CCodingStandardsSpecification v3 1/1] " Rebecca Cran
  0 siblings, 1 reply; 3+ messages in thread
From: Rebecca Cran @ 2025-02-03 18:45 UTC (permalink / raw)
  To: devel, Michael Kinney, Sean Brogan, Oliver Smith-Denny,
	Pedro Falcato
  Cc: Rebecca Cran

Prefer use of `static` C keyword over EDK2 type `STATIC`

A while ago a decision was made on the edk2-devel mailing list that
the `STATIC` EDK2 type should be replaced with the C keyword `static`.

Following further discussion, it was decided to disallow static local
variables to prevent breakage when using GoogleTest.

Update the Coding Specification to match. While here, remove the
outdated section disallowing static functions since they're no longer
a problem.

Changes from v2 to v3:

Dropped the update to book.json.
Added contributed-under line to commit message.

Rebecca Cran (1):
  Prefer use of `static` C keyword over EDK2 type `STATIC`

 5_source_files/54_code_file_structure.md    | 9 ++-------
 5_source_files/56_declarations_and_types.md | 2 +-
 README.md                                   | 3 ++-
 3 files changed, 5 insertions(+), 9 deletions(-)

-- 
2.48.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121075): https://edk2.groups.io/g/devel/message/121075
Mute This Topic: https://groups.io/mt/110977228/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-03 19:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 18:45 [edk2-devel] [PATCH edk2-CCodingStandardsSpecification v3 0/1] Prefer use of `static` C keyword over EDK2 type `STATIC` Rebecca Cran
2025-02-03 18:45 ` [edk2-devel] [PATCH edk2-CCodingStandardsSpecification v3 1/1] " Rebecca Cran
2025-02-03 19:09   ` Michael D Kinney via groups.io

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox