]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Various typo
authorAntoine Coeur <Coeur@gmx.fr>
Wed, 6 Feb 2019 07:44:39 +0000 (15:44 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 14 Feb 2019 02:02:28 +0000 (10:02 +0800)
Various typo in BaseTools.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Coeur <coeur@gmx.fr>
Reviewed-by: Liming Gao <liming.gao@intel.com>
172 files changed:
BaseTools/Bin/CYGWIN_NT-5.1-i686/armcc_wrapper.py
BaseTools/Conf/XMLSchema/DistributionPackage.xsd
BaseTools/Conf/build_rule.template
BaseTools/Conf/target.template
BaseTools/Conf/tools_def.template
BaseTools/ReadMe.txt
BaseTools/Scripts/UpdateBuildVersions.py
BaseTools/Source/C/Common/BasePeCoff.c
BaseTools/Source/C/Common/CommonLib.c
BaseTools/Source/C/Common/Crc32.c
BaseTools/Source/C/Common/Crc32.h
BaseTools/Source/C/Common/Decompress.c
BaseTools/Source/C/Common/Decompress.h
BaseTools/Source/C/Common/EfiCompress.c
BaseTools/Source/C/Common/EfiUtilityMsgs.c
BaseTools/Source/C/Common/FvLib.c
BaseTools/Source/C/Common/OsPath.c
BaseTools/Source/C/Common/OsPath.h
BaseTools/Source/C/Common/ParseGuidedSectionTools.c
BaseTools/Source/C/Common/ParseInf.c
BaseTools/Source/C/Common/ParseInf.h
BaseTools/Source/C/Common/PcdValueCommon.c
BaseTools/Source/C/Common/PeCoffLib.h
BaseTools/Source/C/Common/PeCoffLoaderEx.c
BaseTools/Source/C/Common/SimpleFileParsing.c
BaseTools/Source/C/Common/StringFuncs.h
BaseTools/Source/C/Common/TianoCompress.c
BaseTools/Source/C/Common/WinNtInclude.h
BaseTools/Source/C/DevicePath/DevicePath.c
BaseTools/Source/C/DevicePath/DevicePathUtilities.c
BaseTools/Source/C/DevicePath/UefiDevicePathLib.c
BaseTools/Source/C/EfiRom/EfiRom.c
BaseTools/Source/C/GenCrc32/GenCrc32.c
BaseTools/Source/C/GenFv/GenFvInternalLib.c
BaseTools/Source/C/GenFv/GenFvInternalLib.h
BaseTools/Source/C/GenFw/Elf32Convert.c
BaseTools/Source/C/GenFw/Elf64Convert.c
BaseTools/Source/C/GenFw/ElfConvert.h
BaseTools/Source/C/GenFw/GenFw.c
BaseTools/Source/C/GenSec/GenSec.c
BaseTools/Source/C/Include/AArch64/ProcessorBind.h
BaseTools/Source/C/Include/Arm/ProcessorBind.h
BaseTools/Source/C/Include/Common/BaseTypes.h
BaseTools/Source/C/Include/Common/MdeModuleHii.h
BaseTools/Source/C/Include/Common/PiFirmwareVolume.h
BaseTools/Source/C/Include/Common/UefiMultiPhase.h
BaseTools/Source/C/Include/Ia32/ProcessorBind.h
BaseTools/Source/C/Include/IndustryStandard/Acpi2_0.h
BaseTools/Source/C/Include/IndustryStandard/Acpi3_0.h
BaseTools/Source/C/Include/IndustryStandard/pci22.h
BaseTools/Source/C/Include/Protocol/DevicePathUtilities.h
BaseTools/Source/C/Include/Protocol/GraphicsOutput.h
BaseTools/Source/C/Include/Protocol/GuidedSectionExtraction.h
BaseTools/Source/C/Include/Protocol/UgaDraw.h
BaseTools/Source/C/Include/X64/ProcessorBind.h
BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.h
BaseTools/Source/C/LzmaCompress/Sdk/DOC/lzma-history.txt
BaseTools/Source/C/LzmaCompress/Sdk/DOC/lzma-sdk.txt
BaseTools/Source/C/Split/Split.c
BaseTools/Source/C/TianoCompress/TianoCompress.c
BaseTools/Source/C/VfrCompile/Pccts/CHANGES_FROM_133.txt
BaseTools/Source/C/VfrCompile/Pccts/CHANGES_FROM_133_BEFORE_MR13.txt
BaseTools/Source/C/VfrCompile/Pccts/CHANGES_SUMMARY.txt
BaseTools/Source/C/VfrCompile/Pccts/KNOWN_PROBLEMS.txt
BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c
BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.g
BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.r
BaseTools/Source/C/VfrCompile/Pccts/antlr/egman.c
BaseTools/Source/C/VfrCompile/Pccts/antlr/fset.c
BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c
BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c
BaseTools/Source/C/VfrCompile/Pccts/antlr/generic.h
BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c
BaseTools/Source/C/VfrCompile/Pccts/antlr/mrhoist.c
BaseTools/Source/C/VfrCompile/Pccts/dlg/automata.c
BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.h
BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.r
BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c
BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g
BaseTools/Source/C/VfrCompile/Pccts/dlg/relabel.c
BaseTools/Source/C/VfrCompile/Pccts/h/ATokPtrImpl.h
BaseTools/Source/C/VfrCompile/Pccts/h/DLG_stream_input.h
BaseTools/Source/C/VfrCompile/Pccts/h/antlr.h
BaseTools/Source/C/VfrCompile/VfrCompiler.h
BaseTools/Source/C/VfrCompile/VfrError.cpp
BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp
BaseTools/Source/C/VfrCompile/VfrSyntax.g
BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools/Source/Python/AutoGen/BuildEngine.py
BaseTools/Source/Python/AutoGen/GenMake.py
BaseTools/Source/Python/AutoGen/GenPcdDb.py
BaseTools/Source/Python/AutoGen/InfSectionParser.py
BaseTools/Source/Python/AutoGen/UniClassObject.py
BaseTools/Source/Python/Common/BuildToolError.py
BaseTools/Source/Python/Common/EdkLogger.py
BaseTools/Source/Python/Common/Misc.py
BaseTools/Source/Python/Common/MultipleWorkspace.py
BaseTools/Source/Python/Common/Parsing.py
BaseTools/Source/Python/Common/RangeExpression.py
BaseTools/Source/Python/Common/StringUtils.py
BaseTools/Source/Python/CommonDataClass/CommonClass.py
BaseTools/Source/Python/CommonDataClass/DataClass.py
BaseTools/Source/Python/Ecc/C.g
BaseTools/Source/Python/Ecc/CParser3/CLexer.py
BaseTools/Source/Python/Ecc/CParser3/CParser.py
BaseTools/Source/Python/Ecc/Check.py
BaseTools/Source/Python/Ecc/Database.py
BaseTools/Source/Python/Ecc/EccMain.py
BaseTools/Source/Python/Ecc/EccToolError.py
BaseTools/Source/Python/Ecc/MetaDataParser.py
BaseTools/Source/Python/Ecc/c.py
BaseTools/Source/Python/Eot/CParser3/CLexer.py
BaseTools/Source/Python/Eot/CParser3/CParser.py
BaseTools/Source/Python/Eot/CodeFragmentCollector.py
BaseTools/Source/Python/Eot/Database.py
BaseTools/Source/Python/Eot/EotGlobalData.py
BaseTools/Source/Python/Eot/EotMain.py
BaseTools/Source/Python/Eot/InfParserLite.py
BaseTools/Source/Python/Eot/Parser.py
BaseTools/Source/Python/Eot/Report.py
BaseTools/Source/Python/GenFds/FdfParser.py
BaseTools/Source/Python/GenFds/FfsInfStatement.py
BaseTools/Source/Python/GenFds/Fv.py
BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py
BaseTools/Source/Python/Table/Table.py
BaseTools/Source/Python/Table/TableFunction.py
BaseTools/Source/Python/Table/TableQuery.py
BaseTools/Source/Python/TargetTool/TargetTool.py
BaseTools/Source/Python/Trim/Trim.py
BaseTools/Source/Python/UPT/Core/DependencyRules.py
BaseTools/Source/Python/UPT/Core/IpiDb.py
BaseTools/Source/Python/UPT/GenMetaFile/GenDecFile.py
BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py
BaseTools/Source/Python/UPT/InstallPkg.py
BaseTools/Source/Python/UPT/Library/CommentParsing.py
BaseTools/Source/Python/UPT/Library/DataType.py
BaseTools/Source/Python/UPT/Library/GlobalData.py
BaseTools/Source/Python/UPT/Library/Misc.py
BaseTools/Source/Python/UPT/Library/ParserValidate.py
BaseTools/Source/Python/UPT/Library/Parsing.py
BaseTools/Source/Python/UPT/Library/StringUtils.py
BaseTools/Source/Python/UPT/Library/UniClassObject.py
BaseTools/Source/Python/UPT/Logger/Log.py
BaseTools/Source/Python/UPT/Logger/StringTable.py
BaseTools/Source/Python/UPT/Logger/ToolError.py
BaseTools/Source/Python/UPT/MkPkg.py
BaseTools/Source/Python/UPT/Object/Parser/DecObject.py
BaseTools/Source/Python/UPT/Parser/DecParser.py
BaseTools/Source/Python/UPT/Parser/InfAsBuiltProcess.py
BaseTools/Source/Python/UPT/PomAdapter/DecPomAlignment.py
BaseTools/Source/Python/UPT/PomAdapter/InfPomAlignment.py
BaseTools/Source/Python/UPT/PomAdapter/InfPomAlignmentMisc.py
BaseTools/Source/Python/UPT/RmPkg.py
BaseTools/Source/Python/UPT/UnitTest/DecParserUnitTest.py
BaseTools/Source/Python/Workspace/BuildClassObject.py
BaseTools/Source/Python/Workspace/DecBuildData.py
BaseTools/Source/Python/Workspace/DscBuildData.py
BaseTools/Source/Python/Workspace/InfBuildData.py
BaseTools/Source/Python/Workspace/MetaFileParser.py
BaseTools/Source/Python/Workspace/WorkspaceCommon.py
BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
BaseTools/Source/Python/build/build.py
BaseTools/Tests/TianoCompress.py
BaseTools/UserManuals/GenFds_Utility_Man_Page.rtf
BaseTools/UserManuals/GenFw_Utility_Man_Page.rtf
BaseTools/building-gcc.txt
BaseTools/gcc/mingw-gcc-build.py
BaseTools/toolsetup.bat
BuildNotes2.txt
Contributions.txt
edksetup.bat

index 66b9e9dc8c6bd58087620a8a4953c108945515e0..ca373d40ab5a21af2b297e5f468a655da9695897 100755 (executable)
@@ -18,7 +18,7 @@
 #\r
 # armcc_wrapper.py ToolToExec [command line to convert]\r
 #\r
-# anthing with the / will be converted via cygpath cygwin call or manually.\r
+# anything with the / will be converted via cygpath cygwin call or manually.\r
 # -I/cygpath/c/example is a special case as you can not pass -I to cygpath\r
 #\r
 # ExceptionList if a tool takes an argument with a / add it to the exception list\r
index 6e31d2def1dfed63e956b28aca63a2fd0c6df9e3..72e3936e315d591420ce9bcb2076dc1bdd72c384 100644 (file)
@@ -145,7 +145,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
             <xs:documentation xml:lang="en-us">\r
               The UserExtensions section is used to disseminate processing\r
               instructions that may be custom to the content provided by the distribution. This section\r
-              contains information that is common to all aspects of this disribution.\r
+              contains information that is common to all aspects of this distribution.\r
             </xs:documentation>\r
           </xs:annotation>\r
         </xs:element>\r
@@ -328,7 +328,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
               important to reflect the present state of the matter\r
             </xs:documentation>\r
             <xs:documentation xml:lang="en-us">\r
-              #2 Added definition/enumeration of UNDEFIND type 2 is\r
+              #2 Added definition/enumeration of UNDEFINED type 2 is\r
               important since there is a large body of legacy code for which the GUID’s and other\r
               code/data objects were not decorated with their usage. This document will allow for\r
               importing today’s source artifacts and producing decorations using the â€˜Undefined’ versus\r
@@ -696,7 +696,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
             </xs:sequence>\r
           </xs:complexType>\r
         </xs:element>\r
-        <!-- End of PackageSurfaceArea PackageIncluces element.  -->\r
+        <!-- End of PackageSurfaceArea PackageIncludes element.  -->\r
 \r
         <xs:element minOccurs="0" maxOccurs="1" name="Modules">\r
           <xs:complexType>\r
@@ -962,8 +962,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
                               <xs:annotation>\r
                                 <xs:documentation xml:lang="en-us">\r
                                   The PCD must be within a\r
-                                  specifed range of numeric values. Restricted to C style\r
-                                  Relational, Equality and Logicial Operators and parenthesis\r
+                                  specified range of numeric values. Restricted to C style\r
+                                  Relational, Equality and Logical Operators and parenthesis\r
                                   are valid. Only the CName for this PCD is permitted in the\r
                                   ValidValueRange expression. All other values must be\r
                                   numeric.\r
@@ -1006,7 +1006,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
                               <xs:documentation xml:lang="en-us">\r
                                 This string should be\r
                                 defined by specifications. There are pre-defined error\r
-                                number ranges in the UEFI/PI specificaiton.\r
+                                number ranges in the UEFI/PI specification.\r
                               </xs:documentation>\r
                             </xs:annotation>\r
                             <xs:complexType>\r
@@ -1452,7 +1452,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
                           <xs:annotation>\r
                             <xs:documentation xml:lang="en-us">\r
                               The module will change the\r
-                              boot mode on some exection paths.\r
+                              boot mode on some execution paths.\r
                             </xs:documentation>\r
                           </xs:annotation>\r
                         </xs:enumeration>\r
@@ -2835,7 +2835,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
       <xs:anyAttribute processContents="lax"/>\r
     </xs:complexType>\r
   </xs:element>\r
-  <!-- The following elsements are common definitions used with the ref attribute for elements. -->\r
+  <!-- The following elements are common definitions used with the ref attribute for elements. -->\r
 \r
   <xs:element name="HelpText">\r
     <xs:complexType>\r
index 2a53d7ed63f9cfed4df812b917179fe8f32ca7f7..760bfae812969dcef801bfed6f4f6a0896245b0f 100755 (executable)
@@ -63,7 +63,7 @@
 #   $(FV_DIR)           Directory to store flash image files\r
 #   $(INC)              Search path of current module\r
 #   $(NASM_INC)         Search nasm file path of current module\r
-#   $(INC_LIST)         A file containing search pathes of current module\r
+#   $(INC_LIST)         A file containing search paths of current module\r
 #   $(LIBS)             Static library files of current module\r
 #   $(<tool>_FLAGS)     Tools flags of current module\r
 #   $(MODULE_NAME)      Current module name\r
         $(OBJCOPY) --strip-unneeded -R .eh_frame ${src}\r
 \r
         #\r
-        #The below 2 lines are only needed for UNIXGCC tool chain, which genereates PE image directly\r
+        #The below 2 lines are only needed for UNIXGCC tool chain, which generates PE image directly\r
         #\r
         -$(OBJCOPY) $(OBJCOPY_ADDDEBUGFLAG) ${src}\r
         -$(CP) $(DEBUG_DIR)(+)$(MODULE_NAME).debug $(BIN_DIR)(+)$(MODULE_NAME_GUID).debug\r
index e5c31fe5a00246a09574d35d9205bdff8fa75acd..155e6c40d2e920124c11fdd86fc9b2a3699773c0 100644 (file)
@@ -37,7 +37,7 @@ TARGET                = DEBUG
 #                                               One, or more, of the following, IA32, IPF, X64, EBC, ARM\r
 #                                               or AArch64.\r
 #                                               Multiple values can be specified on a single line, using\r
-#                                               space charaters to separate the values.  These are used\r
+#                                               space characters to separate the values.  These are used\r
 #                                               during the parsing of a platform description file, \r
 #                                               restricting the build output target(s.)\r
 #                                               The Build Target ARCH is determined by (precedence high to low):\r
index 2bd09828721976745c041d8ceaee7498364b03c4..1cec8deca202e260abbe908dff32838e80705ffd 100755 (executable)
@@ -138,7 +138,7 @@ DEFINE ICC_BIN64x86     = C:\Program Files (x86)\Intel\Compiler\C++\DEF(ICC_VERS
 \r
 \r
 # Note: The Intel C++ Compiler 11.1 uses different installation path from previous versions\r
-#       We use "ICC11" tag for ICC 11.1 while "ICC" tag is dedicated for eariler versions\r
+#       We use "ICC11" tag for ICC 11.1 while "ICC" tag is dedicated for earlier versions\r
 #\r
 DEFINE ICC11_VERSION      = 11.1\r
 DEFINE ICC11_BUILD        = 072\r
@@ -6507,7 +6507,7 @@ RELEASE_RVCTCYGWIN_ARM_CC_FLAGS  = "$(CCPATH_FLAG)" $(ARCHCC_FLAGS) $(PLATFORM_F
 *_RVCTCYGWIN_ARM_FROMELF_PATH    = ENV(WORKSPACE)/BaseTools/Bin/CYGWIN_NT-5.1-i686/armcc_wrapper.py\r
 \r
 #################\r
-# ASM 16 linker defintions\r
+# ASM 16 linker definitions\r
 #################\r
 *_*_*_ASMLINK_PATH                 = DEF(WINDDK_BIN16)\link16.exe\r
 *_*_*_ASMLINK_FLAGS                = /nologo /tiny\r
@@ -6547,11 +6547,11 @@ RELEASE_RVCTCYGWIN_ARM_CC_FLAGS  = "$(CCPATH_FLAG)" $(ARCHCC_FLAGS) $(PLATFORM_F
 ##################\r
 # Rsa2048Sha256Sign tool definitions\r
 #\r
-# Notes: This tool defintion uses a test signing key for development purposes only.\r
+# Notes: This tool definition uses a test signing key for development purposes only.\r
 #        The tool Rsa2048Sha256GenerateKeys can be used to generate a new private/public key\r
 #        and the gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer PCD value.\r
 #        A custom tool/script can be implemented using the new private/public key with\r
-#        the Rsa2048Sha256Sign tool and this tool defintiion can be updated to use a\r
+#        the Rsa2048Sha256Sign tool and this tool definition can be updated to use a\r
 #        custom tool/script.\r
 #\r
 #   Generate new private/public key and gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer PCD value\r
index 7d0486b95af48f345b86a5e075b33dd1990cab90..b81bd905fa906deac66c83443c37a81801981987 100644 (file)
@@ -1,7 +1,7 @@
 This directory contains the next generation of EDK II build tools and template files.\r
 Templates are located in the Conf directory, while the tools executables for\r
 Microsoft Windows 32-bit Operating Systems are located in the Bin\Win32 directory, other\r
-directory contatins tools source.\r
+directory contains tools source.\r
 \r
 1. Build step to generate the binary tools.\r
 \r
index 269435bfa4cba59cfcb8b63f66bd4a58d7bf7ae5..5a583db6c06e5da611429dfe18afbbd6df21ff79 100755 (executable)
@@ -4,7 +4,7 @@
 # This script will modife the C/Include/Common/BuildVersion.h file and the two\r
 # Python scripts, Python/Common/BuildVersion.py and Python/UPT/BuildVersion.py.\r
 # If SVN is available, the tool will obtain the current checked out version of\r
-# the source tree for including the the --version commands.\r
+# the source tree for including the --version commands.\r
 \r
 #  Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
 #\r
@@ -73,7 +73,7 @@ def ParseOptions():
 \r
 \r
 def ShellCommandResults(CmdLine, Opt):\r
-    """ Execute the comand, returning the output content """\r
+    """ Execute the command, returning the output content """\r
     file_list = NamedTemporaryFile(delete=False)\r
     filename = file_list.name\r
     Results = []\r
index d5cefbd0b0da45cfe02264f35c184dcdafcd9d4a..9112d0131c3bb892532dc1fa8c6298b7dd81e928 100644 (file)
@@ -217,7 +217,7 @@ Returns:
       ImageContext->ImageType != EFI_IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER && \\r
       ImageContext->ImageType != EFI_IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER) {\r
     //\r
-    // upsupported PeImage subsystem type\r
+    // unsupported PeImage subsystem type\r
     //\r
     return RETURN_UNSUPPORTED;\r
   }\r
@@ -483,7 +483,7 @@ Returns:
       // In Te image header there is not a field to describe the ImageSize.\r
       // Actually, the ImageSize equals the RVA plus the VirtualSize of\r
       // the last section mapped into memory (Must be rounded up to\r
-      // a mulitple of Section Alignment). Per the PE/COFF specification, the\r
+      // a multiple of Section Alignment). Per the PE/COFF specification, the\r
       // section headers in the Section Table must appear in order of the RVA\r
       // values for the corresponding sections. So the ImageSize can be determined\r
       // by the RVA and the VirtualSize of the last section header in the\r
@@ -1315,7 +1315,7 @@ PeCoffLoaderGetPdbPointer (
       break;\r
     default:\r
       //\r
-      // For unknow Machine field, use Magic in optional Header\r
+      // For unknown Machine field, use Magic in optional Header\r
       //\r
       Magic = Hdr.Pe32->OptionalHeader.Magic;\r
     }\r
index 5c40fdb5fd491ac9eda8356cc9e5a2580b98f978..5179c701ccf9c78859e0cba43a1a080d0eddbb56 100644 (file)
@@ -2057,13 +2057,13 @@ IsHexStr (
   )\r
 {\r
   //\r
-  // skip preceeding white space\r
+  // skip preceding white space\r
   //\r
   while ((*Str != 0) && *Str == L' ') {\r
     Str ++;\r
   }\r
   //\r
-  // skip preceeding zeros\r
+  // skip preceding zeros\r
   //\r
   while ((*Str != 0) && *Str == L'0') {\r
     Str ++;\r
index dc1588712426afa76ba46e52663702dff2bf121f..cbd10e090c13c3a1421f95744e92a6fe81745ff8 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-CalcuateCrc32 routine.\r
+CalculateCrc32 routine.\r
 \r
 Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
@@ -288,7 +288,7 @@ Routine Description:
 \r
 Arguments:\r
 \r
-  Data        - The buffer contaning the data to be processed\r
+  Data        - The buffer containing the data to be processed\r
   DataSize    - The size of data to be processed\r
   CrcOut      - A pointer to the caller allocated UINT32 that on\r
                 contains the CRC32 checksum of Data\r
index 766f44390854a255138df10e8fe0b77e67f98377..52072ee3246958728ff650d07e3fed2baa307a0c 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-Header file for CalcuateCrc32 routine\r
+Header file for CalculateCrc32 routine\r
 \r
 Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
@@ -31,7 +31,7 @@ Routine Description:
 \r
 Arguments:\r
 \r
-  Data        - The buffer contaning the data to be processed\r
+  Data        - The buffer containing the data to be processed\r
   DataSize    - The size of data to be processed\r
   CrcOut      - A pointer to the caller allocated UINT32 that on\r
                 contains the CRC32 checksum of Data\r
index 33e0f0d1603abc7e40c5295dec40db7d076af9d9..0e9ba0a9826a196a7db0547ca8f721e353062edf 100644 (file)
@@ -747,7 +747,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_SUCCESS           - Decompression is successfull\r
+  EFI_SUCCESS           - Decompression is successful\r
   EFI_INVALID_PARAMETER - The source data is corrupted\r
 \r
 --*/\r
@@ -902,7 +902,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_SUCCESS           - Decompression is successfull\r
+  EFI_SUCCESS           - Decompression is successful\r
   EFI_INVALID_PARAMETER - The source data is corrupted\r
 \r
 --*/\r
@@ -937,7 +937,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_SUCCESS           - Decompression is successfull\r
+  EFI_SUCCESS           - Decompression is successful\r
   EFI_INVALID_PARAMETER - The source data is corrupted\r
 \r
 --*/\r
index 22ac1df1f920cd9cd30980ccb120fa99aefff3f0..a44e0ae76ad651561a6ed68f1f5382d0558aeaa1 100644 (file)
@@ -70,7 +70,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_SUCCESS           - Decompression is successfull\r
+  EFI_SUCCESS           - Decompression is successful\r
   EFI_INVALID_PARAMETER - The source data is corrupted\r
 \r
 **/\r
@@ -128,7 +128,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_SUCCESS           - Decompression is successfull\r
+  EFI_SUCCESS           - Decompression is successful\r
   EFI_INVALID_PARAMETER - The source data is corrupted\r
 \r
 **/\r
index 33d4c5eec1e763d2bcf98326fe0c9e82a3c121a7..0f6b286c7e65016c278850c6c8368afb768e12e3 100644 (file)
@@ -396,7 +396,7 @@ Routine Description:
 \r
   Allocate memory spaces for data structures used in compression process\r
 \r
-Argements: (VOID)\r
+Arguments: (VOID)\r
 \r
 Returns:\r
 \r
@@ -652,7 +652,7 @@ Returns: (VOID)
 \r
     //\r
     // We have just got a long match, the target tree\r
-    // can be located by MatchPos + 1. Travese the tree\r
+    // can be located by MatchPos + 1. Traverse the tree\r
     // from bottom up to get to a proper starting point.\r
     // The usage of PERC_FLAG ensures proper node deletion\r
     // in DeleteNode() later.\r
@@ -1281,7 +1281,7 @@ Routine Description:
 \r
   Outputs rightmost n bits of x\r
 \r
-Argments:\r
+Arguments:\r
 \r
   n   - the rightmost n bits of the data is used\r
   x   - the data\r
index 44925c642ba9bd4bfa215adf00f3284b873de503..b32afd38a68503633725cd21f7740f69ca6556dd 100644 (file)
@@ -21,7 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "EfiUtilityMsgs.h"\r
 \r
 //\r
-// Declare module globals for keeping track of the the utility's\r
+// Declare module globals for keeping track of the utility's\r
 // name and other settings.\r
 //\r
 STATIC STATUS mStatus                 = STATUS_SUCCESS;\r
@@ -61,7 +61,7 @@ Arguments:
   at least something valid is not specified.\r
 \r
   FileName - name of the file or application. If not specified, then the\r
-             utilty name (as set by the utility calling SetUtilityName()\r
+             utility name (as set by the utility calling SetUtilityName()\r
              earlier) is used. Otherwise "Unknown utility" is used.\r
 \r
   LineNumber - the line number of error, typically used by parsers. If the\r
@@ -384,7 +384,7 @@ Routine Description:
 Arguments:\r
   Type        - "warning" or "error" string to insert into the message to be\r
                 printed. The first character of this string (converted to uppercase)\r
-                is used to preceed the MessageCode value in the output string.\r
+                is used to precede the MessageCode value in the output string.\r
 \r
   FileName    - name of the file where the warning was detected, or the name\r
                 of the application that detected the warning\r
@@ -597,7 +597,7 @@ Routine Description:
 \r
 Arguments:\r
   UtilityName  -  name of the utility, which will be printed with all\r
-                  error/warning/debug messags.\r
+                  error/warning/debug messages.\r
 \r
 Returns:\r
   NA\r
index b5ae45de0927e02be009359111eaa5ed1b2eb6ea..d53a7431789e2769410258730eaa686c8dc36890 100644 (file)
@@ -318,7 +318,7 @@ Routine Description:
 Arguments:\r
 \r
   FileType    Type of file to search for.\r
-  Instance    Instace of the file type to return.\r
+  Instance    Instance of the file type to return.\r
   File        Return pointer.  In the case of an error, contents are undefined.\r
 \r
 Returns:\r
@@ -505,7 +505,7 @@ Arguments:
 \r
   File        The file to search.\r
   SectionType Type of file to search for.\r
-  Instance    Instace of the section to return.\r
+  Instance    Instance of the section to return.\r
   Section     Return pointer.  In the case of an error, contents are undefined.\r
 \r
 Returns:\r
index b46516d292da34c3a47cd2652a073a2af7276644..b4504a39ef0b58b98f0ba085b502794486312631 100644 (file)
@@ -228,7 +228,7 @@ Routine Description:
 Arguments:\r
 \r
   OldPath     Path name of replace the final segment\r
-  Peer        The new path name to concatinate to become the peer path\r
+  Peer        The new path name to concatenate to become the peer path\r
 \r
 Returns:\r
 \r
index d3d75ea5dccdc854f3ea09c79fe1252f20c69ca8..3b04cfecbe3e7e4331665d992a502c6c4c0c7036 100644 (file)
@@ -104,7 +104,7 @@ Routine Description:
 Arguments:\r
 \r
   OldPath     Path name of replace the final segment\r
-  Peer        The new path name to concatinate to become the peer path\r
+  Peer        The new path name to concatenate to become the peer path\r
 \r
 Returns:\r
 \r
index 5afe9638417b5bdd3e4cad7d9662a007b0939b63..4cc3fcae96f8885441ed85a8f7723e1aa680bdef 100644 (file)
@@ -36,7 +36,7 @@ typedef struct _GUID_SEC_TOOL_ENTRY {
 } GUID_SEC_TOOL_ENTRY;\r
 \r
 //\r
-// Functin Implementation\r
+// Function Implementation\r
 //\r
 \r
 EFI_HANDLE\r
index 4d10ff8b0c30dacdee7cfe2e5877bf716f0858d0..3907f44331e88074d00f01183456abbc6adbb0f0 100644 (file)
@@ -233,7 +233,7 @@ Returns:
   CHAR8   *Delimiter;\r
   BOOLEAN ParseError;\r
   BOOLEAN ReadError;\r
-  UINTN   Occurrance;\r
+  UINTN   Occurrence;\r
 \r
   //\r
   // Check input parameters\r
@@ -258,7 +258,7 @@ Returns:
   //\r
   // Initialize our instance counter for the search token\r
   //\r
-  Occurrance = 0;\r
+  Occurrence = 0;\r
 \r
   if (FindSection (InputFile, Section)) {\r
     //\r
@@ -307,7 +307,7 @@ Returns:
         //\r
         // Check if it is the correct instance\r
         //\r
-        if (Instance == Occurrance) {\r
+        if (Instance == Occurrence) {\r
           //\r
           // Copy the contents following the =\r
           //\r
@@ -338,9 +338,9 @@ Returns:
           }\r
         } else {\r
           //\r
-          // Increment the occurrance found\r
+          // Increment the occurrence found\r
           //\r
-          Occurrance++;\r
+          Occurrence++;\r
         }\r
       }\r
     } while (\r
@@ -348,7 +348,7 @@ Returns:
       !ReadError &&\r
       InputFile->CurrentFilePointer < InputFile->Eof &&\r
       CurrentToken[0] != '[' &&\r
-      Occurrance <= Instance\r
+      Occurrence <= Instance\r
     );\r
   }\r
   //\r
@@ -478,7 +478,7 @@ AsciiStringToUint64 (
 Routine Description:\r
 \r
   Converts a null terminated ascii string that represents a number into a\r
-  UINT64 value.  A hex number may be preceeded by a 0x, but may not be\r
+  UINT64 value.  A hex number may be preceded by a 0x, but may not be\r
   succeeded by an h.  A number without 0x or 0X is considered to be base 10\r
   unless the IsHex input is true.\r
 \r
index 903ce71a047c2485d5915eca351e71caaf9d20a1..a8fde749cd663dca7c4b0c76c92754c44350972e 100644 (file)
@@ -153,7 +153,7 @@ AsciiStringToUint64 (
 Routine Description:\r
 \r
   Converts a null terminated ascii string that represents a number into a\r
-  UINT64 value.  A hex number may be preceeded by a 0x, but may not be\r
+  UINT64 value.  A hex number may be preceded by a 0x, but may not be\r
   succeeded by an h.  A number without 0x or 0X is considered to be base 10\r
   unless the IsHex input is true.\r
 \r
index fa12869edaada2bab6bbbd0cfae60e2b26bf1194..b95a7a859f423b9f2f1e90487bb80c9596a36e10 100644 (file)
@@ -715,7 +715,7 @@ Returns:
   }\r
 \r
   //\r
-  // Check Input paramters\r
+  // Check Input parameters\r
   //\r
   if (*InputFileName == NULL) {\r
     fprintf (stderr, "Missing option.  Input files is not specified\n");\r
index 80c8c33c76ff96883410fd351be7724aa5093e2e..c250471192356f3b87eac7874e3a7503d94745fb 100644 (file)
@@ -148,7 +148,7 @@ PeCoffLoaderGetEntryPoint (
 //\r
 \r
 /**\r
-  Pass in a pointer to an ARM MOVT or MOVW immediate instruciton and\r
+  Pass in a pointer to an ARM MOVT or MOVW immediate instruction and\r
   return the immediate data encoded in the instruction\r
 \r
   @param  Instruction   Pointer to ARM MOVT or MOVW immediate instruction\r
@@ -166,7 +166,7 @@ ThumbMovtImmediateAddress (
   Update an ARM MOVT or MOVW immediate instruction immediate data.\r
 \r
   @param  Instruction   Pointer to ARM MOVT or MOVW immediate instruction\r
-  @param  Address       New addres to patch into the instruction\r
+  @param  Address       New address to patch into the instruction\r
 \r
 **/\r
 VOID\r
@@ -178,10 +178,10 @@ ThumbMovtImmediatePatch (
 \r
 \r
 /**\r
-  Pass in a pointer to an ARM MOVW/MOVT instruciton pair and\r
+  Pass in a pointer to an ARM MOVW/MOVT instruction pair and\r
   return the immediate data encoded in the two` instruction\r
 \r
-  @param  Instructions  Pointer to ARM MOVW/MOVT insturction pair\r
+  @param  Instructions  Pointer to ARM MOVW/MOVT instruction pair\r
 \r
   @return Immediate address encoded in the instructions\r
 \r
@@ -196,7 +196,7 @@ ThumbMovwMovtImmediateAddress (
   Update an ARM MOVW/MOVT immediate instruction instruction pair.\r
 \r
   @param  Instructions  Pointer to ARM MOVW/MOVT instruction pair\r
-  @param  Address       New addres to patch into the instructions\r
+  @param  Address       New address to patch into the instructions\r
 **/\r
 VOID\r
 EFIAPI\r
index fa8c7e3d1737e778ac25e4b097d1574c47708cfa..43e66e792530b9b13c55a65d789e7e11ecd8507e 100644 (file)
@@ -101,7 +101,7 @@ Returns:
 \r
 \r
 /**\r
-  Pass in a pointer to an ARM MOVT or MOVW immediate instruciton and\r
+  Pass in a pointer to an ARM MOVT or MOVW immediate instruction and\r
   return the immediate data encoded in the instruction\r
 \r
   @param  Instruction   Pointer to ARM MOVT or MOVW immediate instruction\r
@@ -137,7 +137,7 @@ ThumbMovtImmediateAddress (
   Update an ARM MOVT or MOVW immediate instruction immediate data.\r
 \r
   @param  Instruction   Pointer to ARM MOVT or MOVW immediate instruction\r
-  @param  Address       New addres to patch into the instruction\r
+  @param  Address       New address to patch into the instruction\r
 **/\r
 VOID\r
 ThumbMovtImmediatePatch (\r
@@ -147,7 +147,7 @@ ThumbMovtImmediatePatch (
 {\r
   UINT16  Patch;\r
 \r
-  // First 16-bit chunk of instruciton\r
+  // First 16-bit chunk of instruction\r
   Patch  = ((Address >> 12) & 0x000f);             // imm4\r
   Patch |= (((Address & BIT11) != 0) ? BIT10 : 0); // i\r
   *Instruction = (*Instruction & ~0x040f) | Patch;\r
@@ -160,10 +160,10 @@ ThumbMovtImmediatePatch (
 }\r
 \r
 /**\r
-  Pass in a pointer to an ARM MOVW/MOVT instruciton pair and\r
+  Pass in a pointer to an ARM MOVW/MOVT instruction pair and\r
   return the immediate data encoded in the two` instruction\r
 \r
-  @param  Instructions  Pointer to ARM MOVW/MOVT insturction pair\r
+  @param  Instructions  Pointer to ARM MOVW/MOVT instruction pair\r
 \r
   @return Immediate address encoded in the instructions\r
 \r
@@ -188,7 +188,7 @@ ThumbMovwMovtImmediateAddress (
   Update an ARM MOVW/MOVT immediate instruction instruction pair.\r
 \r
   @param  Instructions  Pointer to ARM MOVW/MOVT instruction pair\r
-  @param  Address       New addres to patch into the instructions\r
+  @param  Address       New address to patch into the instructions\r
 **/\r
 VOID\r
 EFIAPI\r
index e7da04424497ce06729f7a5f3df9fd8a00d2ec40..23ef9c8ceb9c34769ece10882ed94244577d54bc 100644 (file)
@@ -356,7 +356,7 @@ Returns:
   FALSE - otherwise\r
 \r
 Notes:\r
-  Preceeding white space is ignored.\r
+  Preceding white space is ignored.\r
   The parser's buffer pointer is advanced past the end of the\r
   token.\r
 \r
@@ -636,7 +636,7 @@ Returns:
   // Make sure we didn't exceed our maximum nesting depth\r
   //\r
   if (NestDepth > MAX_NEST_DEPTH) {\r
-    Error (NULL, 0, 3001, "Not Supported", "%s exceeeds max nesting depth (%u)", SourceFile->FileName, (unsigned) NestDepth);\r
+    Error (NULL, 0, 3001, "Not Supported", "%s exceeds max nesting depth (%u)", SourceFile->FileName, (unsigned) NestDepth);\r
     Status = STATUS_ERROR;\r
     goto Finish;\r
   }\r
index 0675cb9f1d3b54645d3720a23d038713231c5c47..eca967085e53f47559ebfd612bfc5cc2bd132e35 100644 (file)
@@ -70,7 +70,7 @@ Routine Description:
 \r
 Arguments:\r
 \r
-  Strin          The string to 'strip'\r
+  String          The string to 'strip'\r
 \r
 Returns:\r
 \r
index 8b1ea7f7614061ebadd9debba2b078ee9763328f..1f70b75174283dafbc3f8ec20943eaef1ded2262 100644 (file)
@@ -404,7 +404,7 @@ Routine Description:
 \r
   Allocate memory spaces for data structures used in compression process\r
 \r
-Argements:\r
+Arguments:\r
   VOID\r
 \r
 Returns:\r
@@ -680,7 +680,7 @@ Returns: (VOID)
   if (mMatchLen >= 4) {\r
     //\r
     // We have just got a long match, the target tree\r
-    // can be located by MatchPos + 1. Travese the tree\r
+    // can be located by MatchPos + 1. Traverse the tree\r
     // from bottom up to get to a proper starting point.\r
     // The usage of PERC_FLAG ensures proper node deletion\r
     // in DeleteNode() later.\r
index 6b6af2e727bbb008c7892ecfa553c4091b5f01f6..f66e03851d0bc8268aae52d874e9230be68b9d20 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 //\r
 // Win32 include files do not compile clean with /W4, so we use the warning\r
-// pragma to suppress the warnings for Win32 only. This way our code can stil\r
+// pragma to suppress the warnings for Win32 only. This way our code can still\r
 // compile at /W4 (highest warning level) with /WX (warnings cause build\r
 // errors).\r
 //\r
index 356f5f7e2408abf97b25c7e228c7f9ad431a06d4..9583a3f3a4773ab70f766d0da0727b99bb416591 100644 (file)
@@ -178,7 +178,7 @@ int main(int argc, CHAR8 *argv[])
   }\r
   Str16 = (CHAR16 *)malloc(1024);\r
   if (Str16 == NULL) {\r
-    fprintf(stderr, "Resource, memory cannot be allcoated");\r
+    fprintf(stderr, "Resource, memory cannot be allocated");\r
     return STATUS_ERROR;\r
   }\r
   Ascii2UnicodeString(Str, Str16);\r
index 3b3abc67eabb8456ede75e8cea60420346a3067b..59e08e960ee87dff5ca1bb969e2c66d87495f5c2 100644 (file)
@@ -5,7 +5,7 @@
   all over this file.\r
 \r
   The only place where multi-instance device paths are supported is in\r
-  environment varibles. Multi-instance device paths should never be placed\r
+  environment variables. Multi-instance device paths should never be placed\r
   on a Handle.\r
 \r
   Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
index a2e0322e2735ea653b36a5b9cd313f9704364368..a500148a793a0fbe47b4dc25620e9b6500ef6963 100644 (file)
@@ -5,7 +5,7 @@
   all over this file.\r
 \r
   The only place where multi-instance device paths are supported is in\r
-  environment varibles. Multi-instance device paths should never be placed\r
+  environment variables. Multi-instance device paths should never be placed\r
   on a Handle.\r
 \r
   Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
index cb4ecea2c498b703b170e4017e4101618bfda601..0c52eb74845947de772bbfd2ebf41e5073d81ab3 100644 (file)
@@ -1432,7 +1432,7 @@ Returns:
   ImageCount = 0;\r
   for (;;) {\r
     //\r
-    // Save our postition in the file, since offsets in the headers\r
+    // Save our position in the file, since offsets in the headers\r
     // are relative to the particular image.\r
     //\r
     ImageStart = ftell (InFptr);\r
index 369f4affa917ba52905556199a2591998c6aef8a..d2e2cc1bf803956757f67dc3dd5144ad5686384f 100644 (file)
@@ -288,7 +288,7 @@ Returns:
 \r
   FileBuffer = (UINT8 *) malloc (FileSize);\r
   if (FileBuffer == NULL) {\r
-    Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated!");\r
+    Error (NULL, 0, 4001, "Resource", "memory cannot be allocated!");\r
     fclose (InFile);\r
     goto Finish;\r
   }\r
index 4d0339e1f9c0e64720164df33264c62deb6eb47f..818c46407beb755c8ad59378b2cc388d69a46de6 100644 (file)
@@ -110,7 +110,7 @@ CHAR8      *mFvbAlignmentName[] = {
 // This data array will be located at the base of the Firmware Volume Header (FVH)\r
 // in the boot block.  It must not exceed 14 bytes of code.  The last 2 bytes\r
 // will be used to keep the FVH checksum consistent.\r
-// This code will be run in response to a starutp IPI for HT-enabled systems.\r
+// This code will be run in response to a startup IPI for HT-enabled systems.\r
 //\r
 #define SIZEOF_STARTUP_DATA_ARRAY 0x10\r
 \r
@@ -465,7 +465,7 @@ Returns:
   case 0:\r
     //\r
     // 1 byte alignment\r
-    //if bit 1 have set, 128K byte alignmnet\r
+    //if bit 1 have set, 128K byte alignment\r
     //\r
     if (FfsFile->Attributes & FFS_ATTRIB_DATA_ALIGNMENT2) {\r
       *Alignment = 17;\r
@@ -724,7 +724,7 @@ Returns:
     memcpy ((UINT8 *)PadFile + CurFfsHeaderSize, ExtHeader, ExtHeader->ExtHeaderSize);\r
     ((EFI_FIRMWARE_VOLUME_HEADER *) FvImage->FileImage)->ExtHeaderOffset = (UINT16) ((UINTN) ((UINT8 *)PadFile + CurFfsHeaderSize) - (UINTN) FvImage->FileImage);\r
     //\r
-    // Make next file start at QWord Boundry\r
+    // Make next file start at QWord Boundary\r
     //\r
     while (((UINTN) FvImage->CurrentFilePointer & (EFI_FFS_FILE_HEADER_ALIGNMENT - 1)) != 0) {\r
       FvImage->CurrentFilePointer++;\r
@@ -1218,7 +1218,7 @@ Returns:
   FileBuffer = malloc (FileSize);\r
   if (FileBuffer == NULL) {\r
     fclose (NewFile);\r
-    Error (NULL, 0, 4001, "Resouce", "memory cannot be allocated!");\r
+    Error (NULL, 0, 4001, "Resource", "memory cannot be allocated!");\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
@@ -1387,7 +1387,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
   //\r
-  // Make next file start at QWord Boundry\r
+  // Make next file start at QWord Boundary\r
   //\r
   while (((UINTN) FvImage->CurrentFilePointer & (EFI_FFS_FILE_HEADER_ALIGNMENT - 1)) != 0) {\r
     FvImage->CurrentFilePointer++;\r
@@ -2196,14 +2196,14 @@ Returns:
         return EFI_ABORTED;\r
       }\r
 \r
-      // Add opcode for an uncondional branch with no link. i.e.: " B SecEntryPoint"\r
+      // Add opcode for an unconditional branch with no link. i.e.: " B SecEntryPoint"\r
       ResetVector[0] |= ARMT_UNCONDITIONAL_JUMP_INSTRUCTION;\r
 \r
       // SWI handler movs   pc,lr. Just in case a debugger uses SWI\r
       ResetVector[2] = 0xE1B0F07E;\r
 \r
       // Place holder to support a common interrupt handler from ROM.\r
-      // Currently not suppprted. For this to be used the reset vector would not be in this FV\r
+      // Currently not supported. For this to be used the reset vector would not be in this FV\r
       // and the exception vectors would be hard coded in the ROM and just through this address\r
       // to find a common handler in the a module in the FV.\r
       ResetVector[3] = 0;\r
@@ -2235,7 +2235,7 @@ Returns:
     ARMT above has an entry in ResetVector[2] for SWI. The way we are using the ResetVector\r
     array at the moment, for AArch64, does not allow us space for this as the header only\r
     allows for a fixed amount of bytes at the start. If we are sure that UEFI will live\r
-    within the first 4GB of addressable RAM we could potensioally adopt the same ResetVector\r
+    within the first 4GB of addressable RAM we could potentially adopt the same ResetVector\r
     layout as above. But for the moment we replace the four 32bit vectors with two 64bit\r
     vectors in the same area of the Image heasder. This allows UEFI to start from a 64bit\r
     base.\r
@@ -2253,7 +2253,7 @@ Returns:
         Error(NULL, 0, 3000, "Invalid", "SEC Entry point must be within 128MB of the start of the FV");\r
         return EFI_ABORTED;\r
       }\r
-      // Add opcode for an uncondional branch with no link. i.e.: " B SecEntryPoint"\r
+      // Add opcode for an unconditional branch with no link. i.e.: " B SecEntryPoint"\r
       ResetVector[0] |= ARM64_UNCONDITIONAL_JUMP_INSTRUCTION;\r
     }\r
 \r
@@ -3068,7 +3068,7 @@ Returns:
   }\r
 \r
   //\r
-  // Accumlate every FFS file size.\r
+  // Accumulate every FFS file size.\r
   //\r
   for (Index = 0; FvInfoPtr->FvFiles[Index][0] != 0; Index++) {\r
     //\r
@@ -3143,7 +3143,7 @@ Returns:
     }\r
 \r
     //\r
-    // Make next ffs file start at QWord Boundry\r
+    // Make next ffs file start at QWord Boundary\r
     //\r
     if (FvInfoPtr->IsPiFvImage) {\r
       CurrentOffset = (CurrentOffset + EFI_FFS_FILE_HEADER_ALIGNMENT - 1) & ~(EFI_FFS_FILE_HEADER_ALIGNMENT - 1);\r
@@ -3234,7 +3234,7 @@ Routine Description:
   their base address to the parent image.\r
 \r
 Arguments:\r
-  FvInfo            A pointer to FV_INFO struture.\r
+  FvInfo            A pointer to FV_INFO structure.\r
   FfsFile           A pointer to Ffs file image that may contain FvImage.\r
   XipOffset         The offset address to the parent FvImage base.\r
 \r
@@ -3277,7 +3277,7 @@ Returns:
         return EFI_ABORTED;\r
       }\r
 \r
-      // machine type is ARM, set a flag so ARM reset vector procesing occurs\r
+      // machine type is ARM, set a flag so ARM reset vector processing occurs\r
       if ((MachineType == EFI_IMAGE_MACHINE_ARMT) || (MachineType == EFI_IMAGE_MACHINE_AARCH64)) {\r
         VerboseMsg("Located ARM/AArch64 SEC/PEI core in child FV");\r
         mArm = TRUE;\r
@@ -3311,7 +3311,7 @@ Routine Description:
 \r
 Arguments:\r
 \r
-  FvInfo            A pointer to FV_INFO struture.\r
+  FvInfo            A pointer to FV_INFO structure.\r
   FileName          Ffs File PathName\r
   FfsFile           A pointer to Ffs file image.\r
   XipOffset         The offset address to use for rebasing the XIP file image.\r
index 4476b06a23e5287209cee34ac925865181c52a2c..cc71840bac0da931782c6faba4095588829a9ad5 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "EfiUtilityMsgs.h"\r
 \r
 //\r
-// Different file separater for Linux and Windows\r
+// Different file separator for Linux and Windows\r
 //\r
 #define FILE_SEP_CHAR '/'\r
 \r
index 23e8065756e6077f7ec2b57ae951b95cae25b84b..62cdb30cf541938bc1fbe54b3e9a9cf1722aa815 100644 (file)
@@ -74,7 +74,7 @@ CleanUp32 (
   );\r
 \r
 //\r
-// Rename ELF32 strucutres to common names to help when porting to ELF64.\r
+// Rename ELF32 structures to common names to help when porting to ELF64.\r
 //\r
 typedef Elf32_Shdr Elf_Shdr;\r
 typedef Elf32_Ehdr Elf_Ehdr;\r
@@ -450,7 +450,7 @@ ScanSections32 (
   mCoffOffset = CoffAlign(mCoffOffset);\r
 \r
   if (SectionCount > 1 && mOutImageType == FW_EFI_IMAGE) {\r
-    Warning (NULL, 0, 0, NULL, "Mulitple sections in %s are merged into 1 text section. Source level debug might not work correctly.", mInImageName);\r
+    Warning (NULL, 0, 0, NULL, "Multiple sections in %s are merged into 1 text section. Source level debug might not work correctly.", mInImageName);\r
   }\r
 \r
   //\r
@@ -487,7 +487,7 @@ ScanSections32 (
   }\r
 \r
   if (SectionCount > 1 && mOutImageType == FW_EFI_IMAGE) {\r
-    Warning (NULL, 0, 0, NULL, "Mulitple sections in %s are merged into 1 data section. Source level debug might not work correctly.", mInImageName);\r
+    Warning (NULL, 0, 0, NULL, "Multiple sections in %s are merged into 1 data section. Source level debug might not work correctly.", mInImageName);\r
   }\r
 \r
   //\r
@@ -688,7 +688,7 @@ WriteSections32 (
 \r
       default:\r
         //\r
-        //  Ignore for unkown section type.\r
+        //  Ignore for unknown section type.\r
         //\r
         VerboseMsg ("%s unknown section type %x. We ignore this unknown section type.", mInImageName, (unsigned)Shdr->sh_type);\r
         break;\r
@@ -1090,7 +1090,7 @@ WriteRelocations32 (
             break;\r
 \r
           default:\r
-            Error (NULL, 0, 3000, "Invalid", "%s bad ARM dynamic relocations, unkown type %d.", mInImageName, ELF32_R_TYPE (Rel->r_info));\r
+            Error (NULL, 0, 3000, "Invalid", "%s bad ARM dynamic relocations, unknown type %d.", mInImageName, ELF32_R_TYPE (Rel->r_info));\r
             break;\r
           }\r
         }\r
index 0a5237dd14c8b132b60f0a9202aabe3b6fb0bee9..28f27ab97bdf2e27c7a90b25d4f828834665ca2d 100644 (file)
@@ -74,7 +74,7 @@ CleanUp64 (
   );\r
 \r
 //\r
-// Rename ELF32 strucutres to common names to help when porting to ELF64.\r
+// Rename ELF32 structures to common names to help when porting to ELF64.\r
 //\r
 typedef Elf64_Shdr Elf_Shdr;\r
 typedef Elf64_Ehdr Elf_Ehdr;\r
@@ -580,7 +580,7 @@ ScanSections64 (
   mCoffOffset = CoffAlign(mCoffOffset);\r
 \r
   if (SectionCount > 1 && mOutImageType == FW_EFI_IMAGE) {\r
-    Warning (NULL, 0, 0, NULL, "Mulitple sections in %s are merged into 1 text section. Source level debug might not work correctly.", mInImageName);\r
+    Warning (NULL, 0, 0, NULL, "Multiple sections in %s are merged into 1 text section. Source level debug might not work correctly.", mInImageName);\r
   }\r
 \r
   //\r
@@ -634,7 +634,7 @@ ScanSections64 (
   }\r
 \r
   if (SectionCount > 1 && mOutImageType == FW_EFI_IMAGE) {\r
-    Warning (NULL, 0, 0, NULL, "Mulitple sections in %s are merged into 1 data section. Source level debug might not work correctly.", mInImageName);\r
+    Warning (NULL, 0, 0, NULL, "Multiple sections in %s are merged into 1 data section. Source level debug might not work correctly.", mInImageName);\r
   }\r
 \r
   //\r
@@ -817,7 +817,7 @@ WriteSections64 (
 \r
       default:\r
         //\r
-        //  Ignore for unkown section type.\r
+        //  Ignore for unknown section type.\r
         //\r
         VerboseMsg ("%s unknown section type %x. We ignore this unknown section type.", mInImageName, (unsigned)Shdr->sh_type);\r
         break;\r
index 1c0f24e6c2892511a7faf87208d03fa57daf9b82..e0f9e29333a23876ab8e3ab94f588dd09f1f1f4f 100644 (file)
@@ -49,7 +49,7 @@ typedef enum {
 } SECTION_FILTER_TYPES;\r
 \r
 //\r
-// FunctionTalbe\r
+// FunctionTable\r
 //\r
 typedef struct {\r
   VOID    (*ScanSections) ();\r
index af2c909866d5c95db8cd820124577ad0386fbd44..fea7d5b4de90e49f816739c75046a4c250bf4f1a 100644 (file)
@@ -176,7 +176,7 @@ Returns:
   //\r
   fprintf (stdout, "Options:\n");\r
   fprintf (stdout, "  -o FileName, --outputfile FileName\n\\r
-                        File will be created to store the ouput content.\n");\r
+                        File will be created to store the output content.\n");\r
   fprintf (stdout, "  -e EFI_FILETYPE, --efiImage EFI_FILETYPE\n\\r
                         Create Efi Image. EFI_FILETYPE is one of BASE,SMM_CORE,\n\\r
                         PEI_CORE, PEIM, DXE_CORE, DXE_DRIVER, UEFI_APPLICATION,\n\\r
@@ -261,13 +261,13 @@ Returns:
                         Guid is used to specify hii package list guid.\n\\r
                         Its format is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\n\\r
                         If not specified, the first Form FormSet guid is used.\n");\r
-  fprintf (stdout, "  --hiipackage          Combine all input binary hii pacakges into \n\\r
+  fprintf (stdout, "  --hiipackage          Combine all input binary hii packages into \n\\r
                         a single package list as the text resource data(RC).\n\\r
                         It can't be combined with other action options\n\\r
                         except for -o option. It is a action option.\n\\r
                         If it is combined with other action options, the later\n\\r
                         input action option will override the previous one.\n");\r
-  fprintf (stdout, "  --hiibinpackage       Combine all input binary hii pacakges into \n\\r
+  fprintf (stdout, "  --hiibinpackage       Combine all input binary hii packages into \n\\r
                         a single package list as the binary resource section.\n\\r
                         It can't be combined with other action options\n\\r
                         except for -o option. It is a action option.\n\\r
@@ -559,7 +559,7 @@ PeCoffConvertImageToXip (
   if (PeHdr->Pe32.OptionalHeader.SectionAlignment != PeHdr->Pe32.OptionalHeader.FileAlignment) {\r
     //\r
     // The only reason to expand zero fill sections is to make them compatible with XIP images.\r
-    // If SectionAlignment is not equal to FileAlginment then it is not an XIP type image.\r
+    // If SectionAlignment is not equal to FileAlignment then it is not an XIP type image.\r
     //\r
     return;\r
   }\r
@@ -1390,7 +1390,7 @@ Returns:
         goto Finish;\r
       }\r
       if (LogLevel > 9) {\r
-        Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0-9, currnt input level is %d", (int) LogLevel);\r
+        Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0-9, current input level is %d", (int) LogLevel);\r
         goto Finish;\r
       }\r
       SetPrintLevel (LogLevel);\r
@@ -1536,16 +1536,16 @@ Returns:
     VerboseMsg ("Dump the TE header information of the input TE image.");\r
     break;\r
   case FW_MCI_IMAGE:\r
-    VerboseMsg ("Conver input MicroCode.txt file to MicroCode.bin file.");\r
+    VerboseMsg ("Convert input MicroCode.txt file to MicroCode.bin file.");\r
     break;\r
   case FW_MERGE_IMAGE:\r
     VerboseMsg ("Combine the input multi microcode bin files to one bin file.");\r
     break;\r
   case FW_HII_PACKAGE_LIST_RCIMAGE:\r
-    VerboseMsg ("Combine the input multi hii bin packages to one text pacakge list RC file.");\r
+    VerboseMsg ("Combine the input multi hii bin packages to one text package list RC file.");\r
     break;\r
   case FW_HII_PACKAGE_LIST_BINIMAGE:\r
-    VerboseMsg ("Combine the input multi hii bin packages to one binary pacakge list file.");\r
+    VerboseMsg ("Combine the input multi hii bin packages to one binary package list file.");\r
     break;\r
   case FW_REBASE_IMAGE:\r
     VerboseMsg ("Rebase the input image to new base address.");\r
@@ -1633,7 +1633,7 @@ Returns:
       goto Finish;\r
     }\r
     //\r
-    // Get hii package list lenght\r
+    // Get hii package list length\r
     //\r
     HiiPackageListHeader.PackageLength = sizeof (EFI_HII_PACKAGE_LIST_HEADER);\r
     for (Index = 0; Index < InputFileNum; Index ++) {\r
@@ -1668,7 +1668,7 @@ Returns:
       goto Finish;\r
     }\r
     if (memcmp (&HiiPackageListGuid, &mZeroGuid, sizeof (EFI_GUID)) == 0) {\r
-      Error (NULL, 0, 3000, "Invalid", "HII pacakge list guid is not specified!");\r
+      Error (NULL, 0, 3000, "Invalid", "HII package list guid is not specified!");\r
       goto Finish;\r
     }\r
     memcpy (&HiiPackageListHeader.PackageListGuid, &HiiPackageListGuid, sizeof (EFI_GUID));\r
@@ -2172,7 +2172,7 @@ Returns:
 \r
   if (PeHdr->Pe32.FileHeader.Machine == IMAGE_FILE_MACHINE_ARM) {\r
     // Some tools kick out IMAGE_FILE_MACHINE_ARM (0x1c0) vs IMAGE_FILE_MACHINE_ARMT (0x1c2)\r
-    // so patch back to the offical UEFI value.\r
+    // so patch back to the official UEFI value.\r
     PeHdr->Pe32.FileHeader.Machine = IMAGE_FILE_MACHINE_ARMT;\r
   }\r
 \r
@@ -2372,7 +2372,7 @@ Returns:
             //\r
             memset (SectionHeader->Name, 0, sizeof (SectionHeader->Name));\r
             //\r
-            // Zero Execption Table\r
+            // Zero Exception Table\r
             //\r
             Optional32->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_EXCEPTION].VirtualAddress = 0;\r
             Optional32->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_EXCEPTION].Size           = 0;\r
@@ -2479,7 +2479,7 @@ Returns:
                 memset (RuntimeFunction, 0, sizeof (RUNTIME_FUNCTION));\r
               }\r
               //\r
-              // Zero Execption Table\r
+              // Zero Exception Table\r
               //\r
               Optional64->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_EXCEPTION].Size = 0;\r
               Optional64->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_EXCEPTION].VirtualAddress = 0;\r
index f3dfaf63bae3f1b75fc3c419efd89385707c7397..e9064de4394dc6b1615309232d3a724e7d7c3357 100644 (file)
@@ -323,7 +323,7 @@ Returns:
   //\r
   Buffer = (UINT8 *) malloc ((size_t) TotalLength);\r
   if (Buffer == NULL) {\r
-    Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+    Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
     goto Done;\r
   }\r
   CommonSect = (EFI_COMMON_SECTION_HEADER *) Buffer;\r
@@ -658,7 +658,7 @@ Returns:
   if (Status == EFI_BUFFER_TOO_SMALL) {\r
     FileBuffer = (UINT8 *) malloc (InputLength);\r
     if (FileBuffer == NULL) {\r
-      Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+      Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
       return EFI_OUT_OF_RESOURCES;\r
     }\r
     //\r
@@ -887,7 +887,7 @@ Returns:
 \r
     FileBuffer = (UINT8 *) malloc (InputLength + Offset);\r
     if (FileBuffer == NULL) {\r
-      Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+      Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
       return EFI_OUT_OF_RESOURCES;\r
     }\r
     //\r
@@ -922,7 +922,7 @@ Returns:
   // InputLength != 0, but FileBuffer == NULL means out of resources.\r
   //\r
   if (FileBuffer == NULL) {\r
-    Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+    Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
@@ -1342,7 +1342,7 @@ Returns:
         goto Finish;\r
       }\r
       if (LogLevel > 9) {\r
-        Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0~9, currnt input level is %d", (int) LogLevel);\r
+        Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0~9, current input level is %d", (int) LogLevel);\r
         goto Finish;\r
       }\r
       SetPrintLevel (LogLevel);\r
@@ -1396,7 +1396,7 @@ Returns:
     if ((InputFileNum == 0) && (InputFileName == NULL)) {\r
       InputFileName = (CHAR8 **) malloc (MAXIMUM_INPUT_FILE_NUM * sizeof (CHAR8 *));\r
       if (InputFileName == NULL) {\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
       memset (InputFileName, 0, (MAXIMUM_INPUT_FILE_NUM * sizeof (CHAR8 *)));\r
@@ -1410,7 +1410,7 @@ Returns:
                                   );\r
 \r
       if (InputFileName == NULL) {\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
       memset (&(InputFileName[InputFileNum]), 0, (MAXIMUM_INPUT_FILE_NUM * sizeof (CHAR8 *)));\r
@@ -1454,7 +1454,7 @@ Returns:
       DummyFileBuffer = (UINT8 *) malloc (DummyFileSize);\r
       if (DummyFileBuffer == NULL) {\r
         fclose(DummyFile);\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
 \r
@@ -1463,7 +1463,7 @@ Returns:
       DebugMsg (NULL, 0, 9, "Dummy files", "the dummy file name is %s and the size is %u bytes", DummyFileName, (unsigned) DummyFileSize);\r
 \r
       if (InputFileName == NULL) {\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
       InFile = fopen(LongFilePath(InputFileName[0]), "rb");\r
@@ -1478,7 +1478,7 @@ Returns:
       InFileBuffer = (UINT8 *) malloc (InFileSize);\r
       if (InFileBuffer == NULL) {\r
         fclose(InFile);\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
 \r
@@ -1685,7 +1685,7 @@ Returns:
     Index += (strlen (StringBuffer) * 2) + 2;\r
     OutFileBuffer = (UINT8 *) malloc (Index);\r
     if (OutFileBuffer == NULL) {\r
-      Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+      Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
       goto Finish;\r
     }\r
     VersionSect = (EFI_VERSION_SECTION *) OutFileBuffer;\r
@@ -1706,7 +1706,7 @@ Returns:
     Index += (strlen (StringBuffer) * 2) + 2;\r
     OutFileBuffer = (UINT8 *) malloc (Index);\r
     if (OutFileBuffer == NULL) {\r
-      Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+      Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
       goto Finish;\r
     }\r
     UiSect = (EFI_USER_INTERFACE_SECTION *) OutFileBuffer;\r
@@ -1734,7 +1734,7 @@ Returns:
     if (Status == EFI_BUFFER_TOO_SMALL) {\r
       OutFileBuffer = (UINT8 *) malloc (InputLength);\r
       if (OutFileBuffer == NULL) {\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
       //\r
index f956cab453f033f1192a0d682014475213f2ab27..b21fb894e60f70f7af90c67d54ea94b3d7c748d1 100644 (file)
@@ -32,7 +32,7 @@
 \r
 #if _MSC_EXTENSIONS\r
   //\r
-  // use Microsoft* C complier dependent integer width types\r
+  // use Microsoft* C compiler dependent integer width types\r
   //\r
   typedef unsigned __int64    UINT64;\r
   typedef __int64             INT64;\r
index 856d2bd9eff7de2127b6d202342f601e1e9a9ab0..58d889014b7d971c5b99cdacc865f13514ce6666 100644 (file)
@@ -30,7 +30,7 @@
 \r
 #if _MSC_EXTENSIONS\r
   //\r
-  // use Microsoft* C complier dependent integer width types\r
+  // use Microsoft* C compiler dependent integer width types\r
   //\r
   typedef unsigned __int64    UINT64;\r
   typedef __int64             INT64;\r
index 751b6f1b3b42d77da38c02596ab2450ff1e03afe..b877e002c8fe67616340b8d569aa1d8a4a79d20a 100644 (file)
@@ -50,7 +50,7 @@
 #ifndef TRUE\r
 //\r
 // BugBug: UEFI specification claims 1 and 0. We are concerned about the\r
-//  complier portability so we did it this way.\r
+//  compiler portability so we did it this way.\r
 //\r
 #define TRUE  ((BOOLEAN)(1==1))\r
 #endif\r
index e6538e2fdd5230e7d4d8f8c187f3d6ad1b7c6f67..18a790156f7a93c67ddda6c7952b19cce93ac95b 100644 (file)
@@ -207,19 +207,19 @@ typedef struct _EFI_IFR_GUID_VAREQNAME {
   /// For vareqval (0x100), NameId is 0x100.\r
   /// This value will convert to a Unicode String following this rule;\r
   ///            sprintf(StringBuffer, "%d", NameId) .\r
-  /// The the Unicode String will be used as a EFI Variable Name.\r
+  /// The Unicode String will be used as a EFI Variable Name.\r
   ///\r
   UINT16              NameId;\r
 } EFI_IFR_GUID_VAREQNAME;\r
 \r
 ///\r
-/// EDKII implementation extension GUID, used to indaicate there are bit fields in the varstore.\r
+/// EDKII implementation extension GUID, used to indicate there are bit fields in the varstore.\r
 ///\r
 #define EDKII_IFR_BIT_VARSTORE_GUID \\r
   { 0x82DDD68B, 0x9163, 0x4187, {0x9B, 0x27, 0x20, 0xA8, 0xFD, 0x60 ,0xA7, 0x1D}}\r
 \r
 ///\r
-/// EDKII implementation extension flags, used to indaicate the disply style and bit width for bit filed storage.\r
+/// EDKII implementation extension flags, used to indicate the display style and bit width for bit filed storage.\r
 /// Two high bits for display style and the low six bits for bit width.\r
 ///\r
 #define EDKII_IFR_DISPLAY_BIT            0xC0\r
index dcc52cd5e4c21fbbf6a31e0d7dab6c36106c1b7a..c495c1b2ff090e858a24630bf395fddfa1b8566f 100644 (file)
@@ -148,7 +148,7 @@ typedef struct {
   EFI_GUID                          FormatType;\r
 \r
   //\r
-  // An arry of bytes of length Length.\r
+  // An array of bytes of length Length.\r
   //\r
   // UINT8                             Data[1];\r
   //\r
index 0982da499813f2b146a5fb9a0bec648208b4c668..0753dd2e9da59fb9c20e69018ea132c9c054b228 100644 (file)
@@ -201,7 +201,7 @@ typedef struct _WIN_CERTIFICATE_EFI_PKCS1_15 {
   EFI_CERT_TYPE_RSA2048_SHA256. If the attribute specifies\r
   authenticated access, then the Data buffer should begin with an\r
   authentication descriptor prior to the data payload and DataSize\r
-  should reflect the the data.and descriptor size. The caller\r
+  should reflect the data.and descriptor size. The caller\r
   shall digest the Monotonic Count value and the associated data\r
   for the variable update using the SHA-256 1-way hash algorithm.\r
   The ensuing the 32-byte digest will be signed using the private\r
index 96ac691df042c1ac3ad914a1901b72cbce675173..72a22f765c06b308702596844eddbee658ca10ca 100644 (file)
@@ -68,7 +68,7 @@
   #if _MSC_EXTENSIONS\r
 \r
     //\r
-    // use Microsoft* C complier dependent integer width types\r
+    // use Microsoft* C compiler dependent integer width types\r
     //\r
     typedef unsigned __int64    UINT64;\r
     typedef __int64             INT64;\r
@@ -138,7 +138,7 @@ typedef INT32   INTN;
 //\r
 #if _MSC_EXTENSIONS\r
   //\r
-  // Microsoft* compiler requires _EFIAPI useage, __cdecl is Microsoft* specific C.\r
+  // Microsoft* compiler requires _EFIAPI usage, __cdecl is Microsoft* specific C.\r
   //\r
   #define EFIAPI __cdecl\r
 #endif\r
index 3a109ffa080dbf3c6b997d6475111d3c47878606..39691e1d552d29c782cba844512242204eb8c4b2 100644 (file)
@@ -497,7 +497,7 @@ typedef struct {
 #define EFI_ACPI_2_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE  0x54494C53\r
 \r
 //\r
-// "SPCR" Serial Port Concole Redirection Table\r
+// "SPCR" Serial Port Console Redirection Table\r
 //\r
 #define EFI_ACPI_2_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE  0x52435053\r
 \r
index ad635efc74160dfb5dbc89c7e65aef295c3c5d61..ac6dbc5905a9a6167b4e623d78526601cef2691e 100644 (file)
@@ -650,7 +650,7 @@ typedef struct {
 #define EFI_ACPI_3_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE  0x4746434D\r
 \r
 //\r
-// "SPCR" Serial Port Concole Redirection Table\r
+// "SPCR" Serial Port Console Redirection Table\r
 //\r
 #define EFI_ACPI_3_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE  0x52435053\r
 \r
index d7c5f0c858fabf3e3ce5e100913fd282a052931f..5218d24ce7e996e0051a97d90802573f7b1ef622 100644 (file)
@@ -98,7 +98,7 @@ typedef union {
 } PCI_TYPE_GENERIC;\r
 \r
 typedef struct {\r
-  UINT32  CardBusSocketReg; // Cardus Socket/ExCA Base\r
+  UINT32  CardBusSocketReg; // Cardbus Socket/ExCA Base\r
   // Address Register\r
   //\r
   UINT16  Reserved;\r
@@ -197,7 +197,7 @@ typedef struct {
 #define PCI_IF_8259_PIC               0x00\r
 #define PCI_IF_ISA_PIC                0x01\r
 #define PCI_IF_EISA_PIC               0x02\r
-#define PCI_IF_APIC_CONTROLLER        0x10 // I/O APIC interrupt controller , 32 bye none-prefectable memory.\r
+#define PCI_IF_APIC_CONTROLLER        0x10 // I/O APIC interrupt controller , 32 byte none-prefetchable memory.\r
 #define PCI_IF_APIC_CONTROLLER2       0x20\r
 #define PCI_SUBCLASS_TIMER            0x02\r
 #define PCI_IF_8254_TIMER             0x00\r
index d046c86453b20ba05bf3427d47f160d3d0f2c5e8..f27fb110be9dd52cee32a7175b1c9b77eccf5093 100644 (file)
@@ -125,7 +125,7 @@ EFI_DEVICE_PATH_PROTOCOL*
                                  If NULL, then the instance size is not output.\r
 \r
   @retval Pointer                A pointer to the copy of the current device path instance.\r
-  @retval NULL                   DevicePathInstace was NULL on entry or there was insufficient memory.\r
+  @retval NULL                   DevicePathInstance was NULL on entry or there was insufficient memory.\r
 \r
 **/\r
 typedef\r
index e03bda80c8e1da1a2b207e8d22a021e880a25cd0..0bd60c0b65b45d850a4812f5ffa2331ea2ccc546 100644 (file)
@@ -149,12 +149,12 @@ typedef enum {
   @param  DestinationX X coordinate of destination for the BltBuffer.\r
   @param  DestinationY Y coordinate of destination for the BltBuffer.\r
   @param  Width        Width of rectangle in BltBuffer in pixels.\r
-  @param  Height       Hight of rectangle in BltBuffer in pixels.\r
+  @param  Height       Height of rectangle in BltBuffer in pixels.\r
   @param  Delta        OPTIONAL\r
 \r
   @retval EFI_SUCCESS           The Blt operation completed.\r
   @retval EFI_INVALID_PARAMETER BltOperation is not valid.\r
-  @retval EFI_DEVICE_ERROR      A hardware error occured writting to the video buffer.\r
+  @retval EFI_DEVICE_ERROR      A hardware error occurred writing to the video buffer.\r
 \r
 **/\r
 typedef\r
index 83d7466586a52bdbb9220604ff58fbc27ed0e297..cb9ea124b9db6b584ee7d390d9036255a71d26f8 100644 (file)
@@ -25,7 +25,7 @@
 #define __EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL_H__\r
 \r
 //\r
-// Forward reference for pure ANSI compatability\r
+// Forward reference for pure ANSI compatibility\r
 \r
 typedef struct _EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL;\r
 \r
index a89a867ac3c5d00a91f477e2a5be70bf3e4055f8..0e33baa4f7974ec62ee3d7851e79ddcf917676f7 100644 (file)
@@ -133,12 +133,12 @@ typedef enum {
     @param[in] DestinationX  - X coordinate of destination for the BltBuffer.\r
     @param[in] DestinationY  - Y coordinate of destination for the BltBuffer.\r
     @param[in] Width         - Width of rectangle in BltBuffer in pixels.\r
-    @param[in] Height        - Hight of rectangle in BltBuffer in pixels.\r
+    @param[in] Height        - Height of rectangle in BltBuffer in pixels.\r
     @param[in] Delta         - OPTIONAL\r
 \r
     @retval EFI_SUCCESS           - The Blt operation completed.\r
     @retval EFI_INVALID_PARAMETER - BltOperation is not valid.\r
-    @retval EFI_DEVICE_ERROR      - A hardware error occured writting to the video buffer.\r
+    @retval EFI_DEVICE_ERROR      - A hardware error occurred writing to the video buffer.\r
 \r
 --*/\r
 typedef\r
index 987738508333e00c8a88b5b1230625d377be9fa6..da5cd9acd40e0ff9fa220223bbcb471375ecc3c6 100644 (file)
@@ -71,7 +71,7 @@
 \r
 \r
     //\r
-    // use Microsoft C complier dependent integer width types\r
+    // use Microsoft C compiler dependent integer width types\r
     //\r
     typedef unsigned __int64    UINT64;\r
     typedef __int64             INT64;\r
@@ -153,17 +153,17 @@ typedef INT64   INTN;
 //\r
 // Modifier to ensure that all protocol member functions and EFI intrinsics\r
 // use the correct C calling convention. All protocol member functions and\r
-// EFI intrinsics are required to modify thier member functions with EFIAPI.\r
+// EFI intrinsics are required to modify their member functions with EFIAPI.\r
 //\r
 #if _MSC_EXTENSIONS\r
   ///\r
-  /// Define the standard calling convention reguardless of optimization level.\r
+  /// Define the standard calling convention regardless of optimization level.\r
   /// __cdecl is Microsoft* specific C extension.\r
   ///\r
   #define EFIAPI __cdecl\r
 #elif __GNUC__\r
   ///\r
-  /// Define the standard calling convention reguardless of optimization level.\r
+  /// Define the standard calling convention regardless of optimization level.\r
   /// efidecl is an extension to GCC that supports the differnece between x64\r
   /// GCC ABI and x64 Microsoft* ABI. EFI is closer to the Microsoft* ABI and\r
   /// EFIAPI makes sure the right ABI is used for public interfaces.\r
index c9938f04bc6aac50ca212b90ff374953103c5397..0ec95b50c305473030242cff4d2631329bdf178e 100644 (file)
@@ -42,7 +42,7 @@ UInt32 LzmaEncProps_GetDictSize(const CLzmaEncProps *props2);
 SRes:\r
   SZ_OK           - OK\r
   SZ_ERROR_MEM    - Memory allocation error\r
-  SZ_ERROR_PARAM  - Incorrect paramater in props\r
+  SZ_ERROR_PARAM  - Incorrect parameter in props\r
   SZ_ERROR_WRITE  - ISeqOutStream write callback error\r
   SZ_ERROR_OUTPUT_EOF - output buffer overflow - version with (Byte *) output\r
   SZ_ERROR_PROGRESS - some break from progress callback\r
index f4793264a51d06e107b954333461e4239b969fa0..d7426d38a4dd80eb1d6dcd1334d72491714ea1f5 100644 (file)
@@ -142,7 +142,7 @@ HISTORY of the LZMA SDK
 9.35 beta      2014-12-07\r
 -------------------------      \r
 - 7zr.exe now support AES encryption.\r
-- SFX mudules were added to LZMA SDK\r
+- SFX modules were added to LZMA SDK\r
 - Some bugs were fixed.\r
 \r
 \r
index 01521e9398875247b286b6f9a7a033983bd9c7b7..a3deb2094335a0ec22c0a295f8d5f875ea96a3bb 100644 (file)
@@ -54,7 +54,7 @@ LZMA SDK Contents
     - C                     - small SFXs for installers (7z decompression)\r
     -     C++               - SFXs and SFXs for installers (7z decompression)\r
 \r
-  Precomiled binaries:\r
+  Precompiled binaries:\r
 \r
     - console programs for lzma / 7z / xz compression and decompression\r
     - SFX modules for installers.\r
index 6b0a32376d332ff65d6d7c295a1b5eb6e13428e3..ff4a433541701aef7efe940c7714354c86a24e62 100644 (file)
@@ -328,7 +328,7 @@ Returns:
       if (strlen(argv[0]) > 2) {\r
         Status = CountVerboseLevel (&argv[0][2], strlen(argv[0]) - 2, &VerboseLevel);\r
         if (EFI_ERROR (Status)) {\r
-          Error (NULL, 0, 0x1003, NULL, "%s is invaild parameter!", argv[0]);\r
+          Error (NULL, 0, 0x1003, NULL, "%s is invalid parameter!", argv[0]);\r
           return STATUS_ERROR;\r
         }\r
       }\r
@@ -351,7 +351,7 @@ Returns:
     //\r
     // Don't recognize the parameter.\r
     //\r
-    Error (NULL, 0, 0x1003, NULL, "%s is invaild parameter!", argv[0]);\r
+    Error (NULL, 0, 0x1003, NULL, "%s is invalid parameter!", argv[0]);\r
     return STATUS_ERROR;\r
   }\r
 \r
index a77f6798ec517f91a1dd86c7eb399e78656c1efc..29b11c597fd81b33ac9b08d84b75e2f81729a056 100644 (file)
@@ -229,7 +229,7 @@ Routine Description:
 \r
   Allocate memory spaces for data structures used in compression process\r
 \r
-Argements:\r
+Arguments:\r
   VOID\r
 \r
 Returns:\r
@@ -507,7 +507,7 @@ Returns: (VOID)
   if (mMatchLen >= 4) {\r
     //\r
     // We have just got a long match, the target tree\r
-    // can be located by MatchPos + 1. Travese the tree\r
+    // can be located by MatchPos + 1. Traverse the tree\r
     // from bottom up to get to a proper starting point.\r
     // The usage of PERC_FLAG ensures proper node deletion\r
     // in DeleteNode() later.\r
@@ -1708,7 +1708,7 @@ Returns:
   fprintf (stdout, "  --uefi\n\\r
             Enable UefiCompress, use TianoCompress when without this option\n");\r
   fprintf (stdout, "  -o FileName, --output FileName\n\\r
-            File will be created to store the ouput content.\n");\r
+            File will be created to store the output content.\n");\r
   fprintf (stdout, "  -v, --verbose\n\\r
            Turn on verbose output with informational messages.\n");\r
   fprintf (stdout, "  -q, --quiet\n\\r
@@ -2714,11 +2714,11 @@ Arguments:
   Source          - The source buffer containing the compressed data.\r
   Destination     - The destination buffer to store the decompressed data\r
   Scratch         - The buffer used internally by the decompress routine. This  buffer is needed to store intermediate data.\r
-  Version         - 1 for EFI1.1 Decompress algoruthm, 2 for Tiano Decompress algorithm\r
+  Version         - 1 for EFI1.1 Decompress algorithm, 2 for Tiano Decompress algorithm\r
 \r
 Returns:\r
 \r
-  RETURN_SUCCESS           - Decompression is successfull\r
+  RETURN_SUCCESS           - Decompression is successful\r
   RETURN_INVALID_PARAMETER - The source data is corrupted\r
 \r
 --*/\r
index 2128c4ff25e9fbf179b7a874e2cfc2e438bcd825..4d84d1c19cfe87c9e6071fa708bf5322fbbe7783 100644 (file)
@@ -210,7 +210,7 @@ List of Implemented Fixes and Changes for Maintenance Releases of PCCTS
 \r
     Sorcerer generated code may contain many calls to _t->type() in a\r
     single statement.  This change introduces a temporary variable\r
-    to eliminate unnnecesary function calls.\r
+    to eliminate unnecesary function calls.\r
 \r
     Change implemented by Tom Molteno (tim videoscript.com).\r
 \r
@@ -525,11 +525,11 @@ List of Implemented Fixes and Changes for Maintenance Releases of PCCTS
 #275. (Changed in MR23) Addition of -nopurify option to antlr\r
 \r
     A long time ago the PURIFY macro was introduced to initialize\r
-    return value arguments and get rid of annying messages from program\r
-    that checked for unitialized variables.\r
+    return value arguments and get rid of annoying messages from program\r
+    that checked for uninitialized variables.\r
 \r
     This has caused significant annoyance for C++ users that had\r
-    classes with virtual functions or non-trivial contructors because\r
+    classes with virtual functions or non-trivial constructors because\r
     it would zero the object, including the pointer to the virtual\r
     function table.  This could be defeated by redefining\r
     the PURIFY macro to be empty, but it was a constant surprise to\r
@@ -656,12 +656,12 @@ List of Implemented Fixes and Changes for Maintenance Releases of PCCTS
 #266. (Changed in MR23) virtual function printMessage()\r
 \r
     Bill Menees (bill.menees gogallagher.com) has completed the\r
-    tedious taks of replacing all calls to fprintf() with calls\r
+    tedious tasks of replacing all calls to fprintf() with calls\r
     to the virtual function printMessage().  For classes which\r
     have a pointer to the parser it forwards the printMessage()\r
     call to the parser's printMessage() routine.\r
 \r
-    This should make it significanly easier to redirect pccts\r
+    This should make it significantly easier to redirect pccts\r
     error and warning messages.\r
 \r
 #265. (Changed in MR23) Remove "labase++" in C++ mode\r
@@ -1253,7 +1253,7 @@ List of Implemented Fixes and Changes for Maintenance Releases of PCCTS
 \r
 #228. (Changed in MR20) dlg crashes on "()"\r
 \r
-    The following token defintion will cause DLG to crash.\r
+    The following token definition will cause DLG to crash.\r
 \r
         #token "()"\r
 \r
@@ -1747,7 +1747,7 @@ List of Implemented Fixes and Changes for Maintenance Releases of PCCTS
 \r
 #195. (Changed in MR14) #line directive not at column 1\r
 \r
-      Under certain circunstances a predicate test could generate\r
+      Under certain circumstances a predicate test could generate\r
       a #line directive which was not at column 1.\r
 \r
       Reported with fix by David KÃ¥gedal  (davidk lysator.liu.se)\r
@@ -2319,7 +2319,7 @@ List of Implemented Fixes and Changes for Maintenance Releases of PCCTS
 #164. (Changed in MR13) Unused variable _astp\r
 \r
       For many compilations, we have lived with warnings about\r
-      the unused variable _astp.  It turns out that this varible\r
+      the unused variable _astp.  It turns out that this variable\r
       can *never* be used because the code which references it was\r
       commented out.\r
 \r
index bba5ecdd64502160645f0dfc8d32cb14b3239cb1..33d7d20a6a3c6070d9d137e445751aba103f74e1 100644 (file)
 \r
       The first line of the makefiles require a definition of PCCTS_HOME.\r
 \r
-      These are in additiion to the AntlrMSVC50.* and DlgMSVC50.*\r
+      These are in addition to the AntlrMSVC50.* and DlgMSVC50.*\r
       supplied by Jeff Vincent (JVincent@novell.com).\r
 \r
 #137. (Changed in MR11) Token getType(), getText(), getLine() const members\r
       the variable [zz]traceOptionValueDefault is set to 0 or 1.  When\r
       the parser is initialized or [zz]traceReset() is called the\r
       value of [zz]traceOptionValueDefault is copied to [zz]traceOptionValue.\r
-      The value of [zz]traceGuessOptionValue is always initialzed to 1,\r
+      The value of [zz]traceGuessOptionValue is always initialized to 1,\r
       but, as noted earlier, nothing will be reported unless\r
       [zz]traceOptionValue is also positive.\r
 \r
 \r
       The syntax of the class statement ("class parser-name {")\r
       has been extended to allow for the specification of base\r
-      classes.  An arbirtrary number of tokens may now appear\r
+      classes.  An arbitrary number of tokens may now appear\r
       between the class name and the "{".  They are output\r
       again when the class declaration is generated.  For\r
       example:\r
         This is especially important for predicates formed by rules\r
         like the following:\r
 \r
-            uppperCaseVowel : <<isUpperCase(LATEXT(1))>>?  vowel;\r
+            upperCaseVowel  : <<isUpperCase(LATEXT(1))>>?  vowel;\r
             vowel:          : <<isVowel(LATEXT(1))>>? LETTERS;\r
 \r
         These predicates are combined using AND since both must be\r
       a predicate expression tree.  Prior to 1.33MR10 this link was never\r
       cleared and the next time the guard was used to construct a new\r
       tree the link could contain a spurious reference to another element\r
-      which had previosly been joined to it in the semantic predicate tree.\r
+      which had previously been joined to it in the semantic predicate tree.\r
 \r
       For example:\r
 \r
       tokens.  They may not contain references to (...)+ and\r
       (...)* blocks.  This is now checked.  This replaces the\r
       fatal error message in item #78 with an appropriate\r
-      (non-fatal) error messge.\r
+      (non-fatal) error message.\r
 \r
       In theory, context guards should be allowed to reference\r
       rules.  However, I have not had time to fix this.\r
       correctly when the sets were of unequal sizes.  Rewrote\r
       set_equ to make it simpler and remove unnecessary and\r
       expensive calls to set_deg().  This routine was not used\r
-      in 1.33 vanila.\r
+      in 1.33 vanilla.\r
 \r
 #85.  (Changed in 1.33MR10) Allow redefinition of MaxNumFiles\r
 \r
 \r
       There were no changes in antlr or dlg output from the revised version.\r
 \r
-      The following fragment demonstates the problem by giving different\r
+      The following fragment demonstrates the problem by giving different\r
       follow sets (option -pa) for var_access when built with k=1 and ck=2 on\r
       1.33 vanilla and 1.33MR10:\r
 \r
 \r
          1. start : r:rule t:Token <<$start=$r;>>\r
 \r
-                The $r refrence will not work when combined with\r
+                The $r reference will not work when combined with\r
                 the -gt option.\r
 \r
          2. start : t:Token         <<$start=$t;>>\r
             parse by "falling through".  The parse can still be easily\r
             resumed in other ways, but not in the most natural fashion.\r
 \r
-            This results in an inconsistentcy between named exception\r
+            This results in an inconsistency between named exception\r
             handlers and exception handlers for alternatives.  When\r
             an exception handler for an alternative "falls through"\r
             it goes to the nextmost outer handler - not the "normal\r
             zzconsumeUntil()\r
             zzconsumeUntilToken()\r
 \r
-#58.  (Changed in 1.33MR7) Added defintion of zzbufsize to dlgauto.h\r
+#58.  (Changed in 1.33MR7) Added definition of zzbufsize to dlgauto.h\r
 \r
 #57.  (Changed in 1.33MR7) Format of #line directive\r
 \r
 \r
 #56.  (Added in 1.33MR7) Jan Mikkelsen <janm@zeta.org.au>\r
 \r
-        Move PURIFY macro invocaton to after rule's init action.\r
+        Move PURIFY macro invocation to after rule's init action.\r
 \r
-#55.  (Fixed in 1.33MR7) Unitialized variables in ANTLRParser\r
+#55.  (Fixed in 1.33MR7) Uninitialized variables in ANTLRParser\r
 \r
         Member variables inf_labase and inf_last were not initialized.\r
         (See item #50.)\r
         The reason for "Normal Action" is that the normal flow of the\r
         program after a user-written exception handler is to "drop through".\r
         In the case of an exception handler for a rule this results in\r
-        the exection of a "return" statement.  In the case of an\r
+        the execution of a "return" statement.  In the case of an\r
         exception handler attached to an alternative, rule, or token\r
         this is the code that would have executed had there been no\r
         exception.\r
 \r
         Repair bug introduced by 1.33MR1 for #tokdefs.  The original fix\r
         placed "DLGmaxToken=9999" and "DLGminToken=0" in the TokenType enum\r
-        in order to fix a problem with an aggresive compiler assigning an 8\r
+        in order to fix a problem with an aggressive compiler assigning an 8\r
         bit enum which might be too narrow.  This caused #tokdefs to assume\r
         that there were 9999 real tokens.  The repair to the fix causes antlr to\r
         ignore TokenTypes "DLGmaxToken" and "DLGminToken" in a #tokdefs file.\r
index 91defae169c4e7f5c3f059ae52130b94715a9e77..7134500e2fbf6d44dcbef02487bc97180d8c7f94 100644 (file)
       the variable [zz]traceOptionValueDefault is set to 0 or 1.  When\r
       the parser is initialized or [zz]traceReset() is called the\r
       value of [zz]traceOptionValueDefault is copied to [zz]traceOptionValue.\r
-      The value of [zz]traceGuessOptionValue is always initialzed to 1,\r
+      The value of [zz]traceGuessOptionValue is always initialized to 1,\r
       but, as noted earlier, nothing will be reported unless\r
       [zz]traceOptionValue is also positive.\r
 \r
         This is especially important for predicates formed by rules\r
         like the following:\r
 \r
-            uppperCaseVowel : <<isUpperCase(LATEXT(1))>>?  vowel;\r
+            upperCaseVowel  : <<isUpperCase(LATEXT(1))>>?  vowel;\r
             vowel:          : <<isVowel(LATEXT(1))>>? LETTERS;\r
 \r
         These predicates are combined using AND since both must be\r
             parse by "falling through".  The parse can still be easily\r
             resumed in other ways, but not in the most natural fashion.\r
 \r
-            This results in an inconsistentcy between named exception\r
+            This results in an inconsistency between named exception\r
             handlers and exception handlers for alternatives.  When\r
             an exception handler for an alternative "falls through"\r
             it goes to the nextmost outer handler - not the "normal\r
         The reason for "Normal Action" is that the normal flow of the\r
         program after a user-written exception handler is to "drop through".\r
         In the case of an exception handler for a rule this results in\r
-        the exection of a "return" statement.  In the case of an\r
+        the execution of a "return" statement.  In the case of an\r
         exception handler attached to an alternative, rule, or token\r
         this is the code that would have executed had there been no\r
         exception.\r
index 5a9b22e1bd5fb3fd21bc10e9ace42cef2e6e798e..539cf775257bc987b188c923ff28e972bc27667b 100644 (file)
@@ -22,7 +22,7 @@
     If the context guard g is not a subset of the lookahead context for r1\r
     (in other words g is neither A nor B) then the code may execute r1 \r
     even when the lookahead context is not satisfied.  This is an error\r
-    by the person coding the grammer, and the error should be reported to\r
+    by the person coding the grammar, and the error should be reported to\r
     the user, but it isn't. expect.  Some examples I've run seem to\r
     indicate that such an error actually results in the rule becoming\r
     unreachable.\r
 \r
     THM:  In MR20 have fixed the most common cases.\r
 \r
-    The following token defintion will cause DLG to crash.\r
+    The following token definition will cause DLG to crash.\r
 \r
         #token "()"\r
 \r
index 8088b3c25704fc307020fa6185c43458378b16c7..58d0b134b9d8a8ae1f151cea181ba419f3216217 100644 (file)
@@ -1394,7 +1394,7 @@ tclass()
   /* MR23 */         if (p!= NULL && akaString != NULL) {\r
     /* MR23 */           if (p->akaString != NULL) {\r
       /* MR23 */             if (strcmp(p->akaString,akaString) != 0) {\r
-        /* MR23 */                warnFL(eMsg2("this #tokclass statment conflicts with a previous #tokclass %s(\"%s\") statement",\r
+        /* MR23 */                warnFL(eMsg2("this #tokclass statement conflicts with a previous #tokclass %s(\"%s\") statement",\r
         /* MR23 */                              t,p->akaString),\r
         /* MR23 */                                         FileStr[save_file],save_line);\r
         /* MR23 */             };\r
@@ -1635,7 +1635,7 @@ token()
     if (te != NULL && akaString != NULL) {\r
       if (te->akaString != NULL) {\r
         if (strcmp(te->akaString,akaString) != 0) {\r
-          warnFL(eMsg2("this #token statment conflicts with a previous #token %s(\"%s\") statement",\r
+          warnFL(eMsg2("this #token statement conflicts with a previous #token %s(\"%s\") statement",\r
           t,te->akaString),\r
           FileStr[save_file],save_line);\r
         };\r
index e01728a1024f3ae05a9dc53cbcd2f1221f6de701..c44b036c6fb7247a917c83fca71c5e265b01307b 100644 (file)
@@ -1331,7 +1331,7 @@ tclass    :       <<char *t=NULL; TCnode *e; int go=1,tok,totok; TermEntry *p, *term, *to
 /* MR23 */         if (p!= NULL && akaString != NULL) {\r
 /* MR23 */           if (p->akaString != NULL) {\r
 /* MR23 */             if (strcmp(p->akaString,akaString) != 0) {\r
-/* MR23 */                warnFL(eMsg2("this #tokclass statment conflicts with a previous #tokclass %s(\"%s\") statement",\r
+/* MR23 */                warnFL(eMsg2("this #tokclass statement conflicts with a previous #tokclass %s(\"%s\") statement",\r
 /* MR23 */                              t,p->akaString),\r
 /* MR23 */                                         FileStr[save_file],save_line);\r
 /* MR23 */             };\r
@@ -1439,7 +1439,7 @@ token     :       <<char *t=NULL, *e=NULL, *a=NULL; int tnum=0;>>
                 if (te != NULL && akaString != NULL) {\r
                   if (te->akaString != NULL) {\r
                     if (strcmp(te->akaString,akaString) != 0) {\r
-                      warnFL(eMsg2("this #token statment conflicts with a previous #token %s(\"%s\") statement",\r
+                      warnFL(eMsg2("this #token statement conflicts with a previous #token %s(\"%s\") statement",\r
                                     t,te->akaString),\r
                         FileStr[save_file],save_line);\r
                     };\r
index e3de38759ffd1d54636c829553dd66cb4cdc4b69..a8d183c4ebc5c4dec20a13dbb406c54d482aa5d6 100644 (file)
@@ -286,7 +286,7 @@ resource 'cmdo' (128, "Antlr") {
                                "If this option is checked, ANTLR will ge"\r
                                "nerate a cross reference for all rules. "\r
                                "For each rule it will print a list of al"\r
-                               "l other rules that refrence it."\r
+                               "l other rules that reference it."\r
                        },\r
                        /* [10] */\r
                        NotDependent {\r
index c8a633fc068a35428c1edf4effe6a4024e5b7885..ba1384dabee06c93b404b26b9736948714cf0104 100644 (file)
@@ -166,7 +166,7 @@ ExceptionGroup *eg;
         };\r
       };\r
 \r
-      /*  ocurs at a later pass then for the exception_label       */\r
+      /*  occurs at a later pass then for the exception_label      */\r
       /*  if an outerEG has been found then fill in the outer EG   */\r
       /*  remove if from the list when the BlkLevel gets smaller   */\r
 \r
index e1a76ec62060327d78833aff63e01bd7eabda29f..e3fac09f2a0cbaab985e241c90894a143d89836e 100644 (file)
@@ -353,7 +353,7 @@ set *rk_out;
                set_orin(&a, b);\r
                set_free(b);\r
        }\r
-       set_free(rk);                           /* this has no members, but free it's memory */\r
+       set_free(rk);                           /* this has no members, but free its memory */\r
        set_orin(rk_out, rk2);          /* remember what we couldn't do */\r
        set_free(rk2);\r
     if (MR_MaintainBackTrace) MR_pointerStackPop(&MR_BackTraceStack);\r
@@ -937,7 +937,7 @@ int jtype;
     long    n;\r
     int     thisOverflow=0;             /* MR9 */\r
     long    set_deg_value;              /* MR10 */\r
-    long    threshhold;                 /* MR10 */\r
+    long    threshold;                 /* MR10 */\r
 \r
        require(block!=NULL, "NULL block");\r
        require(block->ntype==nJunction, "invalid block");\r
@@ -954,8 +954,8 @@ int jtype;
                        b = set_and(alt1->fset[i], alt2->fset[i]);\r
 /* MR9 */       set_deg_value = set_deg(b);\r
 /* MR10 */      if (n > 0) {\r
-/* MR10 */        threshhold = LONG_MAX / n;\r
-/* MR10 */        if (set_deg_value <= threshhold) {\r
+/* MR10 */        threshold = LONG_MAX / n;\r
+/* MR10 */        if (set_deg_value <= threshold) {\r
 /* MR10 */             n *= set_deg_value;\r
 /* MR10 */        } else {\r
 /* MR10 */          n=LONG_MAX;\r
index fe1b4d624205e135efd10c228f5e02d1d002e983..8a4823a054468a691ab7a97ff9f8469c406fa546 100644 (file)
@@ -739,7 +739,7 @@ set *rk_out;
                t = tlink(t, u, k2);    /* any alts missing k2 toks, add u onto end */\r
         Tfree(u);               /* MR10 */\r
        }\r
-       set_free(rk);                           /* rk is empty, but free it's memory */\r
+       set_free(rk);                           /* rk is empty, but free its memory */\r
        set_orin(rk_out, rk2);          /* remember what we couldn't do */\r
        set_free(rk2);\r
        return t;\r
index 975558f0dd07a718a0790387de1eea1e5504374f..8e41239f4751504a6aab36e2b2b9657347827cd8 100644 (file)
@@ -1590,7 +1590,7 @@ int *lastAltEmpty; /* MR23 */
                   with input "C"\r
 \r
    Before MR21 the error message would be "expecting B - found C".  After MR21\r
-   the error message would be "expcect A, B - found C".  This was good, but it\r
+   the error message would be "expect A, B - found C".  This was good, but it\r
    caused problems for those using parser exceptions because the reference to\r
    B was generated inside the {...} where B really wasn't part of the block.\r
 \r
@@ -1781,7 +1781,7 @@ Junction *q;
                followed by a loopBlock whereas the start of a (...)+ block is\r
                represented as a single node: a plusBlock.  So if first_item_is_guess_block\r
                is called when the current node is a loopBegin it starts with the\r
-               loop block rather than the the sub block which follows the loop block.\r
+               loop block rather than the sub block which follows the loop block.\r
                However, we can't just skip past the loop block because some routines\r
                depend on the old implementation.  So, we provide a new implementation\r
                which does skip the loopBlock.  However, which should be called when ?\r
@@ -3496,7 +3496,7 @@ do {    /* MR10     Change recursion into iteration         */
                        /* MR23\r
                           If there were only one return value operand and\r
                           it had an initializer then it would have been\r
-                          initiailized in the declaration.\r
+                          initialized in the declaration.\r
                        */\r
 \r
                        returnValueInitializer = getInitializer(q->ret);         /* MR23 */\r
@@ -3740,7 +3740,7 @@ RuleEntry *r;
         /* NOTICE: this is done only here, for the method definition, but  */\r
         /*         not for the method declaration inside the class         */\r
         /*         definition. This is exactly the behaviour defined in    */\r
-        /*         C++ standard for default paramters.                     */\r
+        /*         C++ standard for default parameters.                    */\r
 \r
        DumpANSIFunctionArgDef(output,q, 0 /* emit initializers ? */);\r
        _gen("\n");\r
@@ -4726,7 +4726,7 @@ int bInitializer;
                blocks to look like (...|...| epsilon) since there were\r
                intervening generics.  This fixes the problem for this\r
                particular case.  Things like actions or empty blocks of\r
-               various kinds will still cause problems, but I wasnt't\r
+               various kinds will still cause problems, but I wasn't\r
                prepared to handle pathological cases like (A|()*). It\r
                does handle (A | ()), which is a recommended idiom for\r
                epsilon.\r
index 8d736d520059a04f659e67d94541053f6874808c..30cc8b603148707cbfd10f096f615c893a167b89 100644 (file)
@@ -215,7 +215,7 @@ typedef Graph Attrib;
 \r
                                                /* M a x i m u m s */\r
 \r
-/* MR20 Note G. Hobbelt These values are superceded by values in hash.h */\r
+/* MR20 Note G. Hobbelt These values are superseded by values in hash.h */\r
 \r
 #ifndef HashTableSize\r
 #define HashTableSize  253\r
index a4e7f69b3665d34f1a2cd3b09654eb25d67ef2ea..357b8ace016f1cf4f85913f41e440224a36e9043 100644 (file)
@@ -640,7 +640,7 @@ Junction *q;
  *\r
  */\r
 \r
-/* MR5         Jan Mikkelsen 26-May-97 - added initalComma parameter              */\r
+/* MR5         Jan Mikkelsen 26-May-97 - added initialComma parameter              */\r
 \r
 void\r
 #ifdef __USE_PROTOS\r
@@ -696,7 +696,7 @@ FILE *output;
                                  &pSeparator,\r
                                  &nest);\r
 \r
-    /* MR26 Handle rule arguments such as: IIR_Bool (IIR_Decl::*contstraint)()\r
+    /* MR26 Handle rule arguments such as: IIR_Bool (IIR_Decl::*constraint)()\r
        For this we need to strip off anything which follows the symbol.\r
      */\r
 \r
index 110bf5996fd72fb3687beecfd450a40de0a6ea10..b57f5ded846cf1401866858c4a161727d1af9b82 100644 (file)
@@ -2357,7 +2357,7 @@ NEXT_P:
  *      expression, such as "#pred NotA !A" or "#pred NotXY ! (X && Y) or\r
  *      "#pred XbarY !(X && Y)".  In particular, it cannot be set by any\r
  *      predicate expression occurring under any other circumstances.\r
- *      The #pred predicate expresssions are stored with in predEntry->pred\r
+ *      The #pred predicate expressions are stored with in predEntry->pred\r
  *      and do not normally appear anywhere else until the predicates are\r
  *      "unfolded" in order to recognize redundancies, conflicts, and\r
  *      tautologies.\r
index d6d5d7809d2665d0ea7c366e675bbcaab3ecaeb7..2d473ec8b6631fb140c3e0dee718d3dd91a312ed 100644 (file)
@@ -90,7 +90,7 @@ set nfa_states;
        if (dfa_size<=dfa_allocated){\r
                /* need to redo array */\r
                if (!dfa_array){\r
-                       /* need some to do inital allocation */\r
+                       /* need some to do initial allocation */\r
                        dfa_size=dfa_allocated+DFA_MIN;\r
                        dfa_array=(dfa_node **) malloc(sizeof(dfa_node*)*\r
                                dfa_size);\r
@@ -113,7 +113,7 @@ set nfa_states;
 }\r
 \r
 \r
-/* past a pointer to the start start of the nfa graph\r
+/* past a pointer to the start of the nfa graph\r
  * nfa_to_dfa convers this graph to dfa.  The function returns\r
  * a pointer to the first dfa state.\r
  * NOTE:  The function that prints out the table will have to figure out how\r
@@ -219,7 +219,7 @@ FILE *f;
 #endif\r
 \r
 /* Returns a pointer to a dfa node that has the same nfa nodes in it.\r
- * This may or maynot be a newly created node.\r
+ * This may or may not be a newly created node.\r
  */\r
 dfa_node *\r
 #ifdef __USE_PROTOS\r
index 9f387c0a1c87623652e79384e6e4b43e4e648a1d..97d1718c70efdf680c418b79e12dab09c6adf2b5 100644 (file)
@@ -117,7 +117,7 @@ typedef struct {
 extern char    program[];      /* tells what program this is */\r
 extern char    version[];      /* tells what version this is */\r
 extern char    *file_str[];    /* file names being used */\r
-extern int     err_found;      /* flag to indicate error occured */\r
+extern int     err_found;      /* flag to indicate error occurred */\r
 extern int     action_no;      /* last action function printed */\r
 extern int     func_action;    /* should actions be turned into functions?*/\r
 extern set     used_chars;     /* used to label trans. arcs */\r
@@ -129,7 +129,7 @@ extern int  comp_level;     /* what compression level to use */
 extern int     interactive;    /* interactive scanner (avoid lookahead)*/\r
 extern int     mode_counter;   /* keeps track of the number of %%name */\r
 extern int     dfa_basep[];    /* start of each group of dfa */\r
-extern int     dfa_class_nop[];/* number of transistion arcs in */\r
+extern int     dfa_class_nop[];/* number of transition arcs in */\r
                                /* each dfa in each mode */\r
 extern int     nfa_allocated;\r
 extern int     dfa_allocated;\r
index c5311fa1b8095ae3ced03a8d6b7d4a8c0371004a..c88c15131843e5fe99b2633a549d8d20d5c821b0 100644 (file)
@@ -23,9 +23,9 @@ resource 'cmdo' (128, "Dlg") {
                                {35, 175, 50, 225},\r
                                "On",\r
                                "-CC",\r
-                               "When this control is checked, DLG genera"\r
-                               "tes a scanner using C++ classes rather t"\r
-                               "han C functions."\r
+                               "When this control is checked, DLG generates "\r
+                               "a scanner using C++ classes rather than "\r
+                               "C functions."\r
                        },\r
                        /* [2] */\r
                        Or {\r
@@ -41,8 +41,7 @@ resource 'cmdo' (128, "Dlg") {
                                "DLGLexer",\r
                                keepCase,\r
                                "-cl",\r
-                               "This entry specifies the name DLG uses f"\r
-                               "or the C++ lexer class."\r
+                               "This entry specifies the name DLG uses for the C++ lexer class."\r
                        },\r
                        /* [3] */\r
                        NotDependent {\r
@@ -90,8 +89,7 @@ resource 'cmdo' (128, "Dlg") {
                                        {66, 25, 85, 135},\r
                                        "Output File",\r
                                        "",\r
-                                       "Choose the name of the file that will ho"\r
-                                       "ld the DLG-produced scanner."\r
+                                       "Choose the name of the file that will hold the DLG-produced scanner."\r
                                },\r
                                NoMore {\r
 \r
@@ -161,8 +159,7 @@ resource 'cmdo' (128, "Dlg") {
                                "mode.h",\r
                                keepCase,\r
                                "-m",\r
-                               "This entry specifies the name DLG uses f"\r
-                               "or its lexical mode output file."\r
+                               "This entry specifies the name DLG uses for its lexical mode output file."\r
                        },\r
                        /* [11] */\r
                        NotDependent {\r
@@ -171,15 +168,14 @@ resource 'cmdo' (128, "Dlg") {
                        RadioButtons {\r
                                {       /* array radioArray: 3 elements */\r
                                        /* [1] */\r
-                                       {134, 175, 149, 255}, "None", "", Set, "When this option is selected, DLG will n"\r
-                                       "ot compress its tables.",\r
+                                       {134, 175, 149, 255}, "None", "", Set, "When this option is selected, DLG will not "\r
+                                       "compress its tables.",\r
                                        /* [2] */\r
-                                       {134, 265, 149, 345}, "Level 1", "-C1", NotSet, "When this option is selected, DLG will r"\r
-                                       "emove all unused characters from the tra"\r
-                                       "nsition-from table.",\r
+                                       {134, 265, 149, 345}, "Level 1", "-C1", NotSet, "When this option is selected, DLG will "\r
+                                       "remove all unused characters from the transition-from table.",\r
                                        /* [3] */\r
-                                       {134, 360, 149, 450}, "Level 2", "-C2", NotSet, "When this option is selected, DLG will p"\r
-                                       "erform level 1 compression plus it will "\r
+                                       {134, 360, 149, 450}, "Level 2", "-C2", NotSet, "When this option is selected, DLG will "\r
+                                       "perform level 1 compression plus it will "\r
                                        "map equivalent characters into the same "\r
                                        "character classes."\r
                                }\r
@@ -202,8 +198,8 @@ resource 'cmdo' (128, "Dlg") {
                                {165, 20, 180, 145},\r
                                "Case Sensitive",\r
                                "-ci",\r
-                               "When this control is checked, the DLG au"\r
-                               "tomaton will treat upper and lower case "\r
+                               "When this control is checked, the DLG automaton "\r
+                               "will treat upper and lower case "\r
                                "characters identically."\r
                        },\r
                        /* [14] */\r
@@ -215,9 +211,8 @@ resource 'cmdo' (128, "Dlg") {
                                {165, 150, 180, 300},\r
                                "Interactive Scanner",\r
                                "-i",\r
-                               "When this control is checked, DLG will g"\r
-                               "enerate as interactive a scanner as poss"\r
-                               "ible."\r
+                               "When this control is checked, DLG will generate "\r
+                               "as interactive a scanner as possible."\r
                        },\r
                        /* [15] */\r
                        NotDependent {\r
@@ -229,8 +224,8 @@ resource 'cmdo' (128, "Dlg") {
                                "Ambiguity Warnings",\r
                                "-Wambiguity",\r
                                "When this control is checked, DLG warns "\r
-                               "if more than one regular expression coul"\r
-                               "match the same character sequence."\r
+                               "if more than one regular expression coul"\r
+                               "match the same character sequence."\r
                        },\r
                        /* [16] */\r
                        NotDependent {\r
@@ -240,9 +235,9 @@ resource 'cmdo' (128, "Dlg") {
                                VersionString {\r
                                        "1.33MR"\r
                                },\r
-                               "PCCTS was written by Terence Parr, Russe"\r
-                               "ll Quong, Will Cohen, and Hank Dietz: 19"\r
-                               "89-1998. MPW port by Scott Haney.",\r
+                               "PCCTS was written by Terence Parr, Russell "\r
+                               "Quong, Will Cohen, and Hank Dietz: 1989-1998. "\r
+                               "MPW port by Scott Haney.",\r
                                noDialog\r
                        },\r
                        /* [17] */\r
@@ -266,8 +261,8 @@ resource 'cmdo' (128, "Dlg") {
                                {142, 20, 157, 148},\r
                                "Generate ANSI C",\r
                                "-ga",\r
-                               "When this control is checked, DLG genera"\r
-                               "tes ANSI C compatible code."\r
+                               "When this control is checked, DLG generates "\r
+                               "ANSI C compatible code."\r
                        }\r
                }\r
        }\r
index 51f79759fbf3877801a065e99509daff30243b83..fbaf93afc63ceac9ec9239dee6b110105e69b3bc 100644 (file)
@@ -813,7 +813,7 @@ new_nfa_node()
   if (nfa_size<=nfa_allocated){\r
     /* need to redo array */\r
     if (!nfa_array){\r
-      /* need some to do inital allocation */\r
+      /* need some to do initial allocation */\r
       nfa_size=nfa_allocated+NFA_MIN;\r
       nfa_array=(nfa_node **) malloc(sizeof(nfa_node*)*\r
       nfa_size);\r
index 0e3fe6d9d7f35e3c01cd0c242b3a80a9d55af5bb..657f3251a6ef0c51f3a3c83aceaf4d36969677c2 100644 (file)
@@ -463,7 +463,7 @@ new_nfa_node()
        if (nfa_size<=nfa_allocated){\r
                /* need to redo array */\r
                if (!nfa_array){\r
-                       /* need some to do inital allocation */\r
+                       /* need some to do initial allocation */\r
                        nfa_size=nfa_allocated+NFA_MIN;\r
                        nfa_array=(nfa_node **) malloc(sizeof(nfa_node*)*\r
                                nfa_size);\r
index 0b8bc163d1b7d60ace0e419519e42907e02492c3..f2dce30f5fe5a6b3d17f764b71d64c3f31db99d3 100644 (file)
@@ -134,7 +134,7 @@ int         level;  /* compression level to uses */
 \r
 \r
 /* given pointer to beginning of graph and recursively walks it trying\r
- * to find a maximal partition.  This partion in returned in maximal_class\r
+ * to find a maximal partition.  This partition in returned in maximal_class\r
  */\r
 #ifdef __USE_PROTOS\r
 void intersect_nfa_labels(nfa_node* start,set* maximal_class)\r
index a1efc3b3b98fbcc359a1dd329e802f4138a43f4c..4d682a5ef75f141b4fb334cda9a3a0de793b9921 100644 (file)
@@ -69,7 +69,7 @@ ANTLRTokenPtr::~ANTLRTokenPtr()
 \r
 //\r
 //  8-Apr-97   MR1     Make operator -> a const member function\r
-//                       as weall as some other member functions\r
+//                       as well as some other member functions\r
 //\r
 ANTLRTokenPtr& ANTLRTokenPtr::operator = (const ANTLRTokenPtr & lhs)    // MR1\r
 {\r
index d2147f521725648a644fcc1b215eddd47c994acd..f3b4b79e8a8b8643732dc43cd7945bee7fb251ba 100644 (file)
@@ -6,7 +6,7 @@
 /* By Hubert Holin (Hubert.Holin@Bigfoot.com), 1998.           */\r
 /*                                                                                                                     */\r
 /* This is completely free stuff, do whatever you want with    */\r
-/* it (but then, I will take no responsability for whatever    */\r
+/* it (but then, I will take no responsibility for whatever    */\r
 /* may happen if you do either... caveat emptor!).                     */\r
 /*                                                                                                                     */\r
 /************************************************************/\r
@@ -24,12 +24,12 @@ PCCTS_NAMESPACE_STD
 \r
 \r
 // NOTES:      The semantics of the copy constructor\r
-//                     and the affectation operator may be unwaranted...\r
+//                     and the affectation operator may be unwarranted...\r
 //                     and the stream may not be reset.\r
 //\r
 //                     It would have been so much nicer for nextChar()\r
 //                     to throw (of for the DLGInputStream to change status)\r
-//                     upon hiting EOF than to return an "int"...\r
+//                     upon hitting EOF than to return an "int"...\r
 \r
 template       <\r
                                class E,\r
index 80664535d35c9ee173c56c3f89789737f1a32509..27a324274257b8278121751b80d26401fdf76074 100644 (file)
@@ -797,7 +797,7 @@ extern int zzguessing;
 extern zzjmp_buf zzguess_start;\r
 #endif\r
 \r
-/* Define global veriables that refer to values exported by the scanner.\r
+/* Define global variables that refer to values exported by the scanner.\r
  * These declarations duplicate those in dlgdef.h, but are needed\r
  * if ANTLR is not to generate a .dlg file (-gx); PS, this is a hack.\r
  */\r
index 35339d01c5e2bc885d865c66d5b5908c52f49909..f96707debfb99f275fbaac5b8e65e4a0d27c7e62 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  VfrCompiler internal defintions.\r
+  VfrCompiler internal definitions.\r
 \r
 Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
index c105d73bea740a442f259e8988c9d0bfd999881f..7dfea3afda19fdbc12a7625b7a18a0d8f3dfea62 100644 (file)
@@ -45,7 +45,7 @@ static SVFR_ERROR_HANDLE VFR_ERROR_HANDLE_TABLE [] = {
   { VFR_RETURN_DATA_STRING_ERROR, ": data field string error or not support"},\r
   { VFR_RETURN_DEFAULT_VALUE_REDEFINED, ": default value re-defined with different value"},\r
   { VFR_RETURN_CONSTANT_ONLY, ": only constant is allowed in the expression"},\r
-  { VFR_RETURN_VARSTORE_NAME_REDEFINED_ERROR, ": Varstore name is defined by more than one varstores, it can't be referred as varstore, only varstore strucure name could be used."},\r
+  { VFR_RETURN_VARSTORE_NAME_REDEFINED_ERROR, ": Varstore name is defined by more than one varstores, it can't be referred as varstore, only varstore structure name could be used."},\r
   { VFR_RETURN_BIT_WIDTH_ERROR, ": bit width must be <= sizeof (type) * 8 and the max width can not > 32" },\r
   { VFR_RETURN_STRING_TO_UINT_OVERFLOW, ": String to UINT* Overflow"},\r
   { VFR_RETURN_CODEUNDEFINED, ": undefined Error Code" }\r
index 2944ffc76b9c30b13b277bd5d4dbfff71c4dbc72..6e63b698248bdd28dc8aa8b7921d86cc853e25fd 100644 (file)
@@ -945,7 +945,7 @@ CFormPkg::DeclarePendingQuestion (
         }\r
         CNObj.SetFlags (0, Info.mVarType);\r
         //\r
-        // Use maximum value not to limit the vaild value for the undefined question.\r
+        // Use maximum value not to limit the valid value for the undefined question.\r
         //\r
         switch (Info.mVarType) {\r
         case EFI_IFR_TYPE_NUM_SIZE_64:\r
@@ -1515,7 +1515,7 @@ CIfrRecordInfoDB::IfrRecordAdjust (
       }\r
       //\r
       // extract inconsistent opcode list\r
-      // pNode is Incosistent opcode, tNode is End Opcode\r
+      // pNode is Inconsistent opcode, tNode is End Opcode\r
       //\r
 \r
       //\r
index c72a62ae91241593e73fceaf14950f354fab4829..f8465d47d484815f4a99ad0cdfab5c0957d45cf9 100644 (file)
@@ -64,7 +64,7 @@ VfrParserStart (
 //\r
 // Define a lexical class for parsing quoted strings. Basically\r
 // starts with a double quote, and ends with a double quote that\r
-// is not preceeded with a backslash.\r
+// is not preceded with a backslash.\r
 //\r
 #lexclass QUOTED_STRING\r
 #token TheString            "~[\"]*\"" << mode (START); >>\r
@@ -1214,7 +1214,7 @@ vfrStatementVarStoreNameValue :
   ;\r
 \r
 //\r
-// keep classDeinition and validClassNames for compatibility but not generate\r
+// keep classDefinition and validClassNames for compatibility but not generate\r
 // any IFR object\r
 //\r
 classDefinition[UINT16 & Class] :\r
@@ -4121,7 +4121,7 @@ vfrStatementExpression [UINT32 RootLevel, UINT32 ExpOpCount = 0] :
 \r
 //\r
 // Add new sub function for the sub expression extension to remember the ExpOpCount\r
-// This funciton is only called by sub expression.\r
+// This function is only called by sub expression.\r
 //\r
 vfrStatementExpressionSub [UINT32 RootLevel, UINT32 & ExpOpCount] :\r
   andTerm[$RootLevel, $ExpOpCount]\r
@@ -5615,7 +5615,7 @@ EfiVfrParser::_DeclareDefaultFrameworkVarStore (
       VSEObj.SetAttributes (0x00000002); //hardcode EFI_VARIABLE_BOOTSERVICE_ACCESS attribute\r
       VSEObj.SetGuid (&pNode->mGuid);\r
       VSEObj.SetVarStoreId (pNode->mVarStoreId);\r
-      // Generate old efi varstore storage structure for compatiable with old "VarEqVal" opcode,\r
+      // Generate old efi varstore storage structure for compatible with old "VarEqVal" opcode,\r
       // which is 3 bytes less than new structure define in UEFI Spec 2.3.1.\r
       VSEObj.SetBinaryLength (sizeof (EFI_IFR_VARSTORE_EFI) - 3);\r
 #ifdef VFREXP_DEBUG\r
index 2ebaf58f17c59a66167a526157b6dde163774f75..0d0f926f82660a4fa498480094fce1a32b294fe6 100644 (file)
@@ -1177,7 +1177,7 @@ CVfrVarDataTypeDB::DataTypeAddBitField (
     }\r
   } else {\r
     //\r
-    // Check whether the bit fileds can be contained within one FieldType.\r
+    // Check whether the bit fields can be contained within one FieldType.\r
     //\r
     if (pTmp != NULL && pTmp->mIsBitField && strcmp (pTmp->mFieldType->mTypeName, pNewField->mFieldType->mTypeName) == 0 &&\r
        (pTmp->mBitOffset - pTmp->mOffset * 8) + pTmp->mBitWidth + pNewField->mBitWidth <= pNewField->mFieldType->mTotalSize * 8) {\r
@@ -2058,7 +2058,7 @@ CVfrDataStorage::GetVarStoreId (
   *VarStoreId         = EFI_VARSTORE_ID_INVALID;\r
 \r
   //\r
-  // Assume that Data strucutre name is used as StoreName, and check again.\r
+  // Assume that Data structure name is used as StoreName, and check again.\r
   //\r
   ReturnCode = GetVarStoreByDataType (StoreName, &pNode, StoreGuid);\r
   if (pNode != NULL) {\r
@@ -2843,7 +2843,7 @@ CVfrQuestionDB::PrintAllQuestion (
   SVfrQuestionNode *pNode = NULL;\r
 \r
   for (pNode = mQuestionList; pNode != NULL; pNode = pNode->mNext) {\r
-    printf ("Question VarId is %s and QuesitonId is 0x%x\n", pNode->mVarIdStr, pNode->mQuestionId);\r
+    printf ("Question VarId is %s and QuestionId is 0x%x\n", pNode->mVarIdStr, pNode->mQuestionId);\r
   }\r
 }\r
 \r
index 12592a2a460dbc84a66bc81a6e0d9e8b1fb55b44..2452ecbcbaffb8780207aa8baaea66a155c977f9 100644 (file)
@@ -1187,7 +1187,7 @@ class PlatformAutoGen(AutoGen):
     #\r
     @cached_class_function\r
     def CreateCodeFile(self, CreateModuleCodeFile=False):\r
-        # only module has code to be greated, so do nothing if CreateModuleCodeFile is False\r
+        # only module has code to be created, so do nothing if CreateModuleCodeFile is False\r
         if not CreateModuleCodeFile:\r
             return\r
 \r
@@ -1849,7 +1849,7 @@ class PlatformAutoGen(AutoGen):
 \r
     ## Get tool chain definition\r
     #\r
-    #  Get each tool defition for given tool chain from tools_def.txt and platform\r
+    #  Get each tool definition for given tool chain from tools_def.txt and platform\r
     #\r
     @cached_property\r
     def ToolDefinition(self):\r
@@ -2130,8 +2130,8 @@ class PlatformAutoGen(AutoGen):
 \r
     ## Override PCD setting (type, value, ...)\r
     #\r
-    #   @param  ToPcd       The PCD to be overrided\r
-    #   @param  FromPcd     The PCD overrideing from\r
+    #   @param  ToPcd       The PCD to be overridden\r
+    #   @param  FromPcd     The PCD overriding from\r
     #\r
     def _OverridePcd(self, ToPcd, FromPcd, Module="", Msg="", Library=""):\r
         #\r
@@ -2218,7 +2218,7 @@ class PlatformAutoGen(AutoGen):
 \r
     ## Apply PCD setting defined platform to a module\r
     #\r
-    #   @param  Module  The module from which the PCD setting will be overrided\r
+    #   @param  Module  The module from which the PCD setting will be overridden\r
     #\r
     #   @retval PCD_list    The list PCDs with settings from platform\r
     #\r
@@ -2450,7 +2450,7 @@ class PlatformAutoGen(AutoGen):
 \r
     ## Append build options in platform to a module\r
     #\r
-    #   @param  Module  The module to which the build options will be appened\r
+    #   @param  Module  The module to which the build options will be appended\r
     #\r
     #   @retval options     The options appended with build options in platform\r
     #\r
@@ -2560,7 +2560,7 @@ class ModuleAutoGen(AutoGen):
         self.SourceDir = mws.relpath(self.SourceDir, self.WorkspaceDir)\r
 \r
         self.SourceOverrideDir = None\r
-        # use overrided path defined in DSC file\r
+        # use overridden path defined in DSC file\r
         if self.MetaFile.Key in GlobalData.gOverrideDir:\r
             self.SourceOverrideDir = GlobalData.gOverrideDir[self.MetaFile.Key]\r
 \r
@@ -2685,7 +2685,7 @@ class ModuleAutoGen(AutoGen):
     def Guid(self):\r
         #\r
         # To build same module more than once, the module path with FILE_GUID overridden has\r
-        # the file name FILE_GUIDmodule.inf, but the relative path (self.MetaFile.File) is the realy path\r
+        # the file name FILE_GUIDmodule.inf, but the relative path (self.MetaFile.File) is the real path\r
         # in DSC. The overridden GUID can be retrieved from file name\r
         #\r
         if os.path.basename(self.MetaFile.File) != os.path.basename(self.MetaFile.Path):\r
@@ -2745,7 +2745,7 @@ class ModuleAutoGen(AutoGen):
                                     self.MetaFile.BaseName\r
             ))\r
 \r
-    ## Return the directory to store the intermediate object files of the mdoule\r
+    ## Return the directory to store the intermediate object files of the module\r
     @cached_property\r
     def OutputDir(self):\r
         return _MakeDir((self.BuildDir, "OUTPUT"))\r
@@ -2757,7 +2757,7 @@ class ModuleAutoGen(AutoGen):
             return path.join(self.PlatformInfo.BuildDir, TAB_FV_DIRECTORY, "Ffs", self.Guid + self.Name)\r
         return ''\r
 \r
-    ## Return the directory to store auto-gened source files of the mdoule\r
+    ## Return the directory to store auto-gened source files of the module\r
     @cached_property\r
     def DebugDir(self):\r
         return _MakeDir((self.BuildDir, "DEBUG"))\r
@@ -2809,7 +2809,7 @@ class ModuleAutoGen(AutoGen):
 \r
     ## Get the depex string\r
     #\r
-    # @return : a string contain all depex expresion.\r
+    # @return : a string contain all depex expression.\r
     def _GetDepexExpresionString(self):\r
         DepexStr = ''\r
         DepexList = []\r
@@ -2819,11 +2819,11 @@ class ModuleAutoGen(AutoGen):
         for M in [self.Module] + self.DependentLibraryList:\r
             Filename = M.MetaFile.Path\r
             InfObj = InfSectionParser.InfSectionParser(Filename)\r
-            DepexExpresionList = InfObj.GetDepexExpresionList()\r
-            for DepexExpresion in DepexExpresionList:\r
-                for key in DepexExpresion:\r
+            DepexExpressionList = InfObj.GetDepexExpresionList()\r
+            for DepexExpression in DepexExpressionList:\r
+                for key in DepexExpression:\r
                     Arch, ModuleType = key\r
-                    DepexExpr = [x for x in DepexExpresion[key] if not str(x).startswith('#')]\r
+                    DepexExpr = [x for x in DepexExpression[key] if not str(x).startswith('#')]\r
                     # the type of build module is USER_DEFINED.\r
                     # All different DEPEX section tags would be copied into the As Built INF file\r
                     # and there would be separate DEPEX section tags\r
@@ -2878,7 +2878,7 @@ class ModuleAutoGen(AutoGen):
 \r
         DepexList = []\r
         #\r
-        # Append depex from dependent libraries, if not "BEFORE", "AFTER" expresion\r
+        # Append depex from dependent libraries, if not "BEFORE", "AFTER" expression\r
         #\r
         for M in [self.Module] + self.DependentLibraryList:\r
             Inherited = False\r
@@ -3323,7 +3323,7 @@ class ModuleAutoGen(AutoGen):
             IdfGenBinBuffer.close()\r
         return RetVal\r
 \r
-    ## Return the list of library modules explicitly or implicityly used by this module\r
+    ## Return the list of library modules explicitly or implicitly used by this module\r
     @cached_property\r
     def DependentLibraryList(self):\r
         # only merge library classes and PCD for non-library module\r
@@ -3894,8 +3894,8 @@ class ModuleAutoGen(AutoGen):
         AsBuiltInfDict['userextension_tianocore_item'] = UserExtStr\r
 \r
         # Generated depex expression section in comments.\r
-        DepexExpresion = self._GetDepexExpresionString()\r
-        AsBuiltInfDict['depexsection_item'] = DepexExpresion if DepexExpresion else ''\r
+        DepexExpression = self._GetDepexExpresionString()\r
+        AsBuiltInfDict['depexsection_item'] = DepexExpression if DepexExpression else ''\r
 \r
         AsBuiltInf = TemplateString()\r
         AsBuiltInf.Append(gAsBuiltInfHeaderString.Replace(AsBuiltInfDict))\r
index f9e3ac3a1daf69208e4b422253c2223f6f3ef91a..2cea97ae10ee0f9a9ab484dddaf3812f59c730e8 100644 (file)
@@ -92,8 +92,8 @@ class FileBuildRule:
 \r
     ## constructor\r
     #\r
-    #   @param  Input       The dictionary represeting input file(s) for a rule\r
-    #   @param  Output      The list represeting output file(s) for a rule\r
+    #   @param  Input       The dictionary representing input file(s) for a rule\r
+    #   @param  Output      The list representing output file(s) for a rule\r
     #   @param  Command     The list containing commands to generate the output from input\r
     #\r
     def __init__(self, Type, Input, Output, Command, ExtraDependency=None):\r
@@ -193,7 +193,7 @@ class FileBuildRule:
     #   @param  RelativeToDir   The relative path of the source file\r
     #   @param  PathSeparator   Path separator\r
     #\r
-    #   @retval     tuple       (Source file in full path, List of individual sourcefiles, Destionation file, List of build commands)\r
+    #   @retval     tuple       (Source file in full path, List of individual sourcefiles, Destination file, List of build commands)\r
     #\r
     def Apply(self, SourceFile, BuildRuleOrder=None):\r
         if not self.CommandList or not self.DestFileList:\r
@@ -396,7 +396,7 @@ class BuildRule:
     #   @param  LineIndex   The line index of build rule text\r
     #\r
     def ParseSubSection(self, LineIndex):\r
-        # currenly nothing here\r
+        # currently nothing here\r
         pass\r
 \r
     ## Placeholder for not supported sections\r
@@ -409,7 +409,7 @@ class BuildRule:
     ## Merge section information just got into rule database\r
     def EndOfSection(self):\r
         Database = self.RuleDatabase\r
-        # if there's specific toochain family, 'COMMON' doesn't make sense any more\r
+        # if there's specific toolchain family, 'COMMON' doesn't make sense any more\r
         if len(self._TotalToolChainFamilySet) > 1 and TAB_COMMON in self._TotalToolChainFamilySet:\r
             self._TotalToolChainFamilySet.remove(TAB_COMMON)\r
         for Family in self._TotalToolChainFamilySet:\r
@@ -554,7 +554,7 @@ class BuildRule:
     #   @param  FileExt             The extension of a file\r
     #   @param  ToolChainFamily     The tool chain family name\r
     #   @param  BuildVersion        The build version number. TAB_STAR means any rule\r
-    #                               is applicalbe.\r
+    #                               is applicable.\r
     #\r
     #   @retval FileType        The file type string\r
     #   @retval FileBuildRule   The object of FileBuildRule\r
index dc4cd688f4fe60e5dc9c4b9b75935f48a3328e80..53c5b8577d0947bd57808e16b2b4e237c02a8f08 100644 (file)
@@ -959,7 +959,7 @@ cleanlib:
                     NewFile = self.PlaceMacro(str(F), self.Macros)\r
                     # In order to use file list macro as dependency\r
                     if T.GenListFile:\r
-                        # gnu tools need forward slash path separater, even on Windows\r
+                        # gnu tools need forward slash path separator, even on Windows\r
                         self.ListFileMacros[T.ListFileMacro].append(str(F).replace ('\\', '/'))\r
                         self.FileListMacros[T.FileListMacro].append(NewFile)\r
                     elif T.GenFileListMacro:\r
@@ -1003,7 +1003,7 @@ cleanlib:
     ## Find dependencies for one source file\r
     #\r
     #  By searching recursively "#include" directive in file, find out all the\r
-    #  files needed by given source file. The dependecies will be only searched\r
+    #  files needed by given source file. The dependencies will be only searched\r
     #  in given search path list.\r
     #\r
     #   @param      File            The source file\r
index cbf7a39dd53470b58e738a503ce54960ddd677b6..b3f4ccf4f4c2e43f54877ea84a936f860f3dcf8f 100644 (file)
@@ -342,7 +342,7 @@ class DbComItemList (DbItemList):
         Offset = 0\r
         if self.ItemSize == 0:\r
             #\r
-            # Variable length, need to calculte one by one\r
+            # Variable length, need to calculate one by one\r
             # The only variable table is stringtable, it is not Composite item, should not reach here\r
             #\r
             assert(False)\r
@@ -631,7 +631,7 @@ def BuildExDataBase(Dict):
     Dict['STRING_TABLE_DB_VALUE'] = [StringArrayToList(x) for x in Dict['STRING_TABLE_VALUE']]\r
 \r
     StringTableValue = Dict['STRING_TABLE_DB_VALUE']\r
-    # when calcute the offset, should use StringTableLen instead of StringTableValue, as string maxium len may be different with actual len\r
+    # when calcute the offset, should use StringTableLen instead of StringTableValue, as string maximum len may be different with actual len\r
     StringTableLen = Dict['STRING_TABLE_LENGTH']\r
     DbStringTableLen = DbStringItemList(0, RawDataList = StringTableValue, LenList = StringTableLen)\r
 \r
@@ -1011,7 +1011,7 @@ def CreatePcdDatabasePhaseSpecificAutoGen (Platform, DynamicPcdList, Phase):
         'SKUID_TABLE_EMPTY'             : 'TRUE',\r
         'DATABASE_EMPTY'                : 'TRUE',\r
         'EXMAP_TABLE_EMPTY'             : 'TRUE',\r
-        'PCD_DATABASE_UNINIT_EMPTY'     : '  UINT8  dummy; /* PCD_DATABASE_UNINIT is emptry */',\r
+        'PCD_DATABASE_UNINIT_EMPTY'     : '  UINT8  dummy; /* PCD_DATABASE_UNINIT is empty */',\r
         'SYSTEM_SKU_ID'                 : '  SKU_ID             SystemSkuId;',\r
         'SYSTEM_SKU_ID_VALUE'           : '0U'\r
     }\r
index 09e9af3fb49e97e365c2c6ef30cdfee6f193b29a..388b6780dfc02318eaa3e6338cacc0dabe3c4ec4 100644 (file)
@@ -80,13 +80,13 @@ class InfSectionParser():
                             UserExtensionTianoCore.append({SubSection: SectionDataDict[key]})\r
         return UserExtensionTianoCore\r
 \r
-    # Get depex expresion\r
+    # Get depex expression\r
     #\r
     # @return: a list include some dictionary that key is section and value is a list contain all data.\r
     def GetDepexExpresionList(self):\r
-        DepexExpresionList = []\r
+        DepexExpressionList = []\r
         if not self._FileSectionDataList:\r
-            return DepexExpresionList\r
+            return DepexExpressionList\r
         for SectionDataDict in self._FileSectionDataList:\r
             for key in SectionDataDict:\r
                 if key.lower() == "[depex]" or key.lower().startswith("[depex."):\r
@@ -105,8 +105,8 @@ class InfSectionParser():
                             SubKey = (SectionList[1], SectionList[2])\r
                         else:\r
                             EdkLogger.error("build", AUTOGEN_ERROR, 'Section %s is invalid.' % key)\r
-                        DepexExpresionList.append({SubKey: SectionDataDict[key]})\r
-        return DepexExpresionList\r
+                        DepexExpressionList.append({SubKey: SectionDataDict[key]})\r
+        return DepexExpressionList\r
 \r
 \r
 \r
index d162387cc5c0c83ea43cac1350699f06da388bde..5674adf3b87d7d7e5092daf97e88e5c7025af754 100644 (file)
@@ -99,12 +99,12 @@ LangConvTable = {'eng':'en', 'fra':'fr', \
 ## GetLanguageCode\r
 #\r
 # Check the language code read from .UNI file and convert ISO 639-2 codes to RFC 4646 codes if appropriate\r
-# ISO 639-2 language codes supported in compatiblity mode\r
+# ISO 639-2 language codes supported in compatibility mode\r
 # RFC 4646 language codes supported in native mode\r
 #\r
 # @param LangName:   Language codes read from .UNI file\r
 #\r
-# @retval LangName:  Valid lanugage code in RFC 4646 format or None\r
+# @retval LangName:  Valid language code in RFC 4646 format or None\r
 #\r
 def GetLanguageCode(LangName, IsCompatibleMode, File):\r
     length = len(LangName)\r
index fc2503ea80242675db00b23bdd8b0e3b040e53fb..09582b932a38168cb82688c0bd94b52e6650f64f 100644 (file)
@@ -1,5 +1,5 @@
 ## @file\r
-# Standardized Error Hanlding infrastructures.\r
+# Standardized Error Handling infrastructures.\r
 #\r
 # Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
index af7707482ccb7d897bb8a7d3b18094196fb45aa3..77c0d2a28e4c7f3d489280678a4fad6ff0fb179f 100644 (file)
@@ -145,7 +145,7 @@ def warn(ToolName, Message, File=None, Line=None, ExtraData=None):
 \r
     _InfoLogger.log(WARN, LogText)\r
 \r
-    # Raise an execption if indicated\r
+    # Raise an exception if indicated\r
     if _WarningAsError == True:\r
         raise FatalError(WARNING_AS_ERROR)\r
 \r
@@ -155,7 +155,7 @@ info    = _InfoLogger.info
 ## Log ERROR message\r
 #\r
 #   Once an error messages is logged, the tool's execution will be broken by raising\r
-# an execption. If you don't want to break the execution later, you can give\r
+# an exception. If you don't want to break the execution later, you can give\r
 # "RaiseError" with "False" value.\r
 #\r
 #   @param  ToolName    The name of the tool. If not given, the name of caller\r
@@ -165,7 +165,7 @@ info    = _InfoLogger.info
 #   @param  File        The name of file which caused the error.\r
 #   @param  Line        The line number in the "File" which caused the warning.\r
 #   @param  ExtraData   More information associated with "Message"\r
-#   @param  RaiseError  Raise an exception to break the tool's executuion if\r
+#   @param  RaiseError  Raise an exception to break the tool's execution if\r
 #                       it's True. This is the default behavior.\r
 #\r
 def error(ToolName, ErrorCode, Message=None, File=None, Line=None, ExtraData=None, RaiseError=IsRaiseError):\r
index 6b3c4f793723db68ed56618d1c2c44fa1e2cba90..565a5ad40b8c8b7586ba2f6c7a8afcfe6c5831e1 100644 (file)
@@ -775,10 +775,10 @@ class Progressor:
 \r
     ## Constructor\r
     #\r
-    #   @param      OpenMessage     The string printed before progress charaters\r
-    #   @param      CloseMessage    The string printed after progress charaters\r
-    #   @param      ProgressChar    The charater used to indicate the progress\r
-    #   @param      Interval        The interval in seconds between two progress charaters\r
+    #   @param      OpenMessage     The string printed before progress characters\r
+    #   @param      CloseMessage    The string printed after progress characters\r
+    #   @param      ProgressChar    The character used to indicate the progress\r
+    #   @param      Interval        The interval in seconds between two progress characters\r
     #\r
     def __init__(self, OpenMessage="", CloseMessage="", ProgressChar='.', Interval=1.0):\r
         self.PromptMessage = OpenMessage\r
@@ -788,9 +788,9 @@ class Progressor:
         if Progressor._StopFlag is None:\r
             Progressor._StopFlag = threading.Event()\r
 \r
-    ## Start to print progress charater\r
+    ## Start to print progress character\r
     #\r
-    #   @param      OpenMessage     The string printed before progress charaters\r
+    #   @param      OpenMessage     The string printed before progress characters\r
     #\r
     def Start(self, OpenMessage=None):\r
         if OpenMessage is not None:\r
@@ -801,9 +801,9 @@ class Progressor:
             Progressor._ProgressThread.setDaemon(False)\r
             Progressor._ProgressThread.start()\r
 \r
-    ## Stop printing progress charater\r
+    ## Stop printing progress character\r
     #\r
-    #   @param      CloseMessage    The string printed after progress charaters\r
+    #   @param      CloseMessage    The string printed after progress characters\r
     #\r
     def Stop(self, CloseMessage=None):\r
         OriginalCodaMessage = self.CodaMessage\r
@@ -1422,7 +1422,7 @@ class PathClass(object):
 \r
     ## Override __cmp__ function\r
     #\r
-    # Customize the comparsion operation of two PathClass\r
+    # Customize the comparison operation of two PathClass\r
     #\r
     # @retval 0     The two PathClass are different\r
     # @retval -1    The first PathClass is less than the second PathClass\r
@@ -1517,7 +1517,7 @@ class PathClass(object):
             self.Path = os.path.join(RealRoot, RealFile)\r
         return ErrorCode, ErrorInfo\r
 \r
-## Parse PE image to get the required PE informaion.\r
+## Parse PE image to get the required PE information.\r
 #\r
 class PeImageClass():\r
     ## Constructor\r
index 81594e22cd9feaf746950101148446aec43bd816..8ad90aefafec6ae262dd2268c86af8753d655096 100644 (file)
@@ -24,7 +24,7 @@ from Common.DataType import TAB_WORKSPACE
 # @param class:\r
 #\r
 # @var WORKSPACE:      defined the current WORKSPACE\r
-# @var PACKAGES_PATH:  defined the other WORKSAPCE, if current WORKSPACE is invalid, search valid WORKSPACE from PACKAGES_PATH\r
+# @var PACKAGES_PATH:  defined the other WORKSPACE, if current WORKSPACE is invalid, search valid WORKSPACE from PACKAGES_PATH\r
 #\r
 class MultipleWorkspace(object):\r
     WORKSPACE = ''\r
@@ -146,7 +146,7 @@ class MultipleWorkspace(object):
 \r
     ## getPkgPath()\r
     #\r
-    #   get all package pathes.\r
+    #   get all package paths.\r
     #\r
     #   @param  cls       The class pointer\r
     #\r
index 889251b69935dd779ef5daf73cf64659b9752a22..d858501af6c10aa432d99f789963b271287d893a 100644 (file)
@@ -36,7 +36,7 @@ def ParseDefineMacro2(Table, RecordSets, GlobalMacro):
         Macros[Record[0]] = Record[1]\r
 \r
     #\r
-    # Overrided by Global Macros\r
+    # Overridden by Global Macros\r
     #\r
     Macros.update(GlobalMacro)\r
 \r
@@ -76,7 +76,7 @@ def ParseDefineMacro(Table, GlobalMacro):
         Macros[Record[0]] = Record[1]\r
 \r
     #\r
-    # Overrided by Global Macros\r
+    # Overridden by Global Macros\r
     #\r
     Macros.update(GlobalMacro)\r
 \r
@@ -830,7 +830,7 @@ def InsertSectionItems(Model, CurrentSection, SectionItemList, ArchList, ThirdLi
 # @param Table:            The Table to be inserted\r
 # @param FileID:           The ID of belonging file\r
 # @param Filename:         The name of belonging file\r
-# @param CurrentSection:   The name of currect section\r
+# @param CurrentSection:   The name of current section\r
 # @param SectionItemList:  A list of items of the section\r
 # @param ArchList:         A list of arches\r
 # @param ThirdList:        A list of third parameters, ModuleType for LibraryClass and SkuId for Dynamic Pcds\r
index 40958451d286907422edc7a1027fa769a9506837..1c52e83792ebbfedc3f3a760335709090b627f2e 100644 (file)
@@ -290,7 +290,7 @@ class RangeExpression(BaseExpression):
         return rangeid\r
 \r
 \r
-    def NegtiveRange(self, Oprand1):\r
+    def NegativeRange(self, Oprand1):\r
         rangeContainer1 = self.operanddict[Oprand1]\r
 \r
 \r
@@ -332,7 +332,7 @@ class RangeExpression(BaseExpression):
         if Operator in ["!", "NOT", "not"]:\r
             if not gGuidPattern.match(Oprand1.strip()):\r
                 raise BadExpression(ERR_STRING_EXPR % Operator)\r
-            return self.NegtiveRange(Oprand1)\r
+            return self.NegativeRange(Oprand1)\r
         else:\r
             if Operator in ["==", ">=", "<=", ">", "<", '^']:\r
                 return self.EvalRange(Operator, Oprand1)\r
index c6227271a4020a6167a5517219632870be97cf74..a2e8f0f9e7b3afd11e184b370bee0a3cf171dd85 100644 (file)
@@ -32,7 +32,7 @@ gHumanReadableVerPatt = re.compile(r'([1-9][0-9]*|0)\.[0-9]{1,2}$')
 \r
 ## GetSplitValueList\r
 #\r
-# Get a value list from a string with multiple values splited with SplitTag\r
+# Get a value list from a string with multiple values split with SplitTag\r
 # The default SplitTag is DataType.TAB_VALUE_SPLIT\r
 # 'AAA|BBB|CCC' -> ['AAA', 'BBB', 'CCC']\r
 #\r
@@ -88,7 +88,7 @@ def GetSplitValueList(String, SplitTag=DataType.TAB_VALUE_SPLIT, MaxSplit= -1):
 \r
 ## GetSplitList\r
 #\r
-# Get a value list from a string with multiple values splited with SplitString\r
+# Get a value list from a string with multiple values split with SplitString\r
 # The default SplitTag is DataType.TAB_VALUE_SPLIT\r
 # 'AAA|BBB|CCC' -> ['AAA', 'BBB', 'CCC']\r
 #\r
@@ -123,7 +123,7 @@ def MergeArches(Dict, Key, Arch):
 # Return False if invalid format\r
 #\r
 # @param String:   String with DEFINE statement\r
-# @param Arch:     Supportted Arch\r
+# @param Arch:     Supported Arch\r
 # @param Defines:  DEFINE statement to be parsed\r
 #\r
 # @retval 0   DEFINE statement found, and valid\r
@@ -149,7 +149,7 @@ def GenDefines(String, Arch, Defines):
 #\r
 # @param String:        String with INCLUDE statement\r
 # @param IncludeFiles:  INCLUDE statement to be parsed\r
-# @param Arch:          Supportted Arch\r
+# @param Arch:          Supported Arch\r
 #\r
 # @retval True\r
 # @retval False\r
@@ -297,7 +297,7 @@ def ReplaceMacro(String, MacroDefinitions={}, SelfReplacement=False, RaiseError=
 ## NormPath\r
 #\r
 # Create a normal path\r
-# And replace DFEINE in the path\r
+# And replace DEFINE in the path\r
 #\r
 # @param Path:     The input value for Path to be converted\r
 # @param Defines:  A set for DEFINE statement\r
@@ -730,9 +730,9 @@ def WorkspaceFile(WorkspaceDir, Filename):
 \r
 ## Split string\r
 #\r
-# Revmove '"' which startswith and endswith string\r
+# Remove '"' which startswith and endswith string\r
 #\r
-# @param String:  The string need to be splited\r
+# @param String:  The string need to be split\r
 #\r
 # @retval String: The string after removed '""'\r
 #\r
index 336bb1167143c95eaebc362c1cec8971f8c306da..33f306c8426b88ffdda157d33e94893e460d082a 100644 (file)
@@ -66,7 +66,7 @@ class SkuInfoClass(object):
     ## Convert the class to a string\r
     #\r
     #  Convert each member of the class to string\r
-    #  Organize to a signle line format string\r
+    #  Organize to a single line format string\r
     #\r
     #  @retval Rtn Formatted String\r
     #\r
index 31ed46c7ec567c7a8147ed6dddc4f110c591f81a..2d93f79b09ec58c6c8f8600344bc54c982b895f1 100644 (file)
@@ -194,7 +194,7 @@ MODEL_LIST = [('MODEL_UNKNOWN', MODEL_UNKNOWN),
 # @param Header:           Header of a Function\r
 # @param Modifier:         Modifier of a Function\r
 # @param Name:             Name of a Function\r
-# @param ReturnStatement:  ReturnStatement of a Funciont\r
+# @param ReturnStatement:  ReturnStatement of a Function\r
 # @param StartLine:        StartLine of a Function\r
 # @param StartColumn:      StartColumn of a Function\r
 # @param EndLine:          EndLine of a Function\r
@@ -209,7 +209,7 @@ MODEL_LIST = [('MODEL_UNKNOWN', MODEL_UNKNOWN),
 # @var Header:             Header of a Function\r
 # @var Modifier:           Modifier of a Function\r
 # @var Name:               Name of a Function\r
-# @var ReturnStatement:    ReturnStatement of a Funciont\r
+# @var ReturnStatement:    ReturnStatement of a Function\r
 # @var StartLine:          StartLine of a Function\r
 # @var StartColumn:        StartColumn of a Function\r
 # @var EndLine:            EndLine of a Function\r
index e344088f36326647e838e4b3b12960c4862c006f..4affd61eccdecdd971f136c23d002f6fdf0e9e7e 100644 (file)
@@ -23,7 +23,7 @@ options {
 ## @file\r
 # The file defines the Lexer for C source files.\r
 #\r
-# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.\r
+# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE.\r
 # This file is generated by running:\r
 # java org.antlr.Tool C.g\r
 #\r
@@ -44,7 +44,7 @@ options {
 ## @file\r
 # The file defines the parser for C source files.\r
 #\r
-# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.\r
+# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE.\r
 # This file is generated by running:\r
 # java org.antlr.Tool C.g\r
 #\r
@@ -653,11 +653,11 @@ UnicodeEscape
 WS  :  (' '|'\r'|'\t'|'\u000C'|'\n') {$channel=HIDDEN;}\r
     ;\r
 \r
-// ingore '\' of line concatenation\r
+// ignore '\' of line concatenation\r
 BS  : ('\\') {$channel=HIDDEN;}\r
     ;\r
     \r
-// ingore function modifiers\r
+// ignore function modifiers\r
 //FUNC_MODIFIERS  : 'EFIAPI' {$channel=HIDDEN;}\r
 //    ;\r
        \r
index b9e57c1b5554949b2a430c365e9cdd3890050f0e..17c1af6113279591d749898b68be864e081e4b81 100644 (file)
@@ -6,7 +6,7 @@ from antlr3.compat import set, frozenset
 ## @file\r
 # The file defines the Lexer for C source files.\r
 #\r
-# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.\r
+# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE.\r
 # This file is generated by running:\r
 # java org.antlr.Tool C.g\r
 #\r
index a3ab8e7bf48ca27cf4c1c05c6245f11871260804..c63b0a556fdd06ee81deabb443776ea95a325a8a 100644 (file)
@@ -8,7 +8,7 @@ from antlr3.compat import set, frozenset
 ## @file\r
 # The file defines the parser for C source files.\r
 #\r
-# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.\r
+# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE.\r
 # This file is generated by running:\r
 # java org.antlr.Tool C.g\r
 #\r
index a6c62359d0b5ae4c93f39e2c367d27797bf2b1c0..6e5bcee8461040b4469cdbf9729f633b8a8be00c 100644 (file)
@@ -1403,7 +1403,7 @@ class Check(object):
     # Check whether only capital letters are used for #define declarations\r
     def NamingConventionCheckDefineStatement(self, FileTable):\r
         if EccGlobalData.gConfig.NamingConventionCheckDefineStatement == '1' or EccGlobalData.gConfig.NamingConventionCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':\r
-            EdkLogger.quiet("Checking naming covention of #define statement ...")\r
+            EdkLogger.quiet("Checking naming convention of #define statement ...")\r
 \r
             SqlCommand = """select ID, Value from %s where Model = %s""" % (FileTable, MODEL_IDENTIFIER_MACRO_DEFINE)\r
             RecordSet = EccGlobalData.gDb.TblFile.Exec(SqlCommand)\r
@@ -1418,7 +1418,7 @@ class Check(object):
     # Check whether only capital letters are used for typedef declarations\r
     def NamingConventionCheckTypedefStatement(self, FileTable):\r
         if EccGlobalData.gConfig.NamingConventionCheckTypedefStatement == '1' or EccGlobalData.gConfig.NamingConventionCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':\r
-            EdkLogger.quiet("Checking naming covention of #typedef statement ...")\r
+            EdkLogger.quiet("Checking naming convention of #typedef statement ...")\r
 \r
             SqlCommand = """select ID, Name from %s where Model = %s""" % (FileTable, MODEL_IDENTIFIER_TYPEDEF)\r
             RecordSet = EccGlobalData.gDb.TblFile.Exec(SqlCommand)\r
@@ -1438,7 +1438,7 @@ class Check(object):
     # Check whether the #ifndef at the start of an include file uses both prefix and postfix underscore characters, '_'.\r
     def NamingConventionCheckIfndefStatement(self, FileTable):\r
         if EccGlobalData.gConfig.NamingConventionCheckIfndefStatement == '1' or EccGlobalData.gConfig.NamingConventionCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':\r
-            EdkLogger.quiet("Checking naming covention of #ifndef statement ...")\r
+            EdkLogger.quiet("Checking naming convention of #ifndef statement ...")\r
 \r
             SqlCommand = """select ID, Value from %s where Model = %s""" % (FileTable, MODEL_IDENTIFIER_MACRO_IFNDEF)\r
             RecordSet = EccGlobalData.gDb.TblFile.Exec(SqlCommand)\r
@@ -1455,7 +1455,7 @@ class Check(object):
     # Check whether the path name followed the rule\r
     def NamingConventionCheckPathName(self):\r
         if EccGlobalData.gConfig.NamingConventionCheckPathName == '1' or EccGlobalData.gConfig.NamingConventionCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':\r
-            EdkLogger.quiet("Checking naming covention of file path name ...")\r
+            EdkLogger.quiet("Checking naming convention of file path name ...")\r
             Pattern = re.compile(r'^[A-Z]+\S*[a-z]\S*$')\r
             SqlCommand = """select ID, Name from File"""\r
             RecordSet = EccGlobalData.gDb.TblFile.Exec(SqlCommand)\r
@@ -1472,7 +1472,7 @@ class Check(object):
     # Check whether the variable name followed the rule\r
     def NamingConventionCheckVariableName(self, FileTable):\r
         if EccGlobalData.gConfig.NamingConventionCheckVariableName == '1' or EccGlobalData.gConfig.NamingConventionCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':\r
-            EdkLogger.quiet("Checking naming covention of variable name ...")\r
+            EdkLogger.quiet("Checking naming convention of variable name ...")\r
             Pattern = re.compile(r'^[A-Zgm]+\S*[a-z]\S*$')\r
 \r
             SqlCommand = """select ID, Name from %s where Model = %s""" % (FileTable, MODEL_IDENTIFIER_VARIABLE)\r
@@ -1492,7 +1492,7 @@ class Check(object):
     # Check whether the function name followed the rule\r
     def NamingConventionCheckFunctionName(self):\r
         if EccGlobalData.gConfig.NamingConventionCheckFunctionName == '1' or EccGlobalData.gConfig.NamingConventionCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':\r
-            EdkLogger.quiet("Checking naming covention of function name ...")\r
+            EdkLogger.quiet("Checking naming convention of function name ...")\r
             Pattern = re.compile(r'^[A-Z]+\S*[a-z]\S*$')\r
             SqlCommand = """select ID, Name from Function"""\r
             RecordSet = EccGlobalData.gDb.TblFile.Exec(SqlCommand)\r
@@ -1504,7 +1504,7 @@ class Check(object):
     # Check whether NO use short variable name with single character\r
     def NamingConventionCheckSingleCharacterVariable(self, FileTable):\r
         if EccGlobalData.gConfig.NamingConventionCheckSingleCharacterVariable == '1' or EccGlobalData.gConfig.NamingConventionCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':\r
-            EdkLogger.quiet("Checking naming covention of single character variable name ...")\r
+            EdkLogger.quiet("Checking naming convention of single character variable name ...")\r
 \r
             SqlCommand = """select ID, Name from %s where Model = %s""" % (FileTable, MODEL_IDENTIFIER_VARIABLE)\r
             RecordSet = EccGlobalData.gDb.TblFile.Exec(SqlCommand)\r
index 9d4acac7b775b043de81291789877ea5f1491b8d..2a6b1198d84e1f1691768360862013e728230c26 100644 (file)
@@ -39,7 +39,7 @@ DATABASE_PATH = "Ecc.db"
 \r
 ## Database\r
 #\r
-# This class defined the ECC databse\r
+# This class defined the ECC database\r
 # During the phase of initialization, the database will create all tables and\r
 # insert all records of table DataModel\r
 #\r
@@ -83,7 +83,7 @@ class Database(object):
         self.Conn = sqlite3.connect(self.DbPath, isolation_level = 'DEFERRED')\r
         self.Conn.execute("PRAGMA page_size=4096")\r
         self.Conn.execute("PRAGMA synchronous=OFF")\r
-        # to avoid non-ascii charater conversion error\r
+        # to avoid non-ascii character conversion error\r
         self.Conn.text_factory = str\r
         self.Cur = self.Conn.cursor()\r
 \r
@@ -214,7 +214,7 @@ class Database(object):
 \r
     ## UpdateIdentifierBelongsToFunction\r
     #\r
-    # Update the field "BelongsToFunction" for each Indentifier\r
+    # Update the field "BelongsToFunction" for each Identifier\r
     #\r
     #\r
     def UpdateIdentifierBelongsToFunction_disabled(self):\r
@@ -267,7 +267,7 @@ class Database(object):
 \r
     ## UpdateIdentifierBelongsToFunction\r
     #\r
-    # Update the field "BelongsToFunction" for each Indentifier\r
+    # Update the field "BelongsToFunction" for each Identifier\r
     #\r
     #\r
     def UpdateIdentifierBelongsToFunction(self):\r
index edb6c6d7d46d4292e4d2b6d1382f5c2ea298d8ac..f06183d646c1bf6e647fe214cb5505ff276ea1c7 100644 (file)
@@ -209,7 +209,7 @@ class Ecc(object):
                         Op.write("%s\r" % Filename)\r
                         #Dsc(Filename, True, True, EccGlobalData.gWorkspace, EccGlobalData.gDb)\r
                         self.MetaFile = DscParser(PathClass(Filename, Root), MODEL_FILE_DSC, MetaFileStorage(EccGlobalData.gDb.TblDsc.Cur, Filename, MODEL_FILE_DSC, True))\r
-                        # alwasy do post-process, in case of macros change\r
+                        # always do post-process, in case of macros change\r
                         self.MetaFile.DoPostProcess()\r
                         self.MetaFile.Start()\r
                         self.MetaFile._PostProcess()\r
@@ -307,7 +307,7 @@ class Ecc(object):
         if Options.Workspace:\r
             os.environ["WORKSPACE"] = Options.Workspace\r
 \r
-        # Check workspace envirnoment\r
+        # Check workspace environment\r
         if "WORKSPACE" not in os.environ:\r
             EdkLogger.error("ECC", BuildToolError.ATTRIBUTE_NOT_AVAILABLE, "Environment variable not found",\r
                             ExtraData="WORKSPACE")\r
index ae0a31af8a8c1c10173a6ec9c8ecf7a55df3a95d..3f1a44c1f75cc69169810d073f563740eaabdbdd 100644 (file)
@@ -1,5 +1,5 @@
 ## @file\r
-# Standardized Error Hanlding infrastructures.\r
+# Standardized Error Handling infrastructures.\r
 #\r
 # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
@@ -152,7 +152,7 @@ gEccErrorMessage = {
     ERROR_INCLUDE_FILE_CHECK_IFNDEF_STATEMENT_2 : "The #ifndef must be the first line of code following the file header comment",\r
     ERROR_INCLUDE_FILE_CHECK_IFNDEF_STATEMENT_3 : "The #endif must appear on the last line in the file",\r
     ERROR_INCLUDE_FILE_CHECK_DATA : "Include files should contain only public or only private data and cannot contain code or define data variables",\r
-    ERROR_INCLUDE_FILE_CHECK_NAME : "No permission for the inlcude file with same names",\r
+    ERROR_INCLUDE_FILE_CHECK_NAME : "No permission for the include file with same names",\r
 \r
     ERROR_DECLARATION_DATA_TYPE_CHECK_ALL : "",\r
     ERROR_DECLARATION_DATA_TYPE_CHECK_NO_USE_C_TYPE : "There should be no use of int, unsigned, char, void, static, long in any .c, .h or .asl files",\r
index 4594716886326fc56671031cf6bc48dfdfe581d2..aab2e92ea7f570768cb4cd1a02413d2850194e33 100644 (file)
@@ -18,7 +18,7 @@ from Ecc.EccToolError import *
 from Common.MultipleWorkspace import MultipleWorkspace as mws\r
 from Ecc import EccGlobalData\r
 import re\r
-## Get the inlcude path list for a source file\r
+## Get the include path list for a source file\r
 #\r
 # 1. Find the source file belongs to which inf file\r
 # 2. Find the inf's package\r
index 0c377c6c4a9ba221745ee81a74661707ce04acb3..7b645ff053658a8c184a7cf90e41a0998793149f 100644 (file)
@@ -733,7 +733,7 @@ def SplitPredicateByOp(Str, Op, IsFuncCalling=False):
 \r
             while not LBFound and (Str[Index].isalnum() or Str[Index] == '_'):\r
                 Index += 1\r
-            # maybe type-cast at the begining, skip it.\r
+            # maybe type-cast at the beginning, skip it.\r
             RemainingStr = Str[Index:].lstrip()\r
             if RemainingStr.startswith(')') and not LBFound:\r
                 Index += 1\r
@@ -834,7 +834,7 @@ def GetDataTypeFromModifier(ModifierStr):
     for M in MList:\r
         if M in EccGlobalData.gConfig.ModifierSet:\r
             continue\r
-        # remove array sufix\r
+        # remove array suffix\r
         if M.startswith('[') or M.endswith(']'):\r
             continue\r
         ReturnType += M + ' '\r
@@ -1019,7 +1019,7 @@ def GetFinalTypeValue(Type, FieldName, TypedefDict, SUDict):
                 Type = GetDataTypeFromModifier(Field[0:Index])\r
                 return Type.strip()\r
             else:\r
-            # For the condition that the field in struct is an array with [] sufixes...\r
+            # For the condition that the field in struct is an array with [] suffixes...\r
                 if not Field[Index + len(FieldName)].isalnum():\r
                     Type = GetDataTypeFromModifier(Field[0:Index])\r
                     return Type.strip()\r
@@ -1629,7 +1629,7 @@ def CheckMemberVariableFormat(Name, Value, FileTable, TdId, ModelId):
         Field = Field.strip()\r
         if Field == '':\r
             continue\r
-        # For the condition that the field in struct is an array with [] sufixes...\r
+        # For the condition that the field in struct is an array with [] suffixes...\r
         if Field[-1] == ']':\r
             LBPos = Field.find('[')\r
             Field = Field[0:LBPos]\r
index b9e57c1b5554949b2a430c365e9cdd3890050f0e..17c1af6113279591d749898b68be864e081e4b81 100644 (file)
@@ -6,7 +6,7 @@ from antlr3.compat import set, frozenset
 ## @file\r
 # The file defines the Lexer for C source files.\r
 #\r
-# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.\r
+# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE.\r
 # This file is generated by running:\r
 # java org.antlr.Tool C.g\r
 #\r
index 0b74b53ae7a5eafeaee8d78c3a3783f5dfcee703..973e7a82b7825ddb5f8db1f7ad76b58b7675421e 100644 (file)
@@ -8,7 +8,7 @@ from antlr3.compat import set, frozenset
 ## @file\r
 # The file defines the parser for C source files.\r
 #\r
-# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.\r
+# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE.\r
 # This file is generated by running:\r
 # java org.antlr.Tool C.g\r
 #\r
index b1e77a690ab19e71f75a82fbd999a8d618553d56..ec1faa665ea54a5a3b6d4b51be6888811a83b43c 100644 (file)
@@ -390,10 +390,10 @@ class CodeFragmentCollector:
         print('################# ' + self.FileName + '#####################')\r
 \r
         print('/****************************************/')\r
-        print('/*************** ASSIGNMENTS ***************/')\r
+        print('/************** ASSIGNMENTS *************/')\r
         print('/****************************************/')\r
-        for asign in FileProfile.AssignmentExpressionList:\r
-            print(str(asign.StartPos) + asign.Name + asign.Operator + asign.Value)\r
+        for assign in FileProfile.AssignmentExpressionList:\r
+            print(str(assign.StartPos) + assign.Name + assign.Operator + assign.Value)\r
 \r
         print('/****************************************/')\r
         print('/********* PREPROCESS DIRECTIVES ********/')\r
index 65bac9c127cb01d5942d2c24372c10c1532497bc..f6191161f2aba4b1d65e6f53b6c18c7601ca5e1b 100644 (file)
@@ -38,7 +38,7 @@ DATABASE_PATH = "Eot.db"
 \r
 ## Database class\r
 #\r
-# This class defined the EOT databse\r
+# This class defined the EOT database\r
 # During the phase of initialization, the database will create all tables and\r
 # insert all records of table DataModel\r
 #\r
@@ -83,7 +83,7 @@ class Database(object):
         self.Conn = sqlite3.connect(self.DbPath, isolation_level = 'DEFERRED')\r
         self.Conn.execute("PRAGMA page_size=8192")\r
         self.Conn.execute("PRAGMA synchronous=OFF")\r
-        # to avoid non-ascii charater conversion error\r
+        # to avoid non-ascii character conversion error\r
         self.Conn.text_factory = str\r
         self.Cur = self.Conn.cursor()\r
 \r
@@ -198,7 +198,7 @@ class Database(object):
 \r
     ## UpdateIdentifierBelongsToFunction() method\r
     #\r
-    #  Update the field "BelongsToFunction" for each Indentifier\r
+    #  Update the field "BelongsToFunction" for each Identifier\r
     #\r
     #  @param self: The object pointer\r
     #\r
index cb6a940ab8f943d05d6a0c57cb024b7a6a344f25..729b9f7c77c257a11d79da3ebb1075452ec228d9 100644 (file)
@@ -92,7 +92,7 @@ gConsumedProtocolLibrary['EfiLocateProtocolHandleBuffers'] = 0
 gConsumedProtocolLibrary['EfiLocateProtocolInterface'] = 0\r
 gConsumedProtocolLibrary['EfiHandleProtocol'] = 1\r
 \r
-# Dict for callback PROTOCOL function callling\r
+# Dict for callback PROTOCOL function calling\r
 gCallbackProtocolLibrary = OrderedDict()\r
 gCallbackProtocolLibrary['EfiRegisterProtocolCallback'] = 2\r
 \r
index fd4bee6f901e3e30eebe2e0f750ba3b95809688a..e4359c50150cc035a07ceec4765a6448db481a31 100644 (file)
@@ -1514,7 +1514,7 @@ class Eot(object):
                             % (Identifier, '.NotifyPpi', '->NotifyPpi', MODEL_IDENTIFIER_FUNCTION_CALLING)\r
             SearchPpi(SqlCommand, Identifier, SourceFileID, SourceFileFullPath, ItemMode)\r
 \r
-            # Find Procotols\r
+            # Find Protocols\r
             ItemMode = 'Produced'\r
             SqlCommand = """select Value, Name, BelongsToFile, StartLine, EndLine from %s\r
                             where (Name like '%%%s%%' or Name like '%%%s%%' or Name like '%%%s%%' or Name like '%%%s%%') and Model = %s""" \\r
index 0cfe0398f05f00c8c880e377532af63049c5db19..cec083330b18bcd4e8c9a83a60c2678222d2f86e 100644 (file)
@@ -41,8 +41,8 @@ class EdkInfParser(object):
     #  @param  Database: Eot database\r
     #  @param  SourceFileList: A list for all source file belonging this INF file\r
     #  @param  SourceOverridePath: Override path for source file\r
-    #  @param  Edk_Source: Envirnoment variable EDK_SOURCE\r
-    #  @param  Efi_Source: Envirnoment variable EFI_SOURCE\r
+    #  @param  Edk_Source: Environment variable EDK_SOURCE\r
+    #  @param  Efi_Source: Environment variable EFI_SOURCE\r
     #\r
     def __init__(self, Filename = None, Database = None, SourceFileList = None, SourceOverridePath = None, Edk_Source = None, Efi_Source = None):\r
         self.Identification = Identification()\r
index 673088d41dca19139a87415646dcd89d225994dc..6b47409c9d488c4b800d06dbf44f793cef9a61f3 100644 (file)
@@ -62,7 +62,7 @@ def DeCompress(Method, Input):
 #  @param  MergeMultipleLines: Switch for if merge multiple lines\r
 #  @param  LineNo: Default line no\r
 #\r
-#  @return Lines: The file contents after remvoing comments\r
+#  @return Lines: The file contents after removing comments\r
 #\r
 def PreProcess(Filename, MergeMultipleLines = True, LineNo = -1):\r
     Lines = []\r
@@ -770,7 +770,7 @@ def GetParameterName(Parameter):
 #  @param Table: Table to be searched\r
 #  @param Key: The keyword\r
 #\r
-#  @return Value: The value of the the keyword\r
+#  @return Value: The value of the keyword\r
 #\r
 def FindKeyValue(Db, Table, Key):\r
     SqlCommand = """select Value from %s where Name = '%s' and (Model = %s or Model = %s)""" % (Table, Key, MODEL_IDENTIFIER_VARIABLE, MODEL_IDENTIFIER_ASSIGNMENT_EXPRESSION)\r
index 01ad86ad3ee831e5a988c7b00291ba7002dfcb3e..3e71c12393e3aa88fba631a502c421f2c1be8078 100644 (file)
@@ -332,7 +332,7 @@ class Report(object):
                 Content = """            </table></td>\r
           </tr>"""\r
                 self.WriteLn(Content)\r
-            #End of Consumed Ppi/Portocol\r
+            #End of Consumed Ppi/Protocol\r
 \r
             # Find Produced Ppi/Protocol\r
             SqlCommand = """select ModuleName, ItemType, GuidName, GuidValue, GuidMacro from Report\r
index 63edf816ecfc8e48088f762dc1757583ccb1dabd..56294ed0d983c638465e2480b5e109f9b312c5d6 100644 (file)
@@ -716,13 +716,13 @@ class FdfParser:
                     EndPos = CurLine.find(')', StartPos+2)\r
                     while StartPos != -1 and EndPos != -1 and self._Token not in {TAB_IF_DEF, TAB_IF_N_DEF, TAB_IF, TAB_ELSE_IF}:\r
                         MacroName = CurLine[StartPos+2: EndPos]\r
-                        MacorValue = self._GetMacroValue(MacroName)\r
-                        if MacorValue is not None:\r
-                            CurLine = CurLine.replace('$(' + MacroName + ')', MacorValue, 1)\r
-                            if MacorValue.find('$(') != -1:\r
+                        MacroValue = self._GetMacroValue(MacroName)\r
+                        if MacroValue is not None:\r
+                            CurLine = CurLine.replace('$(' + MacroName + ')', MacroValue, 1)\r
+                            if MacroValue.find('$(') != -1:\r
                                 PreIndex = StartPos\r
                             else:\r
-                                PreIndex = StartPos + len(MacorValue)\r
+                                PreIndex = StartPos + len(MacroValue)\r
                         else:\r
                             PreIndex = EndPos + 1\r
                         StartPos = CurLine.find('$(', PreIndex)\r
@@ -1037,7 +1037,7 @@ class FdfParser:
 \r
     ## _GetNextToken() method\r
     #\r
-    #   Get next token unit before a seperator\r
+    #   Get next token unit before a separator\r
     #   If found, the string value is put into self._Token\r
     #\r
     #   @param  self        The object pointer\r
@@ -1054,12 +1054,12 @@ class FdfParser:
         StartLine = self.CurrentLineNumber\r
         while StartLine == self.CurrentLineNumber:\r
             TempChar = self._CurrentChar()\r
-            # Try to find the end char that is not a space and not in seperator tuple.\r
+            # Try to find the end char that is not a space and not in separator tuple.\r
             # That is, when we got a space or any char in the tuple, we got the end of token.\r
             if not str(TempChar).isspace() and TempChar not in SEPARATORS:\r
                 self._GetOneChar()\r
-            # if we happen to meet a seperator as the first char, we must proceed to get it.\r
-            # That is, we get a token that is a seperator char. nomally it is the boundary of other tokens.\r
+            # if we happen to meet a separator as the first char, we must proceed to get it.\r
+            # That is, we get a token that is a separator char. normally it is the boundary of other tokens.\r
             elif StartPos == self.CurrentOffsetWithinLine and TempChar in SEPARATORS:\r
                 self._GetOneChar()\r
                 break\r
@@ -1081,7 +1081,7 @@ class FdfParser:
 \r
     ## _GetNextGuid() method\r
     #\r
-    #   Get next token unit before a seperator\r
+    #   Get next token unit before a separator\r
     #   If found, the GUID string is put into self._Token\r
     #\r
     #   @param  self        The object pointer\r
@@ -1133,13 +1133,13 @@ class FdfParser:
         while CurrentLine == self.CurrentLineNumber:\r
 \r
             TempChar = self._CurrentChar()\r
-            # Try to find the end char that is not a space and not in seperator tuple.\r
+            # Try to find the end char that is not a space and not in separator tuple.\r
             # That is, when we got a space or any char in the tuple, we got the end of token.\r
             if not str(TempChar).isspace() and not TempChar in SEPARATORS:\r
                 if not self._UndoOneChar():\r
                     return\r
-            # if we happen to meet a seperator as the first char, we must proceed to get it.\r
-            # That is, we get a token that is a seperator char. nomally it is the boundary of other tokens.\r
+            # if we happen to meet a separator as the first char, we must proceed to get it.\r
+            # That is, we get a token that is a separator char. normally it is the boundary of other tokens.\r
             elif StartPos == self.CurrentOffsetWithinLine and TempChar in SEPARATORS:\r
                 return\r
             else:\r
@@ -1149,7 +1149,7 @@ class FdfParser:
 \r
     ## _GetNextHexNumber() method\r
     #\r
-    #   Get next HEX data before a seperator\r
+    #   Get next HEX data before a separator\r
     #   If found, the HEX data is put into self._Token\r
     #\r
     #   @param  self        The object pointer\r
@@ -1167,7 +1167,7 @@ class FdfParser:
 \r
     ## _GetNextDecimalNumber() method\r
     #\r
-    #   Get next decimal data before a seperator\r
+    #   Get next decimal data before a separator\r
     #   If found, the decimal data is put into self._Token\r
     #\r
     #   @param  self        The object pointer\r
index 6dcb57deed2e858ec69592a5f0184e3cf800d65b..84506ed70e91b8acafa2a0928a3d513050151dba 100644 (file)
@@ -190,7 +190,7 @@ class FfsInfStatement(FfsInfStatementClassObject):
 \r
             Inf = GenFdsGlobalVariable.WorkSpace.BuildObject[PathClassObj, self.CurrentArch, GenFdsGlobalVariable.TargetName, GenFdsGlobalVariable.ToolChainTag]\r
             #\r
-            # Set Ffs BaseName, MdouleGuid, ModuleType, Version, OutputPath\r
+            # Set Ffs BaseName, ModuleGuid, ModuleType, Version, OutputPath\r
             #\r
             self.BaseName = Inf.BaseName\r
             self.ModuleGuid = Inf.Guid\r
@@ -352,7 +352,7 @@ class FfsInfStatement(FfsInfStatementClassObject):
         GenFdsGlobalVariable.VerboseLogger("InfFileName :%s" % self.InfFileName)\r
 \r
         #\r
-        # Set OutputPath = ${WorkSpace}\Build\Fv\Ffs\${ModuleGuid}+ ${MdouleName}\\r
+        # Set OutputPath = ${WorkSpace}\Build\Fv\Ffs\${ModuleGuid}+ ${ModuleName}\\r
         #\r
 \r
         self.OutputPath = os.path.join(GenFdsGlobalVariable.FfsDir, \\r
index 2ae991128ade5f55d87aadb3c1461fb5ff0fc512..06d853b6070320dc730b9741db810ed8915239c6 100644 (file)
@@ -262,7 +262,7 @@ class FV (object):
 \r
     ## _InitializeInf()\r
     #\r
-    #   Initilize the inf file to create FV\r
+    #   Initialize the inf file to create FV\r
     #\r
     #   @param  self        The object pointer\r
     #   @param  BaseAddress base address of FV\r
index 6cea8858532d2e70f67442f316ed98de4edb3fe1..37c7e91e83f182f4e59e530640b8b75acac88945 100644 (file)
@@ -42,7 +42,7 @@ __usage__     = '%s -e|-d [options] <input_file>' % (__prog__)
 EFI_HASH_ALGORITHM_SHA256_GUID = uuid.UUID('{51aa59de-fdf2-4ea3-bc63-875fb7842ee9}')\r
 \r
 #\r
-# Structure defintion to unpack EFI_CERT_BLOCK_RSA_2048_SHA256 from UEFI 2.4 Specification\r
+# Structure definition to unpack EFI_CERT_BLOCK_RSA_2048_SHA256 from UEFI 2.4 Specification\r
 #\r
 #   typedef struct _EFI_CERT_BLOCK_RSA_2048_SHA256 {\r
 #     EFI_GUID HashType;\r
index e89b99320d1f697ef23d32ce46fb8b7cd5d12fe5..d8ffc72dabf861d5dba5d9cee3ee6c77a1d842af 100644 (file)
@@ -52,7 +52,7 @@ class Table(object):
     # Query all records of the table\r
     #\r
     def Query(self):\r
-        EdkLogger.verbose("\nQuery tabel %s started ..." % self.Table)\r
+        EdkLogger.verbose("\nQuery table %s started ..." % self.Table)\r
         SqlCommand = """select * from %s""" % self.Table\r
         self.Cur.execute(SqlCommand)\r
         for Rs in self.Cur:\r
index ee677cf1079e445b209490b1c40a9ac8e66dd2ef..9d43ff094787bad78fc213d85838b790f733aef0 100644 (file)
@@ -38,7 +38,7 @@ class TableFunction(Table):
     # @param Header:              Header of a Function\r
     # @param Modifier:            Modifier of a Function\r
     # @param Name:                Name of a Function\r
-    # @param ReturnStatement:     ReturnStatement of a Funciont\r
+    # @param ReturnStatement:     ReturnStatement of a Function\r
     # @param StartLine:           StartLine of a Function\r
     # @param StartColumn:         StartColumn of a Function\r
     # @param EndLine:             EndLine of a Function\r
@@ -75,7 +75,7 @@ class TableFunction(Table):
     # @param Header:              Header of a Function\r
     # @param Modifier:            Modifier of a Function\r
     # @param Name:                Name of a Function\r
-    # @param ReturnStatement:     ReturnStatement of a Funciont\r
+    # @param ReturnStatement:     ReturnStatement of a Function\r
     # @param StartLine:           StartLine of a Function\r
     # @param StartColumn:         StartColumn of a Function\r
     # @param EndLine:             EndLine of a Function\r
index 8e7d313c71e2fd0adf7bfe7fb372dcd45266dc5b..b203bf88e84265ddc1b35614ca1501ac17884b67 100644 (file)
@@ -37,7 +37,7 @@ class TableQuery(Table):
     #\r
     # @param ID:                 ID of a Query\r
     # @param Name:               Name of a Query\r
-    # @param Modifer:            Modifier of a Query\r
+    # @param Modifier:           Modifier of a Query\r
     # @param Value:              Type of a Query\r
     # @param Model:              Model of a Query\r
     #\r
index a49a01f9e324d77d3baae2cf4e0f135bbcad6637..5ff54160aaf2351979a21059523d2b93f05fd43f 100644 (file)
@@ -143,14 +143,14 @@ def GetConfigureKeyValue(self, Key):
         if os.path.exists(dscFullPath):\r
             Line = "%-30s = %s\n" % (Key, self.Opt.DSCFILE)\r
         else:\r
-            EdkLogger.error("TagetTool", BuildToolError.FILE_NOT_FOUND,\r
+            EdkLogger.error("TargetTool", BuildToolError.FILE_NOT_FOUND,\r
                             "DSC file %s does not exist!" % self.Opt.DSCFILE, RaiseError=False)\r
     elif Key == TAB_TAT_DEFINES_TOOL_CHAIN_CONF and self.Opt.TOOL_DEFINITION_FILE is not None:\r
         tooldefFullPath = os.path.join(self.WorkSpace, self.Opt.TOOL_DEFINITION_FILE)\r
         if os.path.exists(tooldefFullPath):\r
             Line = "%-30s = %s\n" % (Key, self.Opt.TOOL_DEFINITION_FILE)\r
         else:\r
-            EdkLogger.error("TagetTool", BuildToolError.FILE_NOT_FOUND,\r
+            EdkLogger.error("TargetTool", BuildToolError.FILE_NOT_FOUND,\r
                             "Tooldef file %s does not exist!" % self.Opt.TOOL_DEFINITION_FILE, RaiseError=False)\r
 \r
     elif self.Opt.NUM >= 2:\r
index 428bf0d681bf86ffd32e4cb849c14b135937172f..825ed3e5d507a3ffdc598e0a1aa57a4957f86a4e 100644 (file)
@@ -168,7 +168,7 @@ def TrimPreprocessedFile(Source, Target, ConvertHex, TrimLong):
                 InjectedFile = MatchList[1]\r
                 InjectedFile = os.path.normpath(InjectedFile)\r
                 InjectedFile = os.path.normcase(InjectedFile)\r
-                # The first injetcted file must be the preprocessed file itself\r
+                # The first injected file must be the preprocessed file itself\r
                 if PreprocessedFile == "":\r
                     PreprocessedFile = InjectedFile\r
             LineControlDirectiveFound = True\r
index 9c3baa1b12d8d2f9e9f1322b258a3c5593ecf86f..89b81f8b1f56920088be456dddf0e45f9569bf4b 100644 (file)
@@ -159,7 +159,7 @@ class DependencyRules(object):
     #\r
     # @param PkgObj: A package object\r
     # @param DpObj: A distribution object\r
-    # @return: True if package depex satisified\r
+    # @return: True if package depex satisfied\r
     #          False else\r
     #\r
     def CheckPackageDepexSatisfied(self, PkgObj, DpObj=None):\r
index 48defeac7ee71448bfe2a1d307aee0f28c6a7a74..bedf26321e553ea2dcb922778f0cb8f925ff929a 100644 (file)
@@ -735,8 +735,8 @@ class IpiDatabase(object):
 \r
     ## Get a list of module information that comes from DP.\r
     #\r
-    # @param DpGuid: A Distrabution Guid\r
-    # @param DpVersion: A Distrabution version\r
+    # @param DpGuid: A Distribution Guid\r
+    # @param DpVersion: A Distribution version\r
     #\r
     def GetSModInsPathListFromDp(self, DpGuid, DpVersion):\r
 \r
@@ -754,8 +754,8 @@ class IpiDatabase(object):
 \r
     ## Get a list of package information.\r
     #\r
-    # @param DpGuid: A Distrabution Guid\r
-    # @param DpVersion: A Distrabution version\r
+    # @param DpGuid: A Distribution Guid\r
+    # @param DpVersion: A Distribution version\r
     #\r
     def GetPackageListFromDp(self, DpGuid, DpVersion):\r
 \r
@@ -774,8 +774,8 @@ class IpiDatabase(object):
 \r
     ## Get a list of modules that depends on package information from a DP.\r
     #\r
-    # @param DpGuid: A Distrabution Guid\r
-    # @param DpVersion: A Distrabution version\r
+    # @param DpGuid: A Distribution Guid\r
+    # @param DpVersion: A Distribution version\r
     #\r
     def GetDpDependentModuleList(self, DpGuid, DpVersion):\r
 \r
@@ -831,8 +831,8 @@ class IpiDatabase(object):
 \r
     ## Get Dp's list of modules.\r
     #\r
-    # @param DpGuid: A Distrabution Guid\r
-    # @param DpVersion: A Distrabution version\r
+    # @param DpGuid: A Distribution Guid\r
+    # @param DpVersion: A Distribution version\r
     #\r
     def GetDpModuleList(self, DpGuid, DpVersion):\r
         ModList = []\r
index e2dd6a02dccc9c434cd3bc3131261a307f6945dd..63c6da0fec493a421da967a618aa3124e04be675 100644 (file)
@@ -646,8 +646,8 @@ def GenPackageUNIEncodeFile(PackageObject, UniFileHeader = '', Encoding=TAB_ENCO
     File = codecs.open(ContainerFile, 'w', Encoding)\r
     File.write(u'\uFEFF' + Content)\r
     File.stream.close()\r
-    Md5Sigature = md5(__FileHookOpen__(str(ContainerFile), 'rb').read())\r
-    Md5Sum = Md5Sigature.hexdigest()\r
+    Md5Signature = md5(__FileHookOpen__(str(ContainerFile), 'rb').read())\r
+    Md5Sum = Md5Signature.hexdigest()\r
     if (ContainerFile, Md5Sum) not in PackageObject.FileList:\r
         PackageObject.FileList.append((ContainerFile, Md5Sum))\r
 \r
index 1f8b3f163e881c30be742a6959885b9ba34ed4ec..40346b0b3a52424551025ee8126781786429a1c7 100644 (file)
@@ -255,8 +255,8 @@ def GenModuleUNIEncodeFile(ModuleObject, UniFileHeader='', Encoding=DT.TAB_ENCOD
         File = codecs.open(ContainerFile, 'wb', Encoding)\r
         File.write(u'\uFEFF' + Content)\r
         File.stream.close()\r
-    Md5Sigature = md5(__FileHookOpen__(str(ContainerFile), 'rb').read())\r
-    Md5Sum = Md5Sigature.hexdigest()\r
+    Md5Signature = md5(__FileHookOpen__(str(ContainerFile), 'rb').read())\r
+    Md5Sum = Md5Signature.hexdigest()\r
     if (ContainerFile, Md5Sum) not in ModuleObject.FileList:\r
         ModuleObject.FileList.append((ContainerFile, Md5Sum))\r
 \r
index c553d707fdfb0099e18bea884560e5581f5512d2..cbc54f9407f16a4e0ae596fc10b2ce85f48e842d 100644 (file)
@@ -176,8 +176,8 @@ def UnZipDp(WorkspaceDir, DpPkgFileName, Index=1):
     # verify MD5 signature when existed\r
     #\r
     if DistPkg.Header.Signature != '':\r
-        Md5Sigature = md5(__FileHookOpen__(ContentFile, 'rb').read())\r
-        if DistPkg.Header.Signature != Md5Sigature.hexdigest():\r
+        Md5Signature = md5(__FileHookOpen__(ContentFile, 'rb').read())\r
+        if DistPkg.Header.Signature != Md5Signature.hexdigest():\r
             ContentZipFile.Close()\r
             Logger.Error("InstallPkg", FILE_CHECKSUM_FAILURE,\r
                 ExtraData=ContentFile)\r
@@ -215,8 +215,8 @@ def GetPackageList(DistPkg, Dep, WorkspaceDir, Options, ContentZipFile, ModuleLi
     #\r
     for Package in PackageList:\r
         FilePath = PackageToDec(Package, DistPkg.Header)\r
-        Md5Sigature = md5(__FileHookOpen__(str(FilePath), 'rb').read())\r
-        Md5Sum = Md5Sigature.hexdigest()\r
+        Md5Signature = md5(__FileHookOpen__(str(FilePath), 'rb').read())\r
+        Md5Sum = Md5Signature.hexdigest()\r
         if (FilePath, Md5Sum) not in Package.FileList:\r
             Package.FileList.append((FilePath, Md5Sum))\r
 \r
@@ -275,8 +275,8 @@ def GetModuleList(DistPkg, Dep, WorkspaceDir, ContentZipFile, ModuleList):
     for (Module, Package) in ModuleList:\r
         CheckCNameInModuleRedefined(Module, DistPkg)\r
         FilePath = ModuleToInf(Module, Package, DistPkg.Header)\r
-        Md5Sigature = md5(__FileHookOpen__(str(FilePath), 'rb').read())\r
-        Md5Sum = Md5Sigature.hexdigest()\r
+        Md5Signature = md5(__FileHookOpen__(str(FilePath), 'rb').read())\r
+        Md5Sum = Md5Signature.hexdigest()\r
         if Package:\r
             if (FilePath, Md5Sum) not in Package.FileList:\r
                 Package.FileList.append((FilePath, Md5Sum))\r
@@ -803,8 +803,8 @@ def InstallFile(ContentZipFile, FromFile, ToFile, ReadOnly, Executable=False):
         else:\r
             chmod(ToFile, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH | stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH)\r
 \r
-    Md5Sigature = md5(__FileHookOpen__(str(ToFile), 'rb').read())\r
-    Md5Sum = Md5Sigature.hexdigest()\r
+    Md5Signature = md5(__FileHookOpen__(str(ToFile), 'rb').read())\r
+    Md5Sum = Md5Signature.hexdigest()\r
 \r
     return Md5Sum\r
 \r
@@ -876,8 +876,8 @@ def InstallPackageContent(FromPath, ToPath, Package, ContentZipFile, Dep,
             chmod(ToFile, stat.S_IRUSR|stat.S_IRGRP|stat.S_IROTH)\r
         else:\r
             chmod(ToFile, stat.S_IRUSR|stat.S_IRGRP|stat.S_IROTH|stat.S_IWUSR|stat.S_IWGRP|stat.S_IWOTH)\r
-        Md5Sigature = md5(__FileHookOpen__(str(ToFile), 'rb').read())\r
-        Md5Sum = Md5Sigature.hexdigest()\r
+        Md5Signature = md5(__FileHookOpen__(str(ToFile), 'rb').read())\r
+        Md5Sum = Md5Signature.hexdigest()\r
         if (ToFile, Md5Sum) not in Package.FileList:\r
             Package.FileList.append((ToFile, Md5Sum))\r
     Package.SetIncludeArchList(PackageIncludeArchList)\r
index a09a530ffb05251f34ce1083e5fd89abb5d42012..250ba2dd5e8dc94746d7776c469ac4f5d0705bbb 100644 (file)
@@ -426,7 +426,7 @@ def _CheckListExpression(Expression):
 \r
     return IsValidListExpr(ListExpr)\r
 \r
-## _CheckExpreesion\r
+## _CheckExpression\r
 #\r
 # @param Expression: Pcd value expression\r
 #\r
@@ -476,11 +476,11 @@ def _ValidateCopyright(Line):
 \r
 def GenerateTokenList (Comment):\r
     #\r
-    # Tokenize Comment using '#' and ' ' as token seperators\r
+    # Tokenize Comment using '#' and ' ' as token separators\r
     #\r
-    RelplacedComment = None\r
-    while Comment != RelplacedComment:\r
-        RelplacedComment = Comment\r
+    ReplacedComment = None\r
+    while Comment != ReplacedComment:\r
+        ReplacedComment = Comment\r
         Comment = Comment.replace('##', '#').replace('  ', ' ').replace(' ', '#').strip('# ')\r
     return Comment.split('#')\r
 \r
@@ -538,13 +538,13 @@ def ParseComment (Comment, UsageTokens, TypeTokens, RemoveTokens, ParseVariable)
                 NumTokens = 1\r
 \r
     #\r
-    # Initialze HelpText to Comment.\r
+    # Initialize HelpText to Comment.\r
     # Content will be remove from HelpText as matching tokens are found\r
     #\r
     HelpText = Comment\r
 \r
     #\r
-    # Tokenize Comment using '#' and ' ' as token seperators\r
+    # Tokenize Comment using '#' and ' ' as token separators\r
     #\r
     List = GenerateTokenList (Comment)\r
 \r
index 97ca835882f34239aa877a324a2c8dd0bf23c37f..07673694b2d718b6bab4528d1dc4b6c41faf8b3e 100644 (file)
@@ -93,7 +93,7 @@ TAB_STR_TOKENHELP = 'HELP'
 TAB_STR_TOKENERR = 'ERR'\r
 \r
 #\r
-# Dictionary of usage tokens and their synonmys\r
+# Dictionary of usage tokens and their synonyms\r
 #\r
 ALL_USAGE_TOKENS = {\r
   "PRODUCES"           : "PRODUCES",\r
index 40b17cf083f15675145999909d2e58c7a4a61fc5..6b093873dd64e7eec1c73f63d38440bd73c62a8a 100644 (file)
@@ -43,7 +43,7 @@ gINVALID_MODULE_FILE = gUPT_DIR + r"Invalid_Modules.log"
 gCONTENT_FILE = "dist.content"\r
 \r
 #\r
-# File name for XML file in the distibution\r
+# File name for XML file in the distribution\r
 #\r
 gDESC_FILE = 'dist.pkg'\r
 \r
index d69b161420c2346cf39c0d34f9d1a7367df20dca..e7ee27cc53d571907b96d4277812cce9c4f8e5d4 100644 (file)
@@ -788,7 +788,7 @@ def GetLibInstanceInfo(String, WorkSpace, LineNo):
     FileGuidString = ""\r
     VerString = ""\r
 \r
-    OrignalString = String\r
+    OriginalString = String\r
     String = String.strip()\r
     if not String:\r
         return None, None\r
@@ -808,7 +808,7 @@ def GetLibInstanceInfo(String, WorkSpace, LineNo):
                      ST.ERR_FILELIST_EXIST % (String),\r
                      File=GlobalData.gINF_MODULE_NAME,\r
                      Line=LineNo,\r
-                     ExtraData=OrignalString)\r
+                     ExtraData=OriginalString)\r
 \r
     #\r
     # Validate file exist/format.\r
@@ -821,7 +821,7 @@ def GetLibInstanceInfo(String, WorkSpace, LineNo):
                      ST.ERR_INF_PARSER_FILE_NOT_EXIST_OR_NAME_INVALID % (String),\r
                      File=GlobalData.gINF_MODULE_NAME,\r
                      Line=LineNo,\r
-                     ExtraData=OrignalString)\r
+                     ExtraData=OriginalString)\r
         return False\r
     if IsValidFileFlag:\r
         FileLinesList = []\r
@@ -973,7 +973,7 @@ def ValidateUNIFilePath(Path):
                         ExtraData=Path)\r
 \r
     #\r
-    # Check if '..' in the file name(without suffixe)\r
+    # Check if '..' in the file name(without suffix)\r
     #\r
     if (TAB_SPLIT + TAB_SPLIT) in Path:\r
         Logger.Error("Unicode File Parser",\r
index 87d156fa4ce166f7056f839bbda40de38b5c3c95..1408aec2425cda5f6b6d50f5051695f1f204a656 100644 (file)
@@ -13,7 +13,7 @@
 #\r
 \r
 '''\r
-PaserValidate\r
+ParserValidate\r
 '''\r
 \r
 import os.path\r
@@ -68,7 +68,7 @@ def IsValidHex(HexStr):
 #\r
 def IsValidBoolType(BoolString):\r
     #\r
-    # Valid Ture\r
+    # Valid True\r
     #\r
     if BoolString == 'TRUE' or \\r
        BoolString == 'True' or \\r
@@ -124,11 +124,11 @@ def IsValidInfComponentType(ComponentType):
 ## Is valid Tool Family or not\r
 #\r
 # @param   ToolFamily:   A string contain Tool Family need to be judged.\r
-# Famlily := [A-Z]([a-zA-Z0-9])*\r
+# Family := [A-Z]([a-zA-Z0-9])*\r
 #\r
 def IsValidToolFamily(ToolFamily):\r
-    ReIsValieFamily = re.compile(r"^[A-Z]+[A-Za-z0-9]{0,}$", re.DOTALL)\r
-    if ReIsValieFamily.match(ToolFamily) is None:\r
+    ReIsValidFamily = re.compile(r"^[A-Z]+[A-Za-z0-9]{0,}$", re.DOTALL)\r
+    if ReIsValidFamily.match(ToolFamily) is None:\r
         return False\r
     return True\r
 \r
@@ -158,8 +158,8 @@ def IsValidToolTagName(TagName):
 def IsValidArch(Arch):\r
     if Arch == 'common':\r
         return True\r
-    ReIsValieArch = re.compile(r"^[a-zA-Z]+[a-zA-Z0-9]{0,}$", re.DOTALL)\r
-    if ReIsValieArch.match(Arch) is None:\r
+    ReIsValidArch = re.compile(r"^[a-zA-Z]+[a-zA-Z0-9]{0,}$", re.DOTALL)\r
+    if ReIsValidArch.match(Arch) is None:\r
         return False\r
     return True\r
 \r
index 3eca8e384923456ad0cb3629196853d5616c4095..f7e995b93efd9d598a90c17495c304e91859313d 100644 (file)
@@ -959,7 +959,7 @@ def MacroParser(Line, FileName, SectionType, FileLocalMacros):
 #                       INF, DEC specs\r
 # @param  SectionDict:  section statement dict, key is SectionAttrs(arch,\r
 #                       moduletype or platform may exist as needed) list\r
-#                       seperated by space,\r
+#                       separated by space,\r
 #                       value is statement\r
 #\r
 def GenSection(SectionName, SectionDict, SplitArch=True, NeedBlankLine=False):\r
index a3391daa91bf5b106f34b8b8b360f5be0570d4fc..6fa1ee89d4e56589c7ae15d8fc4387296e8b98a4 100644 (file)
@@ -33,7 +33,7 @@ gMACRO_PATTERN = re.compile("\$\(([_A-Z][_A-Z0-9]*)\)", re.UNICODE)
 \r
 ## GetSplitValueList\r
 #\r
-# Get a value list from a string with multiple values splited with SplitTag\r
+# Get a value list from a string with multiple values split with SplitTag\r
 # The default SplitTag is DataType.TAB_VALUE_SPLIT\r
 # 'AAA|BBB|CCC' -> ['AAA', 'BBB', 'CCC']\r
 #\r
@@ -67,7 +67,7 @@ def MergeArches(Dict, Key, Arch):
 # Return False if invalid format\r
 #\r
 # @param String:   String with DEFINE statement\r
-# @param Arch:     Supportted Arch\r
+# @param Arch:     Supported Arch\r
 # @param Defines:  DEFINE statement to be parsed\r
 #\r
 def GenDefines(String, Arch, Defines):\r
@@ -236,7 +236,7 @@ def ReplaceMacro(String, MacroDefinitions=None, SelfReplacement=False, Line=None
 ## NormPath\r
 #\r
 # Create a normal path\r
-# And replace DFEINE in the path\r
+# And replace DEFINE in the path\r
 #\r
 # @param Path:     The input value for Path to be converted\r
 # @param Defines:  A set for DEFINE statement\r
@@ -613,9 +613,9 @@ def WorkspaceFile(WorkspaceDir, Filename):
 \r
 ## Split string\r
 #\r
-# Revmove '"' which startswith and endswith string\r
+# Remove '"' which startswith and endswith string\r
 #\r
-# @param String:  The string need to be splited\r
+# @param String:  The string need to be split\r
 #\r
 def SplitString(String):\r
     if String.startswith('\"'):\r
@@ -734,7 +734,7 @@ def IsHexDigit(Str):
                 return False\r
     return False\r
 \r
-## Check if the string is HexDgit and its interger value within limit of UINT32\r
+## Check if the string is HexDgit and its integer value within limit of UINT32\r
 #\r
 # Return true if all characters in the string are digits and there is at\r
 # least one character\r
index bd7804b7533bb856f37da56f04b61de845826d5d..d575c6b1f87562a4c9346db5017145dd5527abd8 100644 (file)
@@ -130,12 +130,12 @@ def ConvertSpecialUnicodes(Uni):
 ## GetLanguageCode1766\r
 #\r
 # Check the language code read from .UNI file and convert RFC 4646 codes to RFC 1766 codes\r
-# RFC 1766 language codes supported in compatiblity mode\r
+# RFC 1766 language codes supported in compatibility mode\r
 # RFC 4646 language codes supported in native mode\r
 #\r
 # @param LangName:   Language codes read from .UNI file\r
 #\r
-# @retval LangName:  Valid lanugage code in RFC 1766 format or None\r
+# @retval LangName:  Valid language code in RFC 1766 format or None\r
 #\r
 def GetLanguageCode1766(LangName, File=None):\r
     return LangName\r
@@ -177,7 +177,7 @@ def GetLanguageCode1766(LangName, File=None):
 ## GetLanguageCode\r
 #\r
 # Check the language code read from .UNI file and convert RFC 1766 codes to RFC 4646 codes if appropriate\r
-# RFC 1766 language codes supported in compatiblity mode\r
+# RFC 1766 language codes supported in compatibility mode\r
 # RFC 4646 language codes supported in native mode\r
 #\r
 # @param LangName:   Language codes read from .UNI file\r
@@ -221,13 +221,13 @@ def GetLanguageCode(LangName, IsCompatibleMode, File):
 \r
 ## FormatUniEntry\r
 #\r
-# Formated the entry in Uni file.\r
+# Formatted the entry in Uni file.\r
 #\r
 # @param StrTokenName    StrTokenName.\r
 # @param TokenValueList  A list need to be processed.\r
 # @param ContainerFile   ContainerFile.\r
 #\r
-# @return formated entry\r
+# @return formatted entry\r
 def FormatUniEntry(StrTokenName, TokenValueList, ContainerFile):\r
     SubContent = ''\r
     PreFormatLength = 40\r
@@ -478,8 +478,8 @@ class UniFileClassObject(object):
         MultiLineFeedExits = False\r
         #\r
         # 0: initial value\r
-        # 1: signle String entry exist\r
-        # 2: line feed exist under the some signle String entry\r
+        # 1: single String entry exist\r
+        # 2: line feed exist under the some single String entry\r
         #\r
         StringEntryExistsFlag = 0\r
         for Line in FileIn:\r
@@ -497,7 +497,7 @@ class UniFileClassObject(object):
                     StringEntryExistsFlag = 2\r
                 #\r
                 # If the '#string' line and the '#language' line are not in the same line,\r
-                # there should be only one line feed character betwwen them\r
+                # there should be only one line feed character between them\r
                 #\r
                 if MultiLineFeedExits:\r
                     EdkLogger.Error("Unicode File Parser", ToolError.FORMAT_INVALID, ExtraData=File.Path)\r
@@ -505,7 +505,7 @@ class UniFileClassObject(object):
 \r
             MultiLineFeedExits = False\r
             #\r
-            # Process comment embeded in string define lines\r
+            # Process comment embedded in string define lines\r
             #\r
             FindFlag = Line.find(u'//')\r
             if FindFlag != -1 and Line.find(u'//') < Line.find(u'"'):\r
@@ -771,7 +771,7 @@ class UniFileClassObject(object):
 \r
         #\r
         # Check Abstract, Description, BinaryAbstract and BinaryDescription order,\r
-        # should be Abstract, Description, BinaryAbstract, BinaryDesctiption\r
+        # should be Abstract, Description, BinaryAbstract, BinaryDescription\r
         AbstractPosition = -1\r
         DescriptionPosition = -1\r
         BinaryAbstractPosition = -1\r
index e8c31f00720be14565cad95445b5ee75042b3ca5..7671202b30f4e8b0154a458d2e009543a3522e48 100644 (file)
@@ -190,7 +190,7 @@ def Warn(ToolName, Message, File=None, Line=None, ExtraData=None):
 \r
     _INFO_LOGGER.log(WARN, LogText)\r
     #\r
-    # Raise an execption if indicated\r
+    # Raise an exception if indicated\r
     #\r
     if GlobalData.gWARNING_AS_ERROR == True:\r
         raise FatalError(WARNING_AS_ERROR)\r
@@ -198,7 +198,7 @@ def Warn(ToolName, Message, File=None, Line=None, ExtraData=None):
 ## Log ERROR message\r
 #\r
 # Once an error messages is logged, the tool's execution will be broken by\r
-# raising an execption. If you don't want to break the execution later, you\r
+# raising an exception. If you don't want to break the execution later, you\r
 # can give "RaiseError" with "False" value.\r
 #\r
 #   @param  ToolName    The name of the tool. If not given, the name of caller\r
@@ -208,7 +208,7 @@ def Warn(ToolName, Message, File=None, Line=None, ExtraData=None):
 #   @param  File        The name of file which caused the error.\r
 #   @param  Line        The line number in the "File" which caused the warning.\r
 #   @param  ExtraData   More information associated with "Message"\r
-#   @param  RaiseError  Raise an exception to break the tool's executuion if\r
+#   @param  RaiseError  Raise an exception to break the tool's execution if\r
 #                       it's True. This is the default behavior.\r
 #\r
 def Error(ToolName, ErrorCode, Message=None, File=None, Line=None, \\r
index 061943925aaaf3ff4870c9d6964209e6c2fdb4b3..d815d9cf89f44a21ea8a6556738f6fcd609a44bc 100644 (file)
@@ -135,7 +135,7 @@ ERR_INF_PARSER_LIBRARY_SECTION_CONTENT_ERROR = \
 ERR_INF_PARSER_LIBRARY_SECTION_LIBNAME_MISSING = \\r
     _("Format invalid. Please specify a library name.")\r
 ERR_INF_PARSER_SOURCES_SECTION_CONTENT_ERROR = \\r
-    _("The format is incorrect. It should be formated as follows: "\r
+    _("The format is incorrect. It should be formatted as follows: "\r
       "FileName, Family | TagName | ToolCode | FeatureFlagExpr.")\r
 ERR_INF_PARSER_PCD_SECTION_TYPE_ERROR = \\r
     _("The PCD section type is incorrect. The value should be this list: %s")\r
@@ -147,10 +147,10 @@ ERR_INF_PARSER_PCD_NAME_FORMAT_ERROR = \
       "Should like following: <TokenSpaceGuidCName>.<PcdCName> ")\r
 ERR_INF_PARSER_GUID_PPI_PROTOCOL_SECTION_CONTENT_ERROR = \\r
     _("The format is incorrect. "\r
-      "It should be formated as follows: CName | FeatureFlag.")\r
+      "It should be formatted as follows: CName | FeatureFlag.")\r
 ERR_INF_PARSER_PACKAGE_SECTION_CONTENT_ERROR = \\r
     _("The format is incorrect. "\r
-      "It should be formated as follows:  <TokenSpaceGuidCName>.<PcdCName>")\r
+      "It should be formatted as follows:  <TokenSpaceGuidCName>.<PcdCName>")\r
 ERR_INF_PARSER_PCD_TAIL_COMMENTS_INVALID = \\r
     _("The format is incorrect. "\r
       "Multiple usage descriptions must be described on subsequent lines.")\r
@@ -197,7 +197,7 @@ ERR_INF_PARSER_FILE_MISS_DEFINE = \
     _("The following file listed in the module "\r
       "directory is not listed in the INF: %s")\r
 ERR_INF_PARSER_VERSION_NUMBER_DEPRICATED = \\r
-    _("VERSION_NUMBER depricated.  "\r
+    _("VERSION_NUMBER deprecated.  "\r
       "The INF file %s should be modified to use the VERSION_STRING instead.")\r
 ERR_INF_PARSER_VER_EXIST_BOTH_NUM_STR = \\r
     _("The INF file %s defines both VERSION_NUMBER and VERSION_STRING, "\r
@@ -585,7 +585,7 @@ _("Only a distribution file name without a path is allowed for "
   "the distribution to be replaced during replace. Current given: '%s'.")\r
 ERR_UNIPARSE_DBLQUOTE_UNMATCHED = \\r
 _("Only Language entry can contain a couple of matched quote in one line")\r
-ERR_UNIPARSE_NO_SECTION_EXIST = _("No PakcageDef or ModuleDef section exists in the UNI file.")\r
+ERR_UNIPARSE_NO_SECTION_EXIST = _("No PackageDef or ModuleDef section exists in the UNI file.")\r
 ERR_UNIPARSE_STRNAME_FORMAT_ERROR = _("The String Token Name %s must start with \"STR_\"")\r
 ERR_UNIPARSE_SEP_LANGENTRY_LINE = _("Each <LangEntry> should be in a separate line :%s.")\r
 ERR_UNIPARSE_MULTI_ENTRY_EXIST = \\r
@@ -724,7 +724,7 @@ _("Incorrect GUID value format, must be <GuidValueInCFormat:"
 ERR_DECPARSE_CGUID_NOT_FOUND = _("Unable to find the GUID value of this GUID CName : '%s'.")\r
 ERR_DECPARSE_FILEOPEN               = _("Unable to open: [%s].")\r
 ERR_DECPARSE_SECTION_EMPTY          = _("Empty sections are not allowed.")\r
-ERR_DECPARSE_SECTION_UE             = _("Incorrect UserExtentions format. "\r
+ERR_DECPARSE_SECTION_UE             = _("Incorrect UserExtensions format. "\r
                             "Must be UserExtenxions.UserId.IdString[.Arch]+.")\r
 ERR_DECPARSE_SECTION_UE_USERID      = _("Invalid UserId, must be underscore"\r
                                         "or alphanumeric characters.")\r
index 7f7df9c6d5bd2b5fba78542892b07ebd01b06333..a074edca8a5d8beb282592dff458f6f43b2b5d2d 100644 (file)
@@ -1,5 +1,5 @@
 ## @file\r
-# Standardized Error Hanlding infrastructures.\r
+# Standardized Error Handling infrastructures.\r
 #\r
 # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
index 053d1155477a912f7bb64a772cfc9564273190bd..3dc18ac6eb30859b4b9617ab0a81ac4e3d829895 100644 (file)
@@ -194,7 +194,7 @@ def Main(Options = None):
         ContentFileClosed = True\r
 \r
         #\r
-        # Add Md5Sigature\r
+        # Add Md5Signature\r
         #\r
         DistPkg.Header.Signature = md5(open(str(ContentFile), 'rb').read()).hexdigest()\r
         #\r
index 302d3050aae5c06d7e75de9b24fc10693ebeafd3..fab4be351f389d09eaa42b28d0d3eb7db18e71c1 100644 (file)
@@ -171,7 +171,7 @@ class _DecItemBaseObject(_DecComments):
 \r
 ## DecDefineObject\r
 #\r
-# Class to hold define section infomation\r
+# Class to hold define section information\r
 #\r
 class DecDefineObject(_DecBaseObject):\r
     def __init__(self, PkgFullName):\r
@@ -520,7 +520,7 @@ class DecGuidObject(DecGuidObjectBase):
 \r
 ## DecPpiObject\r
 #\r
-# Class for PPI seciont\r
+# Class for PPI section\r
 #\r
 # @param DecGuidObjectBase: Dec Guid Object Base\r
 #\r
index f7eeb84127e1742710bbfd64744738229694d5e7..92bd64b9d9453fcb38cfe7c9e79ba7988df7a2b7 100644 (file)
@@ -705,7 +705,7 @@ class _DecGuid(_DecBase):
 \r
 ## _DecUserExtension\r
 #\r
-# Parse user extention section\r
+# Parse user extension section\r
 #\r
 class _DecUserExtension(_DecBase):\r
     def __init__(self, RawData):\r
@@ -1033,7 +1033,7 @@ class Dec(_DecBase, _DecComments):
                 SectionNames.append(SectionName)\r
             #\r
             # In DEC specification, all section headers have at most two part:\r
-            # SectionName.Arch except UserExtention\r
+            # SectionName.Arch except UserExtension\r
             #\r
             if len(ItemList) > 2:\r
                 self._LoggerError(ST.ERR_DECPARSE_SECTION_SUBTOOMANY % Item)\r
index c314892adf9ffc2e52dddf6f2941ad4b36223480..53b62621dc3405b499aaa25c8d2eadb130e94f47 100644 (file)
@@ -46,7 +46,7 @@ def GetLibInstanceInfo(String, WorkSpace, LineNo, CurrentInfFileName):
     FileGuidString = ""\r
     VerString = ""\r
 \r
-    OrignalString = String\r
+    OriginalString = String\r
     String = String.strip()\r
     if not String:\r
         return None, None\r
@@ -78,7 +78,7 @@ def GetLibInstanceInfo(String, WorkSpace, LineNo, CurrentInfFileName):
     #\r
     # To deal with library instance specified by file name\r
     #\r
-    FileLinesList = GetFileLineContent(String, WorkSpace, LineNo, OrignalString)\r
+    FileLinesList = GetFileLineContent(String, WorkSpace, LineNo, OriginalString)\r
 \r
 \r
     ReFindFileGuidPattern = re.compile("^\s*FILE_GUID\s*=.*$")\r
index 5dc00affade8e8040d5c35e5f271ba2361f0d70b..a7b59d958cd57d69d35daab5c12cdc7631df6f00 100644 (file)
@@ -413,7 +413,7 @@ class DecPomAlignment(PackageObject):
 \r
         #\r
         # get a non-overlap set of include path, IncludePathList should be\r
-        # sorted, and path should be end with path seperator '\'\r
+        # sorted, and path should be end with path separator '\'\r
         #\r
         NonOverLapList = []\r
         for Path1 in IncludePathList:\r
@@ -424,7 +424,7 @@ class DecPomAlignment(PackageObject):
                 NonOverLapList.append(Path1)\r
         #\r
         # revert the list so the longest path shown first in list, also need\r
-        # to remove the extra path seperator '\'\r
+        # to remove the extra path separator '\'\r
         # as this list is used to search the supported Arch info\r
         #\r
         for IndexN in range (0, len(IncludePathList)):\r
index 2e83c247edd1863ab8b8a3377758b243e29da0da..d01481727b9e7d5033a40de607c5663867558df6 100644 (file)
@@ -293,7 +293,7 @@ class InfPomAlignment(ModuleObject):
             self.SetUserExtensionList(self.GetUserExtensionList() + [UserExtension])\r
         #\r
         # Get all meta-file header information\r
-        # the record is list of items formated:\r
+        # the record is list of items formatted:\r
         # [LineValue, Arch, StartLine, ID, Third]\r
         #\r
         InfHeaderObj = self.Parser.InfHeader\r
index 239078d019a7edcf9eb714a8b47da405153d83ac..68f281b5217a6486c67afacf0408d156010a248e 100644 (file)
@@ -155,10 +155,10 @@ def GenModuleHeaderUserExt(DefineObj, ArchString):
 ## Generate the define statement that will be put into userextension\r
 #  Not support comments.\r
 #\r
-# @param HeaderComment: the original header comment (# not remvoed)\r
+# @param HeaderComment: the original header comment (# not removed)\r
 # @param Name: the definition keyword, should not be empty or none\r
 # @param Value: the definition keyword value\r
-# @param TailComment: the original Tail comment (# not remvoed)\r
+# @param TailComment: the original Tail comment (# not removed)\r
 #\r
 # @return: the regenerated define statement\r
 #\r
index f1d141c736bccb96a41b4597620cb8acd86936e2..3d97295362e82cf18e1f639cd859937ddc026952 100644 (file)
@@ -242,8 +242,8 @@ def RemoveDist(Guid, Version, StoredDistFile, DataBase, WorkspaceDir, ForceRemov
                 #\r
                 # check whether modified by users\r
                 #\r
-                Md5Sigature = md5(open(str(Path), 'rb').read())\r
-                if Md5Sum != Md5Sigature.hexdigest():\r
+                Md5Signature = md5(open(str(Path), 'rb').read())\r
+                if Md5Sum != Md5Signature.hexdigest():\r
                     Logger.Info(ST.MSG_CONFIRM_REMOVE2 % Path)\r
                     Input = stdin.readline()\r
                     Input = Input.replace('\r', '').replace('\n', '')\r
index afea4a438b62242116afa270c61d2efad3c2d389..752a9ea44616fa8896ebfbce8d851121be1c8524 100644 (file)
@@ -61,9 +61,9 @@ class MacroParserTestCase(unittest.TestCase):
         self.dec = _DecBase(FileContent('dummy', []))\r
 \r
     def testCorrectMacro(self):\r
-        self.dec._MacroParser('DEFINE MARCRO1 = test1')\r
-        self.failIf('MARCRO1' not in self.dec._LocalMacro)\r
-        self.assertEqual(self.dec._LocalMacro['MARCRO1'], 'test1')\r
+        self.dec._MacroParser('DEFINE MACRO1 = test1')\r
+        self.failIf('MACRO1' not in self.dec._LocalMacro)\r
+        self.assertEqual(self.dec._LocalMacro['MACRO1'], 'test1')\r
 \r
     def testErrorMacro1(self):\r
         # Raise fatal error, macro name must be upper case letter\r
index cff77a71ae4add9f0ce5c101cec5e40693fd01c3..1df042f41ca6fa2d089dcbd719b6ee06b3ba4807 100644 (file)
@@ -176,7 +176,7 @@ class PcdClassObject(object):
     ## Convert the class to a string\r
     #\r
     #  Convert each member of the class to string\r
-    #  Organize to a signle line format string\r
+    #  Organize to a single line format string\r
     #\r
     #  @retval Rtn Formatted String\r
     #\r
index 36b39be5d50566c2c49d4f41b7d53e0398652873..149c057b7023049eb2ab74f0dabbdf8f5e84c5ee 100644 (file)
@@ -121,7 +121,7 @@ class DecBuildData(PackageBuildClassObject):
 \r
     ## Retrieve all information in [Defines] section\r
     #\r
-    #   (Retriving all [Defines] information in one-shot is just to save time.)\r
+    #   (Retrieving all [Defines] information in one-shot is just to save time.)\r
     #\r
     def _GetHeaderInfo(self):\r
         RecordList = self._RawData[MODEL_META_DATA_HEADER, self._Arch]\r
@@ -167,7 +167,7 @@ class DecBuildData(PackageBuildClassObject):
         if self._Protocols is None:\r
             #\r
             # tdict is a special kind of dict, used for selecting correct\r
-            # protocol defition for given ARCH\r
+            # protocol definition for given ARCH\r
             #\r
             ProtocolDict = tdict(True)\r
             PrivateProtocolDict = tdict(True)\r
@@ -210,7 +210,7 @@ class DecBuildData(PackageBuildClassObject):
         if self._Ppis is None:\r
             #\r
             # tdict is a special kind of dict, used for selecting correct\r
-            # PPI defition for given ARCH\r
+            # PPI definition for given ARCH\r
             #\r
             PpiDict = tdict(True)\r
             PrivatePpiDict = tdict(True)\r
@@ -253,7 +253,7 @@ class DecBuildData(PackageBuildClassObject):
         if self._Guids is None:\r
             #\r
             # tdict is a special kind of dict, used for selecting correct\r
-            # GUID defition for given ARCH\r
+            # GUID definition for given ARCH\r
             #\r
             GuidDict = tdict(True)\r
             PrivateGuidDict = tdict(True)\r
index f472fa177f75a11ad6c18792fd7ce60a7782114c..1fd1639ab6dd32ff5003e7f9f2cfacde8a2fb1cd 100644 (file)
@@ -343,7 +343,7 @@ class DscBuildData(PlatformBuildClassObject):
 \r
     ## Retrieve all information in [Defines] section\r
     #\r
-    #   (Retriving all [Defines] information in one-shot is just to save time.)\r
+    #   (Retrieving all [Defines] information in one-shot is just to save time.)\r
     #\r
     def _GetHeaderInfo(self):\r
         RecordList = self._RawData[MODEL_META_DATA_HEADER, self._Arch]\r
index fc779a9d25981ac6fa2c966dfbdab77889188389..6148ab0d30fec68cd9140d3df86ca9a40f38cb48 100644 (file)
@@ -205,7 +205,7 @@ class InfBuildData(ModuleBuildClassObject):
 \r
     ## Retrieve all information in [Defines] section\r
     #\r
-    #   (Retriving all [Defines] information in one-shot is just to save time.)\r
+    #   (Retrieving all [Defines] information in one-shot is just to save time.)\r
     #\r
     @cached_class_function\r
     def _GetHeaderInfo(self):\r
@@ -816,7 +816,7 @@ class InfBuildData(ModuleBuildClassObject):
             RetVal[Arch, ModuleType] = TemporaryDictionary[Arch, ModuleType]\r
         return RetVal\r
 \r
-    ## Retrieve depedency expression\r
+    ## Retrieve dependency expression\r
     @cached_property\r
     def DepexExpression(self):\r
         RetVal = tdict(False, 2)\r
index 311d0faf383ba2ea7b04af1038b4415e41a2cd50..a3e321622100500d5e7f74a4dc0eae4b28f92483 100644 (file)
@@ -438,7 +438,7 @@ class MetaFileParser(object):
         ScopeKey = tuple(ScopeKey)\r
         #\r
         # DecParser SectionType is a list, will contain more than one item only in Pcd Section\r
-        # As Pcd section macro usage is not alllowed, so here it is safe\r
+        # As Pcd section macro usage is not allowed, so here it is safe\r
         #\r
         if isinstance(self, DecParser):\r
             SectionDictKey = self._SectionType[0], ScopeKey\r
index ee238e5143378a8f1c34b5c382321ba788a676fd..b79280bc2e839c754eb5a83a69c9997212f93a50 100644 (file)
@@ -247,7 +247,7 @@ def GetModuleLibInstances(Module, Platform, BuildDatabase, Arch, Target, Toolcha
             SortedLibraryList.append(Item)\r
 \r
     #\r
-    # Build the list of constructor and destructir names\r
+    # Build the list of constructor and destructor names\r
     # The DAG Topo sort produces the destructor order, so the list of constructors must generated in the reverse order\r
     #\r
     SortedLibraryList.reverse()\r
index a6a292d15c5cc8b56d04b1578bdfad54d4c03e27..921a229a1ccbe407002e083654751679ebda6957 100644 (file)
@@ -37,7 +37,7 @@ from Workspace.InfBuildData import InfBuildData
 #\r
 # @param DbPath             Path of database file\r
 # @param GlobalMacros       Global macros used for replacement during file parsing\r
-# @prarm RenewDb=False      Create new database file if it's already there\r
+# @param RenewDb=False      Create new database file if it's already there\r
 #\r
 class WorkspaceDatabase(object):\r
 \r
@@ -82,7 +82,7 @@ class WorkspaceDatabase(object):
                 Arch = None\r
             return (FilePath, Arch) in self._CACHE_\r
 \r
-        # key = (FilePath, Arch=None, Target=None, Toochain=None)\r
+        # key = (FilePath, Arch=None, Target=None, Toolchain=None)\r
         def __getitem__(self, Key):\r
             FilePath = Key[0]\r
             KeyLength = len(Key)\r
@@ -123,7 +123,7 @@ class WorkspaceDatabase(object):
                                 Arch,\r
                                 MetaFileStorage(self.WorkspaceDb, FilePath, FileType)\r
                                 )\r
-            # alwasy do post-process, in case of macros change\r
+            # always do post-process, in case of macros change\r
             MetaFile.DoPostProcess()\r
             # object the build is based on\r
             BuildObject = self._GENERATOR_[FileType](\r
@@ -149,7 +149,7 @@ class WorkspaceDatabase(object):
     #\r
     # @param DbPath             Path of database file\r
     # @param GlobalMacros       Global macros used for replacement during file parsing\r
-    # @prarm RenewDb=False      Create new database file if it's already there\r
+    # @param RenewDb=False      Create new database file if it's already there\r
     #\r
     def __init__(self):\r
         self.DB = dict()\r
index cdea312864139275966156bada000d4fa845e45e..99e79d4dca768e0850abbe6e76108eb4108bf337 100644 (file)
@@ -488,7 +488,7 @@ class BuildTask:
                 time.sleep(0.1)\r
         except BaseException as X:\r
             #\r
-            # TRICK: hide the output of threads left runing, so that the user can\r
+            # TRICK: hide the output of threads left running, so that the user can\r
             #        catch the error message easily\r
             #\r
             EdkLogger.SetLevel(EdkLogger.ERROR)\r
@@ -613,7 +613,7 @@ class BuildTask:
             self.CompleteFlag = True\r
         except:\r
             #\r
-            # TRICK: hide the output of threads left runing, so that the user can\r
+            # TRICK: hide the output of threads left running, so that the user can\r
             #        catch the error message easily\r
             #\r
             if not BuildTask._ErrorFlag.isSet():\r
@@ -1380,7 +1380,7 @@ class Build():
                 LaunchCommand(["GenFw", "--address", str(BaseAddress), "-r", ModuleOutputImage], ModuleInfo.OutputDir)\r
                 LaunchCommand(["GenFw", "--address", str(BaseAddress), "-r", ModuleDebugImage], ModuleInfo.DebugDir)\r
             #\r
-            # Collect funtion address from Map file\r
+            # Collect function address from Map file\r
             #\r
             ImageMapTable = ModuleOutputImage.replace('.efi', '.map')\r
             FunctionList = []\r
@@ -1433,7 +1433,7 @@ class Build():
             #\r
             MapBuffer.append('(IMAGE=%s)\n\n' % (ModuleDebugImage))\r
             #\r
-            # Add funtion address\r
+            # Add function address\r
             #\r
             for Function in FunctionList:\r
                 if AddrIsOffset:\r
index f6a4a6ae9c5d9fcda91c8434d47347247a2e1f73..1be55188d62ccb61260b65b98b574277e97ac4e3 100644 (file)
@@ -57,7 +57,7 @@ class Tests(TestTools.BaseToolsTest):
             print('Original data did not match decompress(compress(data))')\r
             self.DisplayBinaryData('original data', start)\r
             self.DisplayBinaryData('after compression', self.ReadTmpFile('output1'))\r
-            self.DisplayBinaryData('after decomression', finish)\r
+            self.DisplayBinaryData('after decompression', finish)\r
         self.assertTrue(startEqualsFinish)\r
 \r
     def testRandomDataCycles(self):\r
index 587f6fb5b64404d7eac6f7ae287a2721d78941ed..9192bb699e2d397ab3f4f1a816828401a4a748d7 100644 (file)
@@ -159,7 +159,7 @@ ool will generate a FV directory which includes a FFS directory, Fv file, Fv INf
 \af41\afs18 \ltrch\fcs0 \fs18\cf1\insrsid13252123 \hich\af41\dbch\af13\loch\f41 described }{\rtlch\fcs1 \af41\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5513321 \hich\af41\dbch\af13\loch\f41 in the FDF file }{\rtlch\fcs1 \af41\afs18 \ltrch\fcs0 \r
 \fs18\cf1\insrsid13252123 \hich\af41\dbch\af13\loch\f41 such as }{\rtlch\fcs1 \af41\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5513321 \hich\af41\dbch\af13\loch\f41 the \hich\f41 \lquote \loch\f41 InfFIle\hich\f41 \rquote \loch\f41 \r
  statement format  the GenFds tool }{\rtlch\fcs1 \af41\afs18 \ltrch\fcs0 \fs18\cf1\insrsid13252123 \hich\af41\dbch\af13\loch\f41 will determing the }{\rtlch\fcs1 \af41\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5513321 \hich\af41\dbch\af13\loch\f41 \hich\f41 \r
- input files from the path of  \'93\loch\f41  $(outputDir)\\ $(Arch) \\ $(ActivePlatfromName) \\$(ModuleName) \\$(ModuleName) \\DEBUG\r
+ input files from the path of  \'93\loch\f41  $(outputDir)\\ $(Arch) \\ $(ActivePlatformName) \\$(ModuleName) \\$(ModuleName) \\DEBUG\r
 \par }\pard \ltrpar\ql \fi-360\li420\ri0\sb200\nowidctlpar\tx420\wrapdefault\faauto\rin0\lin420\itap0 {\rtlch\fcs1 \af41\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5513321 \hich\af41\dbch\af13\loch\f41 1.\tab If Arch list was }{\rtlch\fcs1 \af41\afs18 \ltrch\fcs0 \r
 \fs18\cf1\insrsid13252123 \hich\af41\dbch\af13\loch\f41 specified}{\rtlch\fcs1 \af41\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5513321 \hich\af41\dbch\af13\loch\f41 , }{\rtlch\fcs1 \af41\afs18 \ltrch\fcs0 \fs18\cf1\insrsid13252123 \hich\af41\dbch\af13\loch\f41 \r
 the }{\rtlch\fcs1 \af41\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5513321 \hich\af41\dbch\af13\loch\f41 GenFds tool will use this Arch instead of Arch List in Target.txt file\r
@@ -258,11 +258,11 @@ ARCHS is a comma separated (no space) list containing one or more of: IA32, X64,
 \fs24\lang1033\langfe1033\loch\af41\hich\af41\dbch\af13\cgrid\langnp1033\langfenp1033 {\rtlch\fcs1 \ab\af41\afs28 \ltrch\fcs0 \b\fs28\cf17\insrsid5513321 {\*\bkmkend OLE_LINK3}{\*\bkmkend OLE_LINK4}{\*\bkmkend OLE_LINK5}\hich\af41\dbch\af13\loch\f41 \r
 Example\r
 \par }\pard\plain \ltrpar\ql \li60\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin60\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1033\loch\af41\hich\af41\dbch\af13\cgrid\langnp1033\langfenp1033 {\rtlch\fcs1 \af41\afs18 \r
-\ltrch\fcs0 \fs18\cf1\insrsid5513321 \hich\af41\dbch\af13\loch\f41 1. WORKSAPCE has already set. $(WORKSPACE) = c:\\work\\\hich\af41\dbch\af13\loch\f41 EdkII. The Fdf file is in c:\\work\\EdkII\\Nt32pkg\\Nt32pkg.fdf. Output directory is c:\\work\\EdkII\\\r
+\ltrch\fcs0 \fs18\cf1\insrsid5513321 \hich\af41\dbch\af13\loch\f41 1. WORKSPACE has already set. $(WORKSPACE) = c:\\work\\\hich\af41\dbch\af13\loch\f41 EdkII. The Fdf file is in c:\\work\\EdkII\\Nt32pkg\\Nt32pkg.fdf. Output directory is c:\\work\\EdkII\\\r
 Build\\Nt32\\Debug_MyTools.  ActivePlatform is C:\\work\\EdkII\\Nt32Pkg\\Nt32Pkg.dsc\r
 \par \hich\af41\dbch\af13\loch\f41 GenFds \hich\f41 \endash \loch\f41 f c:\\work\\EdkII\\Nt32pkg\\Nt32pkg.fdf \hich\f41 \endash \loch\f41 o c:\\work\\EdkII\\Build\\Nt32\\Debug_MyTo\hich\af41\dbch\af13\loch\f41 ols \hich\f41 \endash \loch\f41 p c:\\work\\EdkII\r
 \\Nt32pkg\\Nt32Pkg.dsc\r
-\par \hich\af41\dbch\af13\loch\f41 GenFds \hich\f41 \endash \loch\f41 f $(WORKSPACE)\\Nt32Pkg\\Nt32Pkg.fdf \hich\f41 \endash \loch\f41 o $(WORSPACE)\\Build\\Nt32\\Debug_MyTools \hich\f41 \endash \loch\f41 p $(WORKSAPCE)\\Nt32Pkg\\Nt32Pkg.dsc\r
+\par \hich\af41\dbch\af13\loch\f41 GenFds \hich\f41 \endash \loch\f41 f $(WORKSPACE)\\Nt32Pkg\\Nt32Pkg.fdf \hich\f41 \endash \loch\f41 o $(WORSPACE)\\Build\\Nt32\\Debug_MyTools \hich\f41 \endash \loch\f41 p $(WORKSPACE)\\Nt32Pkg\\Nt32Pkg.dsc\r
 \par \r
 \par \hich\af41\dbch\af13\loch\f41 GenFds \hich\f41 \endash \loch\f41 f Nt32Pkg\\Nt32Pkg.fdf \hich\f41 \endash \loch\f41 o Build\\Nt32\\Debug_MyTools \hich\f41 \endash \loch\f41 p Nt32Pkg\\Nt32Pkg.dsc\r
 \par \hich\af41\dbch\af13\loch\f41 2. Generate on\hich\af41\dbch\af13\loch\f41 e FD which is defined in FDF file. Use \hich\f41 \lquote \loch\f41 -r\hich\f41 \rquote \loch\f41 \r
index 4093baba7a6fb880c49dc8905e6fea93afcbe540..f4235b77fbcedead30b6cecceb516f9306e726ff 100644 (file)
@@ -111,7 +111,7 @@ tamp. It can also extract PE32 image data to create bin file, extract PE32 image
 \ab\af43\afs18 \ltrch\fcs0 \b\fs18\cf1\insrsid4815795 \r
 \par }{\rtlch\fcs1 \ab\af43\afs18 \ltrch\fcs0 \b\fs18\cf1\insrsid8459339 \hich\af43\dbch\af31505\loch\f43 Filename1 [FilenameN]\r
 \par }\pard \ltrpar\ql \li360\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 {\rtlch\fcs1 \af43\afs18 \ltrch\fcs0 \fs18\cf1\insrsid8459339 \hich\af43\dbch\af31505\loch\f43 \r
-Input PE/PE32+ image, or TE image, or MicroCode Txt file, or MicroCode bin file, or hii binary pakcages.\r
+Input PE/PE32+ image, or TE image, or MicroCode Txt file, or MicroCode bin file, or hii binary packages.\r
 \par }\pard \ltrpar\ql \li0\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \ab\af43\afs18 \ltrch\fcs0 \b\fs18\cf1\insrsid8459339 \hich\af43\dbch\af31505\loch\f43 -o FileName, --outputfile FileName\r
 \par }\pard \ltrpar\ql \li360\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 {\rtlch\fcs1 \af43\afs18 \ltrch\fcs0 \fs18\cf1\insrsid8459339 \hich\af43\dbch\af31505\loch\f43 \r
 The EFI image, TeImage, AcpiImage, MicroBin, hii package lists file or other modified PE image\hich\af43\dbch\af31505\loch\f43  will be created.\r
index 2b2cff6058c1b7169b08eb6557595f376c218bbe..13b5395f9971c9aa5b6ebb8e6c90411afe77427f 100644 (file)
@@ -8,8 +8,8 @@ find scripts to help automate the build process.)
 If you do not have a tianocore.org account, you can make use of the 'guest'\r
 account with an empty password.\r
 \r
-In a web browser, you can 'browse' the relavent source at this location:\r
+In a web browser, you can 'browse' the relevant source at this location:\r
  http://sourceforge.net/p/edk2-buildtools/code/HEAD/tree/trunk/BaseTools/gcc\r
 \r
-Or, with subversion, you can download the relavent source with this command:\r
+Or, with subversion, you can download the relevant source with this command:\r
  svn co https://svn.code.sf.net/p/edk2-buildtools/code/trunk/BaseTools/gcc\r
index 05fdb0932bf5c4150f160255e4d7fc9ab63140af..92778d1fcb580bd523cda0726bf0050b1605d3b3 100755 (executable)
@@ -554,7 +554,7 @@ class App:
         if result:\r
             print('All files have been downloaded & verified')\r
         else:\r
-            print('An error occured while downloading a file')\r
+            print('An error occurred while downloading a file')\r
             return\r
 \r
         Extracter(sources, config).ExtractAll()\r
index 6fe63e4baa1d2fcae3bcfacc838879f17bcebe9b..5629bbaa41da03d6a1ab768c0e7a813c3faf7ce2 100755 (executable)
@@ -270,7 +270,7 @@ goto check_build_environment
 \r
 :check_c_tools\r
   echo.\r
-  echo !!! ERROR !!! Binary C tools are missing. They are requried to be built from BaseTools Source.\r
+  echo !!! ERROR !!! Binary C tools are missing. They are required to be built from BaseTools Source.\r
   echo.\r
 \r
 :check_build_environment\r
index 45520536a25cff3561fe3320e81b610ad1716522..8bf4f6930a7769d91e5b1bbfee40e9ba94de255c 100644 (file)
@@ -138,7 +138,7 @@ Tools in Python
        "<python_source_dir>/build/build.py" directly.\r
 \r
 * Convert Python source to exe file\r
-  The tools written in Python can be coverted into executable program which can\r
+  The tools written in Python can be converted into executable program which can\r
   be executed without Python interpreter. One of the conversion tools is called\r
   cx_Freeze, available at: \r
 \r
index f34626912a44029b912f02308cbf33c11a59853a..14547ebdb7697ad82ef8ca43f228ce87be1231ab 100644 (file)
@@ -144,7 +144,7 @@ title, and interest in and to Your Contributions.
   of such entity.\r
 * "Contribution" shall mean any original work of authorship,\r
   including any modifications or additions to an existing work,\r
-  that is intentionally submitted by You to the TinaoCore site for\r
+  that is intentionally submitted by You to the TianoCore site for\r
   inclusion in, or documentation of, any of the Content. For the\r
   purposes of this definition, "submitted" means any form of\r
   electronic, verbal, or written communication sent to the\r
index 57b5a8c8684ed65902ad0e96966425373ac0946e..a493afa7cec297e3d5d7f0b997dbf5b86ed55a6a 100755 (executable)
@@ -89,7 +89,7 @@ if exist %EDK_BASETOOLS% (
 :checkNt32Flag\r
 if exist %EDK_TOOLS_PATH%\Source set BASE_TOOLS_PATH=%EDK_TOOLS_PATH%\r
 \r
-@REM The Nt32 Emluation Platform requires Microsoft Libraries\r
+@REM The Nt32 Emulation Platform requires Microsoft Libraries\r
 @REM and headers to interface with Windows.\r
 if /I "%1"=="--nt32" (\r
   if /I "%2"=="X64" (\r