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 16FC97803D2 for ; Mon, 3 Feb 2025 18:46:10 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=UKrXmIKq+QBOkYhO3102Z4wtVAmNmSz7QvuEOHcI4aY=; 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=1738608370; v=1; x=1738867569; b=NNh/IXXHGdeyt+Cdq+e0MxxZd2TgTdTbqXiF1GP0yxkdXGhcBFeCh0YrAwW/6Mpd5XZ57Wx5 g2o+re9/GjqJmT+0V0FhzRj4Hj9Ri13qGXDdXuwCKzfkYDDJxv9M1Nql1b7WAFh2pVYfIfiOSdE YNw9ScMzgqeEUKZ98wfH0yiHBANp9IB4zllI9Deg3CiIMj/paVne1QtdUKAYc8FVruC2AROzHPF B10WL+mXsWxH24jkMwZA8MBLHjabDVjA/DX+X5A6PxubsVnBjrkH37ReLfJe5GXSI89PPr7/G9P bYZHZaCv6PKs1cIXpPl5M5QeOymdBJTg0Omu2ycQeEDPQ== X-Received: by 127.0.0.2 with SMTP id QuLcYY7687511xPofLsCaSSj; Mon, 03 Feb 2025 10:46:09 -0800 X-Received: from fhigh-b4-smtp.messagingengine.com (fhigh-b4-smtp.messagingengine.com [202.12.124.155]) by mx.groups.io with SMTP id smtpd.web11.95890.1738608363814291910 for ; Mon, 03 Feb 2025 10:46:04 -0800 X-Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id B09A325401A6; Mon, 3 Feb 2025 13:46:02 -0500 (EST) X-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Mon, 03 Feb 2025 13:46:02 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddukeefhecutefuodetggdotefrod 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 13:46:01 -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 v3 0/1] Prefer use of `static` C keyword over EDK2 type `STATIC` Date: Mon, 3 Feb 2025 11:45:47 -0700 Message-ID: <20250203184548.2528198-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 10:46:04 -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: AnXbg9cjAHiZg4lL4VX3T5Q9x7686176AA= 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="NNh/IXXH"; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io 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] -=-=-=-=-=-=-=-=-=-=-=-