]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Ecc/c.py
BaseTools: Various typo
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / c.py
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