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
This commit is contained in:
jji4 2008-10-30 05:58:52 +00:00
parent 7829726671
commit fe467413d2
8 changed files with 15 additions and 16 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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,
{

View File

@ -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;
}

View File

@ -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.

View File

@ -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;
/**