BaseTools: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
LzmaUtil.c -- Test application for LZMA compression
|
||||
2016-10-04 : Igor Pavlov : Public domain
|
||||
|
||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -33,7 +33,7 @@
|
||||
#define LZMA_HEADER_SIZE (LZMA_PROPS_SIZE + 8)
|
||||
|
||||
typedef enum {
|
||||
NoConverter,
|
||||
NoConverter,
|
||||
X86Converter,
|
||||
MaxConverter
|
||||
} CONVERTER_TYPE;
|
||||
@@ -50,7 +50,7 @@ static CONVERTER_TYPE mConType = NoConverter;
|
||||
#define UTILITY_MAJOR_VERSION 0
|
||||
#define UTILITY_MINOR_VERSION 2
|
||||
#define INTEL_COPYRIGHT \
|
||||
"Copyright (c) 2009-2016, Intel Corporation. All rights reserved."
|
||||
"Copyright (c) 2009-2018, Intel Corporation. All rights reserved."
|
||||
void PrintHelp(char *buffer)
|
||||
{
|
||||
strcat(buffer,
|
||||
@@ -113,7 +113,7 @@ static SRes Encode(ISeqOutStream *outStream, ISeqInStream *inStream, UInt64 file
|
||||
} else {
|
||||
return SZ_ERROR_INPUT_EOF;
|
||||
}
|
||||
|
||||
|
||||
if (SeqInStream_Read(inStream, inBuffer, inSize) != SZ_OK) {
|
||||
res = SZ_ERROR_READ;
|
||||
goto Done;
|
||||
@@ -126,7 +126,7 @@ static SRes Encode(ISeqOutStream *outStream, ISeqInStream *inStream, UInt64 file
|
||||
res = SZ_ERROR_MEM;
|
||||
goto Done;
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 8; i++)
|
||||
@@ -141,7 +141,7 @@ static SRes Encode(ISeqOutStream *outStream, ISeqInStream *inStream, UInt64 file
|
||||
goto Done;
|
||||
}
|
||||
memcpy(filteredStream, inBuffer, inSize);
|
||||
|
||||
|
||||
if (mConType == X86Converter) {
|
||||
{
|
||||
UInt32 x86State;
|
||||
@@ -154,12 +154,12 @@ static SRes Encode(ISeqOutStream *outStream, ISeqInStream *inStream, UInt64 file
|
||||
{
|
||||
size_t outSizeProcessed = outSize - LZMA_HEADER_SIZE;
|
||||
size_t outPropsSize = LZMA_PROPS_SIZE;
|
||||
|
||||
|
||||
res = LzmaEncode(outBuffer + LZMA_HEADER_SIZE, &outSizeProcessed,
|
||||
mConType != NoConverter ? filteredStream : inBuffer, inSize,
|
||||
&props, outBuffer, &outPropsSize, 0,
|
||||
NULL, &g_Alloc, &g_Alloc);
|
||||
|
||||
|
||||
if (res != SZ_OK)
|
||||
goto Done;
|
||||
|
||||
@@ -190,13 +190,13 @@ static SRes Decode(ISeqOutStream *outStream, ISeqInStream *inStream, UInt64 file
|
||||
|
||||
int i;
|
||||
|
||||
if (inSize < LZMA_HEADER_SIZE)
|
||||
if (inSize < LZMA_HEADER_SIZE)
|
||||
return SZ_ERROR_INPUT_EOF;
|
||||
|
||||
inBuffer = (Byte *)MyAlloc(inSize);
|
||||
if (inBuffer == 0)
|
||||
return SZ_ERROR_MEM;
|
||||
|
||||
|
||||
if (SeqInStream_Read(inStream, inBuffer, inSize) != SZ_OK) {
|
||||
res = SZ_ERROR_READ;
|
||||
goto Done;
|
||||
|
Reference in New Issue
Block a user