<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/RedfishPkg/Include/Pcd, branch dependabot/github_actions/actions/github-script-9</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-02-23T21:01:28+00:00</updated>
<entry>
<title>RedfishPkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T18:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=6181c85fa98fd1ea9e7292ad5390a2ec4f1da318'/>
<id>urn:sha1:6181c85fa98fd1ea9e7292ad5390a2ec4f1da318</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>RedfishPkg: Fix compile issue on Linux</title>
<updated>2023-05-08T13:12:01+00:00</updated>
<author>
<name>Vu Nguyen</name>
<email>vunguyen@os.amperecomputing.com</email>
</author>
<published>2021-05-20T03:38:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=6eeb58ece38060be3b0f7111649a93cc8b2dca49'/>
<id>urn:sha1:6eeb58ece38060be3b0f7111649a93cc8b2dca49</id>
<content type='text'>
It requires a fixed size array to store the content of device path PCD.
Add the array size to solve this issue.

Signed-off-by: Minh Nguyen &lt;minhnguyen1@os.amperecomputing.com&gt;
Cc: Abner Chang &lt;abner.chang@amd.com&gt;
Cc: Igor Kulchytskyy &lt;igork@ami.com&gt;
Cc: Nick Ramirez &lt;nramirez@nvidia.com&gt;
Reviewed-by: Abner Chang &lt;Abner.Chang@amd.com&gt;
</content>
</entry>
<entry>
<title>RedfishPkg: Apply uncrustify changes</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2021-12-05T22:54:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=39de741e2dcb8f11e9b4438e37224797643d8451'/>
<id>urn:sha1:39de741e2dcb8f11e9b4438e37224797643d8451</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the RedfishPkg package

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Reviewed-by: Abner Chang &lt;abner.chang@hpe.com&gt;
</content>
</entry>
<entry>
<title>RedfishPkg/Include: PCD definitions of Host Interface EFI device path</title>
<updated>2020-10-15T01:07:24+00:00</updated>
<author>
<name>Abner Chang</name>
<email>abner.chang@hpe.com</email>
</author>
<published>2020-10-12T06:00:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=b9b7406c43e9d29bde3e9679c1b039cb91109097'/>
<id>urn:sha1:b9b7406c43e9d29bde3e9679c1b039cb91109097</id>
<content type='text'>
The definitions of Host Interface EFI device path structure PCD.

Signed-off-by: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Signed-off-by: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
Signed-off-by: Fan Wang &lt;fan.wang@intel.com&gt;
Signed-off-by: Abner Chang &lt;abner.chang@hpe.com&gt;

Cc: Jiewen Yao &lt;jiewen.yao@intel.com&gt;
Cc: Nickle Wang &lt;nickle.wang@hpe.com&gt;

Reviewed-by: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Reviewed-by: Nickle Wang &lt;nickle.wang@hpe.com&gt;
</content>
</entry>
</feed>
