From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 75645D80550 for ; Mon, 3 Feb 2025 11:26:23 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=QrRxg0CdpcS9X9s/QARfPSDFzMH9jwT3xPjqm82HAW4=; c=relaxed/simple; d=groups.io; h=Feedback-ID:From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240830; t=1738581983; v=1; x=1738841181; b=FtQdEamLftYfXwCJDGYvvb3HqfUgvm7Yew66LATDsc1yKamDOkOLmVXarWGaqheI7Y9DbZ5R SOyufDuwMGV8JuTnjE+Y2W+FsUj7A2DOaW4EB0If7ZofHNN9Kx/G70ccYC4V81WU9zYRk2baOm9 fbC+6z+kuTWko7wbEP884sT7XbLhK3QVCQkQbuURyRmlFTlk6XhasZwBmBGEwGiJS9mtbfxvA0R UATMHsA4+Oa+VD2i8jNlaMbIL91Y+H8KJf94qxdQBLWbmJPggQZXThJ57p8Tua65G4mA8Ki/7Lv /kD0AhP3S98CuKWaaMs6p8zDTLhaOIqPJ8MdL4N67ttwg== X-Received: by 127.0.0.2 with SMTP id pGrEYY7687511xvSKGcJ1Em1; Mon, 03 Feb 2025 03:26:21 -0800 X-Received: from fhigh-a8-smtp.messagingengine.com (fhigh-a8-smtp.messagingengine.com [103.168.172.159]) by mx.groups.io with SMTP id smtpd.web11.85525.1738581980674927140 for ; Mon, 03 Feb 2025 03:26:21 -0800 X-Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.phl.internal (Postfix) with ESMTP id D300311400DB; Mon, 3 Feb 2025 06:26:19 -0500 (EST) X-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Mon, 03 Feb 2025 06:26:19 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddujeegjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecu hfhrohhmpeftvggsvggttggrucevrhgrnhcuoehrvggsvggttggrsegsshguihhordgtoh hmqeenucggtffrrghtthgvrhhnpeeuvdektdelkeeukefgjeejteetffdtudeiffefheev fefgveeulefghfellefgvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehrvggsvggttggrsegsshguihhordgtohhmpdhnsggprhgtphhtthho peeipdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguvghvvghlsegvughkvddrgh hrohhuphhsrdhiohdprhgtphhtthhopehmihgthhgrvghlrdgurdhkihhnnhgvhiesihhn thgvlhdrtghomhdprhgtphhtthhopehsphgsrhhoghgrnhesohhuthhlohhokhdrtghomh dprhgtphhtthhopehoshguvgeslhhinhhugidrmhhitghrohhsohhfthdrtghomhdprhgt phhtthhopehpvggurhhordhfrghltggrthhosehgmhgrihhlrdgtohhmpdhrtghpthhtoh eprhgvsggvtggtrgessghsughiohdrtghomh X-ME-Proxy: Feedback-ID: i5b994698:Fastmail X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Feb 2025 06:26:18 -0500 (EST) From: "Rebecca Cran" To: devel@edk2.groups.io, Michael Kinney , Sean Brogan , Oliver Smith-Denny , Pedro Falcato Cc: Rebecca Cran Subject: [edk2-devel] [PATCH edk2-CCodingStandardsSpecification v2 0/1] Prefer use of `static` C keyword over EDK2 type `STATIC` Date: Mon, 3 Feb 2025 04:26:03 -0700 Message-ID: <20250203112604.2331684-1-rebecca@bsdio.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Mon, 03 Feb 2025 03:26:21 -0800 Resent-From: rebecca@bsdio.com Reply-To: devel@edk2.groups.io,rebecca@bsdio.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: wEvJHGgSUQOVQiU4fLTaZOqjx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=FtQdEamL; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none 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. Bump the revision to 2.4. Changes from v1 to v2: Drop the change to the draft status. Add a sentence about static local variables not being allowed. 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 ++- book.json | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) -- 2.48.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#121066): https://edk2.groups.io/g/devel/message/121066 Mute This Topic: https://groups.io/mt/110968938/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-