From fe467413d2230a2170bb3ffc91e5e8c909920628 Mon Sep 17 00:00:00 2001 From: jji4 Date: Thu, 30 Oct 2008 05:58:52 +0000 Subject: [PATCH] Patch to remove STATIC modifier. This is on longer recommended by EFI Framework coding style. All duplicated symbols has been renamed accordingly. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6295 6f19259b-4bc3-4df7-8a09-765794883524 --- .../DxeExtractGuidedSectionLib.c | 8 ++++---- MdePkg/Library/DxeHobLib/HobLib.c | 2 +- MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c | 2 +- .../PeiServicesTablePointerLib/PeiServicesTablePointer.c | 2 +- MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c | 2 +- .../UefiDevicePathLib.c | 3 +-- MdePkg/Library/UefiIfrSupportLib/UefiIfrForm.c | 4 ++-- MdePkg/Library/UefiRuntimeLib/RuntimeLib.c | 8 ++++---- 8 files changed, 15 insertions(+), 16 deletions(-) diff --git a/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c index 7250828744..08f14a765c 100644 --- a/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c +++ b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c @@ -20,11 +20,11 @@ #include #include -STATIC GUID *mExtractHandlerGuidTable; -STATIC UINT32 mNumberOfExtractHandler = 0; +GUID *mExtractHandlerGuidTable; +UINT32 mNumberOfExtractHandler = 0; -STATIC EXTRACT_GUIDED_SECTION_DECODE_HANDLER *mExtractDecodeHandlerTable; -STATIC EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *mExtractGetInfoHandlerTable; +EXTRACT_GUIDED_SECTION_DECODE_HANDLER *mExtractDecodeHandlerTable; +EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *mExtractGetInfoHandlerTable; /** Construtor allocates the global memory to store the registered guid and Handler list. diff --git a/MdePkg/Library/DxeHobLib/HobLib.c b/MdePkg/Library/DxeHobLib/HobLib.c index d6e9e5fed6..db69912e4f 100644 --- a/MdePkg/Library/DxeHobLib/HobLib.c +++ b/MdePkg/Library/DxeHobLib/HobLib.c @@ -23,7 +23,7 @@ #include #include -STATIC VOID *mHobList = NULL; +VOID *mHobList = NULL; /** The constructor function caches the pointer to HOB list. diff --git a/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c b/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c index 921d18d6f5..8286f98b00 100644 --- a/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c +++ b/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c @@ -20,7 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // // Globle varible to cache pointer to Smbus protocol. // -STATIC EFI_SMBUS_HC_PROTOCOL *mSmbus = NULL; +EFI_SMBUS_HC_PROTOCOL *mSmbus = NULL; /** The constructor function caches the pointer to Smbus protocol. diff --git a/MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c b/MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c index fc045aeec0..564e50626a 100644 --- a/MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c +++ b/MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c @@ -19,7 +19,7 @@ #include #include -STATIC CONST EFI_PEI_SERVICES **gPeiServices; +CONST EFI_PEI_SERVICES **gPeiServices; /** The function cache the pointer of PEI services to global variable. diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c index 91d77f5fcb..c6661fe70d 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c @@ -34,7 +34,7 @@ // // Template for an end-of-device path node. // -STATIC EFI_DEVICE_PATH_PROTOCOL mEndDevicePath = { +EFI_DEVICE_PATH_PROTOCOL mEndDevicePath = { END_DEVICE_PATH_TYPE, END_ENTIRE_DEVICE_PATH_SUBTYPE, { diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c index a1a8650f0d..6ea34237bc 100644 --- a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c @@ -26,7 +26,7 @@ #include #include -STATIC EFI_DEVICE_PATH_UTILITIES_PROTOCOL *mDevicePathUtilities = NULL; +EFI_DEVICE_PATH_UTILITIES_PROTOCOL *mDevicePathUtilities = NULL; /** The constructor function caches the pointer to DevicePathUtilites protocol. @@ -361,4 +361,3 @@ FileDevicePath ( return DevicePath; } - diff --git a/MdePkg/Library/UefiIfrSupportLib/UefiIfrForm.c b/MdePkg/Library/UefiIfrSupportLib/UefiIfrForm.c index ee981c93ff..c175df2e79 100644 --- a/MdePkg/Library/UefiIfrSupportLib/UefiIfrForm.c +++ b/MdePkg/Library/UefiIfrSupportLib/UefiIfrForm.c @@ -15,8 +15,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "UefiIfrLibraryInternal.h" -STATIC CONST EFI_FORM_BROWSER2_PROTOCOL *mFormBrowser2 = NULL; -STATIC CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *mHiiConfigRouting = NULL; +CONST EFI_FORM_BROWSER2_PROTOCOL *mFormBrowser2 = NULL; +CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *mHiiConfigRouting = NULL; /** This function locate FormBrowser2 protocols for later usage. diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c index a30a95c54c..1fe7c1f620 100644 --- a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c +++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c @@ -18,10 +18,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. /// Driver Lib Module Globals /// -STATIC EFI_EVENT mEfiVirtualNotifyEvent; -STATIC EFI_EVENT mEfiExitBootServicesEvent; -STATIC BOOLEAN mEfiGoneVirtual = FALSE; -STATIC BOOLEAN mEfiAtRuntime = FALSE; +EFI_EVENT mEfiVirtualNotifyEvent; +EFI_EVENT mEfiExitBootServicesEvent; +BOOLEAN mEfiGoneVirtual = FALSE; +BOOLEAN mEfiAtRuntime = FALSE; EFI_RUNTIME_SERVICES *mRT; /** -- 2.39.2