Skip to content
Commit 3b5a58c5 authored by Michael Kubacki's avatar Michael Kubacki Committed by mergify[bot]
Browse files

MdePkg/BaseLib: Add linked list iteration macros

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1959



The macros EFI_LIST_FOR_EACH and EFI_LIST_FOR_EACH_SAFE have been
duplicated across several drivers. These macros have proven useful and
established a commonly used pattern for linked list iteration.

This change defines the macros in BaseLib.h alongside other generic linked
list macros and functions.

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: default avatarMichael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: default avatarGuomin Jiang <guomin.jiang@intel.com>
Reviewed-by: default avatarLiming Gao <liming.gao@intel.com>
Reviewed-by: default avatarBret Barkelew <bret.barkelew@microsoft.com>
parent 0f127f31
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment