diff options
author | jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 05:58:52 +0000 |
---|---|---|
committer | jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 05:58:52 +0000 |
commit | fe467413d2230a2170bb3ffc91e5e8c909920628 (patch) | |
tree | 7da43ac0a74480310fcd775c9d47b8e86bf07bab /MdePkg/Library | |
parent | 7829726671acec54707ebfd0ac115dfd86b253e9 (diff) | |
download | edk2-platforms-fe467413d2230a2170bb3ffc91e5e8c909920628.tar.xz |
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
Diffstat (limited to 'MdePkg/Library')
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 <Library/MemoryAllocationLib.h>
#include <Library/ExtractGuidedSectionLib.h>
-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 <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
-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 <Library/PeiServicesTablePointerLib.h>
#include <Library/DebugLib.h>
-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 <Library/BaseMemoryLib.h>
#include <Library/UefiBootServicesTableLib.h>
-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;
/**
|