Refine MdePkg library instances: Remove unnecessary EFIAPI modifier for library worker functions, fix some typos, etc

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6790 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2008-12-01 13:46:34 +00:00
parent b17f9e9526
commit 0057fda613
5 changed files with 7 additions and 10 deletions

View File

@ -27,12 +27,12 @@ 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.
Constructor allocates the global memory to store the registered guid and Handler list.
@param ImageHandle The firmware allocated handle for the EFI image.
@param SystemTable A pointer to the EFI System Table.
@retval RETURN_SUCCESS Allocate the global memory space to store guid and funciton tables.
@retval RETURN_SUCCESS Allocate the global memory space to store guid and function tables.
@retval RETURN_OUT_OF_RESOURCES No enough memory to allocated.
**/
RETURN_STATUS
@ -74,7 +74,7 @@ DxeExtractGuidedSectionLibConstructor (
and caller must treat this array of GUIDs as read-only data.
If ExtractHandlerGuidTable is NULL, then ASSERT().
@param[out] ExtractHandlerGuidTable A pointer to the array of GUIDs tht have been registerd through
@param[out] ExtractHandlerGuidTable A pointer to the array of GUIDs that have been registered through
ExtractGuidedSectionRegisterHandlers().
@return the number of the supported extract guided Handler.
@ -96,7 +96,7 @@ ExtractGuidedSectionGetGuidList (
Registers handlers of type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER and EXTRACT_GUIDED_SECTION_DECODE_HANDLER
for a specific GUID section type.
Registers the handlers specified by GetInfoHandler and DecodeHandler witg the GUID specified by SectionGuid.
Registers the handlers specified by GetInfoHandler and DecodeHandler with the GUID specified by SectionGuid.
If the GUID value specified by SectionGuid has already been registered, then return RETURN_ALREADY_STARTED.
If there are not enough resources available to register the handlers then RETURN_OUT_OF_RESOURCES is returned.
If SectionGuid is NULL, then ASSERT().
@ -164,7 +164,7 @@ ExtractGuidedSectionRegisterHandlers (
}
/**
Retrives a GUID from a GUIDed section and uses that GUID to select an associated handler of type
Retrieves a GUID from a GUIDed section and uses that GUID to select an associated handler of type
EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER that was registered with ExtractGuidedSectionRegisterHandlers().
The selected handler is used to retrieve and return the size of the decoded buffer and the size of an
optional scratch buffer required to actually decode the data in a GUIDed section.
@ -236,7 +236,7 @@ ExtractGuidedSectionGetInfo (
}
/**
Retrives the GUID from a GUIDed section and uses that GUID to select an associated handler of type
Retrieves the GUID from a GUIDed section and uses that GUID to select an associated handler of type
EXTRACT_GUIDED_SECTION_DECODE_HANDLER that was registered with ExtractGuidedSectionRegisterHandlers().
The selected handler is used to decode the data in a GUIDed section and return the result in a caller
allocated output buffer.

View File

@ -40,7 +40,6 @@ typedef struct {
@retval RETURN_OUT_OF_RESOURCES No enough memory to allocated.
**/
RETURN_STATUS
EFIAPI
PeiGetExtractGuidedSectionHandlerInfo (
IN OUT PEI_EXTRACT_GUIDED_SECTION_HANDLER_INFO **InfoPointer
)

View File

@ -658,7 +658,6 @@ AllocateReservedCopyPool (
**/
VOID *
EFIAPI
InternalReallocatePool (
IN EFI_MEMORY_TYPE PoolType,
IN UINTN OldSize,

View File

@ -15,7 +15,7 @@
#include "UefiLibInternal.h"
EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = {
GLOBAL_REMOVE_IF_UNREFERENCED EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = {
{ 0x00, 0x00, 0x00, 0x00 },
{ 0x98, 0x00, 0x00, 0x00 },
{ 0x00, 0x98, 0x00, 0x00 },

View File

@ -675,7 +675,6 @@ AllocateReservedCopyPool (
**/
VOID *
EFIAPI
InternalReallocatePool (
IN EFI_MEMORY_TYPE PoolType,
IN UINTN OldSize,