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