clean up the un-suitable ';' location when declaring the functions. The regular is ")[ ]++^p;"

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5821 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff
2008-09-04 09:44:58 +00:00
parent ed66e1bc0d
commit e00e1d4694
57 changed files with 314 additions and 628 deletions

View File

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

View File

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

View File

@@ -26,8 +26,7 @@ CalculateCrc32 (
IN UINT8 *Data,
IN UINTN DataSize,
IN OUT UINT32 *CrcOut
)
;
);
/*++

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -62,8 +62,7 @@ GenerateFvImage (
OUT UINT8 **SymImage,
OUT UINTN *SymImageSize,
OUT CHAR8 **SymFileName
)
;
);
/*++
@@ -94,8 +93,7 @@ EFI_STATUS
UpdatePeiCoreEntryInFit (
IN FIT_TABLE *FitTablePtr,
IN UINT64 PeiCorePhysicalAddress
)
;
);
/*++
@@ -118,8 +116,7 @@ Returns:
VOID
UpdateFitCheckSum (
IN FIT_TABLE *FitTablePtr
)
;
);
/*++

View File

@@ -206,7 +206,6 @@ EFI_STATUS
ParseFvInf (
IN MEMORY_FILE *InfFile,
IN FV_INFO *FvInfo
)
;
);
#endif

View File

@@ -51,7 +51,6 @@ typedef struct _STRING_LIST {
int
CreateGuidList (
INT8 *OutFileName
)
;
);
#endif // #ifndef _COMMON_UTILS_H_

View File

@@ -64,45 +64,38 @@ typedef struct {
STATUS
FileSearchInit (
FILE_SEARCH_DATA *FSData
)
;
);
STATUS
FileSearchDestroy (
FILE_SEARCH_DATA *FSData
)
;
);
STATUS
FileSearchStart (
FILE_SEARCH_DATA *FSData,
char *FileMask,
UINT32 SearchFlags
)
;
);
STATUS
FileSearchFindNext (
FILE_SEARCH_DATA *FSData
)
;
);
STATUS
FileSearchExcludeDirs (
FILE_SEARCH_DATA *FSData,
STRING_LIST *StrList
)
;
);
STATUS
FileSearchExcludeExtensions (
FILE_SEARCH_DATA *FSData,
STRING_LIST *StrList
)
;
);
STATUS
FileSearchExcludeFiles (
FILE_SEARCH_DATA *FSData,
STRING_LIST *StrList
)
;
);
#endif

View File

@@ -25,8 +25,7 @@ Abstract:
STATUS
GetUtilityStatus (
VOID
)
;
);
//
// If someone prints an error message and didn't specify a source file name,
@@ -36,8 +35,7 @@ GetUtilityStatus (
VOID
SetUtilityName (
INT8 *ProgramName
)
;
);
void
Error (
@@ -47,8 +45,7 @@ Error (
INT8 *OffendingText,
INT8 *MsgFmt,
...
)
;
);
void
Warning (
@@ -58,8 +55,7 @@ Warning (
INT8 *OffendingText,
INT8 *MsgFmt,
...
)
;
);
void
DebugMsg (
@@ -69,21 +65,18 @@ DebugMsg (
INT8 *OffendingText,
INT8 *MsgFmt,
...
)
;
);
void
SetDebugMsgMask (
UINT32 MsgMask
)
;
);
void
ParserSetPosition (
INT8 *SourceFileName,
UINT32 LineNum
)
;
);
void
ParserError (
@@ -91,8 +84,7 @@ ParserError (
INT8 *OffendingText,
INT8 *MsgFmt,
...
)
;
);
void
ParserWarning (
@@ -100,7 +92,6 @@ ParserWarning (
INT8 *OffendingText,
INT8 *MsgFmt,
...
)
;
);
#endif

View File

@@ -70,40 +70,33 @@ int
DSCFileSetFile (
DSC_FILE *DSC,
char *FileName
)
;
);
SECTION *
DSCFileFindSection (
DSC_FILE *DSC,
char *Name
)
;
);
int
DSCFileSavePosition (
DSC_FILE *DSC
)
;
);
int
DSCFileRestorePosition (
DSC_FILE *DSC
)
;
);
char *
DSCFileGetLine (
DSC_FILE *DSC,
char *Line,
int LineLen
)
;
);
int
DSCFileInit (
DSC_FILE *DSC
)
;
);
int
DSCFileDestroy (
DSC_FILE *DSC
)
;
);
#endif // ifndef _DSC_FILE_H_

View File

@@ -31,27 +31,22 @@ Abstract:
int
InitExceptions (
VOID
)
;
);
int
TryException (
VOID
)
;
);
char *
CatchException (
VOID
)
;
);
int
ExceptionThrown (
VOID
)
;
);
int
ThrowException (
char *EMsg
)
;
);
#endif // ifndef _EXCEPTIONS_H_

View File

@@ -31,13 +31,11 @@ Abstract:
void
CFVConstructor (
VOID
)
;
);
void
CFVDestructor (
VOID
)
;
);
int
CFVAddFVFile (
@@ -50,27 +48,23 @@ CFVAddFVFile (
char *Apriori,
char *BaseName,
char *Guid
)
;
);
int
CFVSetXRefFileName (
char *FileName
)
;
);
int
CFVWriteInfFiles (
DSC_FILE *DSC,
FILE *MakeFptr
)
;
);
int
NonFFSFVWriteInfFiles (
DSC_FILE *DSC,
char *FileName
)
;
);
#endif // ifndef _FW_VOLUME_H_

View File

@@ -28,13 +28,11 @@ Abstract:
void
StringDBConstructor (
void
)
;
);
void
StringDBDestructor (
void
)
;
);
STATUS
StringDBAddString (
@@ -44,14 +42,12 @@ StringDBAddString (
WCHAR *String,
BOOLEAN Format,
UINT16 Flags
)
;
);
STATUS
StringDBSetScope (
WCHAR *Scope
)
;
);
#define STRING_FLAGS_REFERENCED 0x0001 // if referenced somewhere
#define STRING_FLAGS_UNDEFINED 0x0002 // if we added it for padding purposes
@@ -65,38 +61,33 @@ StringDBAddStringIdentifier (
WCHAR *StringIdentifier,
UINT16 *NewId,
UINT16 Flags
)
;
);
STATUS
StringDBReadDatabase (
INT8 *DBFileName,
BOOLEAN IgnoreIfNotExist,
BOOLEAN Verbose
)
;
);
STATUS
StringDBWriteDatabase (
INT8 *DBFileName,
BOOLEAN Verbose
)
;
);
STATUS
StringDBDumpDatabase (
INT8 *DBFileName,
INT8 *OutputFileName,
BOOLEAN Verbose
)
;
);
STATUS
StringDBAddLanguage (
WCHAR *LanguageName,
WCHAR *PrintableLanguageName
)
;
);
STATUS
StringDBDumpCStrings (
@@ -104,33 +95,28 @@ StringDBDumpCStrings (
INT8 *BaseName,
WCHAR_STRING_LIST *LanguagesOfInterest,
WCHAR_MATCHING_STRING_LIST *IndirectionList
)
;
);
STATUS
StringDBDumpStringDefines (
INT8 *FileName,
INT8 *BaseName
)
;
);
STATUS
StringDBSetCurrentLanguage (
WCHAR *LanguageName
)
;
);
STATUS
StringDBSetStringReferenced (
INT8 *StringIdentifierName,
BOOLEAN IgnoreNotFound
)
;
);
void
StringDBFormatString (
WCHAR *String
)
;
);
#endif // #ifndef _STRING_DB_H_

View File

@@ -134,13 +134,11 @@ typedef struct _SPkgBlkBuffer {
void
StringDBConstructor (
void
)
;
);
void
StringDBDestructor (
void
)
;
);
STATUS
StringDBAddString (
@@ -150,14 +148,12 @@ StringDBAddString (
WCHAR *String,
BOOLEAN Format,
UINT16 Flags
)
;
);
STATUS
StringDBSetScope (
WCHAR *Scope
)
;
);
#define STRING_FLAGS_REFERENCED 0x0001 // if referenced somewhere
#define STRING_FLAGS_UNDEFINED 0x0002 // if we added it for padding purposes
@@ -171,84 +167,72 @@ StringDBAddStringIdentifier (
WCHAR *StringIdentifier,
UINT16 *NewId,
UINT16 Flags
)
;
);
STATUS
StringDBReadDatabase (
INT8 *DBFileName,
BOOLEAN IgnoreIfNotExist,
BOOLEAN Verbose
)
;
);
STATUS
StringDBWriteDatabase (
INT8 *DBFileName,
BOOLEAN Verbose
)
;
);
STATUS
StringDBDumpDatabase (
INT8 *DBFileName,
INT8 *OutputFileName,
BOOLEAN Verbose
)
;
);
STATUS
StringDBAddLanguage (
WCHAR *LanguageName,
WCHAR *PrintableLanguageName,
WCHAR *SecondaryLanguageList
)
;
);
STATUS
StringDBAddSecondaryLanguage (
WCHAR *LanguageName,
WCHAR *SecondaryLanguageList
)
;
);
STATUS
StringDBDumpCStrings (
INT8 *BaseName,
INT8 *FileName
)
;
);
STATUS
StringDBDumpStringDefines (
INT8 *FileName,
INT8 *BaseName
)
;
);
STATUS
StringDBSetCurrentLanguage (
WCHAR *LanguageName
)
;
);
STATUS
StringDBSetStringReferenced (
INT8 *StringIdentifierName,
BOOLEAN IgnoreNotFound
)
;
);
void
StringDBFormatString (
WCHAR *String
)
;
);
LANGUAGE_LIST *
StringDBFindLanguageList (
WCHAR *LanguageName
)
;
);
#endif // #ifndef _STRING_DB_H_