diff options
Diffstat (limited to 'EdkCompatibilityPkg/Sample/Tools/Source/Common')
9 files changed, 64 insertions, 128 deletions
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Common/CommonLib.h b/EdkCompatibilityPkg/Sample/Tools/Source/Common/CommonLib.h index f36856e5fb..44bc53e91c 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/Common/CommonLib.h +++ b/EdkCompatibilityPkg/Sample/Tools/Source/Common/CommonLib.h @@ -32,80 +32,69 @@ VOID PeiZeroMem (
IN VOID *Buffer,
IN UINTN Size
- )
-;
+ );
VOID
PeiCopyMem (
IN VOID *Destination,
IN VOID *Source,
IN UINTN Length
- )
-;
+ );
VOID
ZeroMem (
IN VOID *Buffer,
IN UINTN Size
- )
-;
+ );
VOID
CopyMem (
IN VOID *Destination,
IN VOID *Source,
IN UINTN Length
- )
-;
+ );
INTN
CompareGuid (
IN EFI_GUID *Guid1,
IN EFI_GUID *Guid2
- )
-;
+ );
EFI_STATUS
GetFileImage (
IN CHAR8 *InputFileName,
OUT CHAR8 **InputFileImage,
OUT UINT32 *BytesRead
- )
-;
+ );
UINT8
CalculateChecksum8 (
IN UINT8 *Buffer,
IN UINTN Size
- )
-;
+ );
UINT8
CalculateSum8 (
IN UINT8 *Buffer,
IN UINTN Size
- )
-;
+ );
UINT16
CalculateChecksum16 (
IN UINT16 *Buffer,
IN UINTN Size
- )
-;
+ );
UINT16
CalculateSum16 (
IN UINT16 *Buffer,
IN UINTN Size
- )
-;
+ );
EFI_STATUS
PrintGuid (
IN EFI_GUID *Guid
- )
-;
+ );
#define PRINTED_GUID_BUFFER_SIZE 37 // including null-termination
EFI_STATUS
@@ -114,7 +103,6 @@ PrintGuidToBuffer ( IN OUT UINT8 *Buffer,
IN UINT32 BufferLen,
IN BOOLEAN Uppercase
- )
-;
+ );
#endif
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Common/Compress.h b/EdkCompatibilityPkg/Sample/Tools/Source/Common/Compress.h index 43535936a6..f0e0ecb6cf 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/Common/Compress.h +++ b/EdkCompatibilityPkg/Sample/Tools/Source/Common/Compress.h @@ -36,8 +36,7 @@ TianoCompress ( IN UINT32 SrcSize,
IN UINT8 *DstBuffer,
IN OUT UINT32 *DstSize
- )
-;
+ );
/*++
@@ -52,8 +51,7 @@ EfiCompress ( IN UINT32 SrcSize,
IN UINT8 *DstBuffer,
IN OUT UINT32 *DstSize
- )
-;
+ );
/*++
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Common/Crc32.h b/EdkCompatibilityPkg/Sample/Tools/Source/Common/Crc32.h index 170711a677..c2d062d256 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/Common/Crc32.h +++ b/EdkCompatibilityPkg/Sample/Tools/Source/Common/Crc32.h @@ -26,8 +26,7 @@ CalculateCrc32 ( IN UINT8 *Data,
IN UINTN DataSize,
IN OUT UINT32 *CrcOut
- )
-;
+ );
/*++
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Common/EfiCustomizedCompress.h b/EdkCompatibilityPkg/Sample/Tools/Source/Common/EfiCustomizedCompress.h index d1fa22066e..2a7b8d1569 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/Common/EfiCustomizedCompress.h +++ b/EdkCompatibilityPkg/Sample/Tools/Source/Common/EfiCustomizedCompress.h @@ -24,8 +24,7 @@ Abstract: EFI_STATUS
SetCustomizedCompressionType (
IN CHAR8 *Type
- )
-;
+ );
/*++
@@ -49,8 +48,7 @@ CustomizedGetInfo ( IN UINT32 SrcSize,
OUT UINT32 *DstSize,
OUT UINT32 *ScratchSize
- )
-;
+ );
/*++
@@ -79,8 +77,7 @@ CustomizedDecompress ( IN UINT32 DstSize,
IN OUT VOID *Scratch,
IN UINT32 ScratchSize
- )
-;
+ );
/*++
@@ -110,8 +107,7 @@ CustomizedCompress ( IN UINT32 SrcSize,
IN UINT8 *DstBuffer,
IN OUT UINT32 *DstSize
- )
-;
+ );
/*++
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Common/EfiUtilityMsgs.h b/EdkCompatibilityPkg/Sample/Tools/Source/Common/EfiUtilityMsgs.h index 2da1fe58f6..65b1c7f9c2 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/Common/EfiUtilityMsgs.h +++ b/EdkCompatibilityPkg/Sample/Tools/Source/Common/EfiUtilityMsgs.h @@ -53,8 +53,7 @@ GetUtilityStatus ( void
SetUtilityName (
INT8 *ProgramName
- )
-;
+ );
void
Error (
@@ -64,8 +63,7 @@ Error ( INT8 *OffendingText,
INT8 *MsgFmt,
...
- )
-;
+ );
void
Warning (
@@ -75,8 +73,7 @@ Warning ( INT8 *OffendingText,
INT8 *MsgFmt,
...
- )
-;
+ );
void
DebugMsg (
@@ -86,21 +83,18 @@ DebugMsg ( INT8 *OffendingText,
INT8 *MsgFmt,
...
- )
-;
+ );
void
SetDebugMsgMask (
UINT32 MsgMask
- )
-;
+ );
void
ParserSetPosition (
INT8 *SourceFileName,
UINT32 LineNum
- )
-;
+ );
void
ParserError (
@@ -108,8 +102,7 @@ ParserError ( INT8 *OffendingText,
INT8 *MsgFmt,
...
- )
-;
+ );
void
ParserWarning (
@@ -117,16 +110,14 @@ ParserWarning ( INT8 *OffendingText,
INT8 *MsgFmt,
...
- )
-;
+ );
void
SetPrintLimits (
UINT32 NumErrors,
UINT32 NumWarnings,
UINT32 NumWarningsPlusErrors
- )
-;
+ );
#ifdef __cplusplus
}
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Common/FvLib.h b/EdkCompatibilityPkg/Sample/Tools/Source/Common/FvLib.h index 4b7ef0a332..88c40cdbcb 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/Common/FvLib.h +++ b/EdkCompatibilityPkg/Sample/Tools/Source/Common/FvLib.h @@ -34,37 +34,32 @@ EFI_STATUS InitializeFvLib (
IN VOID *Fv,
IN UINT32 FvLength
- )
-;
+ );
EFI_STATUS
GetFvHeader (
OUT EFI_FIRMWARE_VOLUME_HEADER **FvHeader,
OUT UINT32 *FvLength
- )
-;
+ );
EFI_STATUS
GetNextFile (
IN EFI_FFS_FILE_HEADER *CurrentFile,
OUT EFI_FFS_FILE_HEADER **NextFile
- )
-;
+ );
EFI_STATUS
GetFileByName (
IN EFI_GUID *FileName,
OUT EFI_FFS_FILE_HEADER **File
- )
-;
+ );
EFI_STATUS
GetFileByType (
IN EFI_FV_FILETYPE FileType,
IN UINTN Instance,
OUT EFI_FFS_FILE_HEADER **File
- )
-;
+ );
EFI_STATUS
GetSectionByType (
@@ -72,22 +67,19 @@ GetSectionByType ( IN EFI_SECTION_TYPE SectionType,
IN UINTN Instance,
OUT EFI_FILE_SECTION_POINTER *Section
- )
-;
+ );
//
// will not parse compressed sections
//
EFI_STATUS
VerifyFv (
IN EFI_FIRMWARE_VOLUME_HEADER *FvHeader
- )
-;
+ );
EFI_STATUS
VerifyFfsFile (
IN EFI_FFS_FILE_HEADER *FfsHeader
- )
-;
+ );
/*++
@@ -109,8 +101,7 @@ Returns: UINT32
GetLength (
UINT8 *ThreeByteLength
- )
-;
+ );
/*++
@@ -130,8 +121,7 @@ Returns: EFI_STATUS
GetErasePolarity (
OUT BOOLEAN *ErasePolarity
- )
-;
+ );
/*++
@@ -154,8 +144,7 @@ UINT8 GetFileState (
IN BOOLEAN ErasePolarity,
IN EFI_FFS_FILE_HEADER *FfsHeader
- )
-;
+ );
/*++
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Common/MyAlloc.h b/EdkCompatibilityPkg/Sample/Tools/Source/Common/MyAlloc.h index 2d195c2561..5cfb4e0cab 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/Common/MyAlloc.h +++ b/EdkCompatibilityPkg/Sample/Tools/Source/Common/MyAlloc.h @@ -89,8 +89,7 @@ MyCheck ( BOOLEAN Final,
UINT8 File[],
UINTN Line
- )
-;
+ );
//
// *++
// Description:
@@ -121,8 +120,7 @@ MyAlloc ( UINTN Size,
UINT8 File[],
UINTN Line
- )
-;
+ );
//
// *++
// Description:
@@ -153,8 +151,7 @@ MyRealloc ( UINTN Size,
UINT8 File[],
UINTN Line
- )
-;
+ );
//
// *++
// Description:
@@ -185,8 +182,7 @@ MyFree ( VOID *Ptr,
UINT8 File[],
UINTN Line
- )
-;
+ );
//
// *++
// Description:
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Common/ParseInf.h b/EdkCompatibilityPkg/Sample/Tools/Source/Common/ParseInf.h index 0b4fec7a1f..32b94bc69f 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/Common/ParseInf.h +++ b/EdkCompatibilityPkg/Sample/Tools/Source/Common/ParseInf.h @@ -43,8 +43,7 @@ ReadLine ( IN MEMORY_FILE *InputFile,
IN OUT CHAR8 *InputBuffer,
IN UINT32 MaxLength
- )
-;
+ );
/*++
@@ -73,8 +72,7 @@ BOOLEAN FindSection (
IN MEMORY_FILE *InputFile,
IN CHAR8 *Section
- )
-;
+ );
/*++
@@ -101,8 +99,7 @@ FindToken ( IN CHAR8 *Token,
IN UINTN Instance,
OUT CHAR8 *Value
- )
-;
+ );
/*++
@@ -131,8 +128,7 @@ EFI_STATUS StringToGuid (
IN CHAR8 *AsciiGuidBuffer,
OUT EFI_GUID *GuidBuffer
- )
-;
+ );
/*++
@@ -157,8 +153,7 @@ AsciiStringToUint64 ( IN CONST CHAR8 *AsciiString,
IN BOOLEAN IsHex,
OUT UINT64 *ReturnValue
- )
-;
+ );
/*++
@@ -185,8 +180,7 @@ CHAR8 * ReadLineInStream (
IN FILE *InputFile,
IN OUT CHAR8 *InputBuffer
- )
-;
+ );
/*++
@@ -209,8 +203,7 @@ BOOLEAN FindSectionInStream (
IN FILE *InputFile,
IN CHAR8 *Section
- )
-;
+ );
/*++
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Common/SimpleFileParsing.h b/EdkCompatibilityPkg/Sample/Tools/Source/Common/SimpleFileParsing.h index ee59a6d8d4..67e4fdf37b 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/Common/SimpleFileParsing.h +++ b/EdkCompatibilityPkg/Sample/Tools/Source/Common/SimpleFileParsing.h @@ -27,40 +27,34 @@ Abstract: STATUS
SFPInit (
VOID
- )
-;
+ );
STATUS
SFPOpenFile (
char *FileName
- )
-;
+ );
BOOLEAN
SFPIsKeyword (
T_CHAR *Str
- )
-;
+ );
BOOLEAN
SFPIsToken (
T_CHAR *Str
- )
-;
+ );
BOOLEAN
SFPGetNextToken (
T_CHAR *Str,
unsigned int Len
- )
-;
+ );
BOOLEAN
SFPGetGuidToken (
T_CHAR *Str,
UINT32 Len
- )
-;
+ );
#define PARSE_GUID_STYLE_5_FIELDS 0
@@ -68,51 +62,43 @@ BOOLEAN SFPGetGuid (
int GuidStyle,
EFI_GUID *Value
- )
-;
+ );
BOOLEAN
SFPSkipToToken (
T_CHAR *Str
- )
-;
+ );
BOOLEAN
SFPGetNumber (
unsigned int *Value
- )
-;
+ );
BOOLEAN
SFPGetQuotedString (
T_CHAR *Str,
int Length
- )
-;
+ );
BOOLEAN
SFPIsEOF (
VOID
- )
-;
+ );
STATUS
SFPCloseFile (
VOID
- )
-;
+ );
unsigned
int
SFPGetLineNumber (
VOID
- )
-;
+ );
T_CHAR *
SFPGetFileName (
VOID
- )
-;
+ );
#endif // #ifndef _SIMPLE_FILE_PARSING_H_
|