]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/Boolean.c
1. Use MemoryAllocationLib to replace boot services memory services functions in...
[mirror_edk2.git] / EdkModulePkg / Universal / UserInterface / SetupBrowser / Dxe / Boolean.c
index d3f77e09f59587bf9c3dd0fb7b43dc594714e544..138725d7be7be3af47f1e28a540ab097f26d8992 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
@@ -49,7 +49,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  NONE \r
+  NONE\r
 \r
 --*/\r
 {\r
@@ -76,7 +76,7 @@ Returns:
     //\r
     // Free The Old Stack\r
     //\r
-    gBS->FreePool (mBooleanEvaluationStack);\r
+    FreePool (mBooleanEvaluationStack);\r
   }\r
 \r
   mBooleanEvaluationStack     = NewStack;\r
@@ -96,11 +96,11 @@ Routine Description:
 \r
 Arguments:\r
 \r
-  NONE \r
+  NONE\r
 \r
 Returns:\r
 \r
-  NONE \r
+  NONE\r
 \r
 --*/\r
 {\r
@@ -201,7 +201,7 @@ GrowBooleanExpression (
     //\r
     // Free The Old buffer\r
     //\r
-    gBS->FreePool (*BooleanExpression);\r
+    FreePool (*BooleanExpression);\r
   } else {\r
     //\r
     // Copy data into new buffer\r
@@ -484,7 +484,7 @@ Returns:
 \r
     Width = (*PIterator)->Width;\r
 \r
-    // \r
+    //\r
     //  Because INVALID_OFFSET_VALUE - 1 is reserved for TRUE or FALSE, omit them.\r
     //\r
     if ((*PIterator)->QuestionId1 != INVALID_OFFSET_VALUE &&\r
@@ -498,7 +498,7 @@ Returns:
           MapValue = (UINT8) *MapBuffer;\r
         }\r
 \r
-        gBS->FreePool (MapBuffer);\r
+        FreePool (MapBuffer);\r
       }\r
 \r
       if (MapBuffer2 != NULL) {\r
@@ -508,16 +508,16 @@ Returns:
           MapValue2 = (UINT8) *MapBuffer2;\r
         }\r
 \r
-        gBS->FreePool (MapBuffer2);\r
+        FreePool (MapBuffer2);\r
       }\r
     }\r
 \r
     switch ((*PIterator)->Operand) {\r
     case EFI_IFR_EQ_VAR_VAL_OP:\r
       UnicodeValueToString (\r
-        VariableName, \r
-        FALSE, \r
-        (UINTN) (*PIterator)->QuestionId1, \r
+        VariableName,\r
+        FALSE,\r
+        (UINTN) (*PIterator)->QuestionId1,\r
         (sizeof (VariableName) / sizeof (VariableName[0])) - 1\r
         );\r
 \r
@@ -727,7 +727,7 @@ Returns:
       return Operator;\r
     }\r
 \r
-    // \r
+    //\r
     //  Because INVALID_OFFSET_VALUE - 1 is reserved for TRUE or FALSE, omit them.\r
     //\r
     if (Iterator->QuestionId1 != INVALID_OFFSET_VALUE &&\r
@@ -741,7 +741,7 @@ Returns:
           MapValue = (UINT8) *MapBuffer;\r
         }\r
 \r
-        gBS->FreePool (MapBuffer);\r
+        FreePool (MapBuffer);\r
       }\r
 \r
       if (MapBuffer2 != NULL) {\r
@@ -751,7 +751,7 @@ Returns:
           MapValue2 = (UINT8) *MapBuffer2;\r
         }\r
 \r
-        gBS->FreePool (MapBuffer2);\r
+        FreePool (MapBuffer2);\r
       }\r
     }\r
 \r
@@ -814,9 +814,9 @@ Returns:
       }\r
 \r
       UnicodeValueToString (\r
-        VariableName, \r
-        FALSE, \r
-        (UINTN) Iterator->QuestionId1, \r
+        VariableName,\r
+        FALSE,\r
+        (UINTN) Iterator->QuestionId1,\r
         (sizeof (VariableName) / sizeof (VariableName[0])) - 1\r
         );\r
 \r
@@ -913,7 +913,7 @@ Returns:
             MapValue = (UINT8) *MapBuffer;\r
           }\r
 \r
-          gBS->FreePool (MapBuffer);\r
+          FreePool (MapBuffer);\r
         }\r
 \r
         if (MapBuffer2 != NULL) {\r
@@ -923,7 +923,7 @@ Returns:
             MapValue2 = (UINT8) *MapBuffer2;\r
           }\r
 \r
-          gBS->FreePool (MapBuffer2);\r
+          FreePool (MapBuffer2);\r
         }\r
       }\r
 \r
@@ -947,9 +947,9 @@ Returns:
       //\r
       case EFI_IFR_EQ_VAR_VAL_OP:\r
         UnicodeValueToString (\r
-          VariableName, \r
-          FALSE, \r
-          (UINTN) Iterator->QuestionId1, \r
+          VariableName,\r
+          FALSE,\r
+          (UINTN) Iterator->QuestionId1,\r
           (sizeof (VariableName) / sizeof (VariableName[0])) - 1\r
           );\r
 \r
@@ -1049,7 +1049,7 @@ Returns:
             MapValue = (UINT8) *MapBuffer;\r
           }\r
 \r
-          gBS->FreePool (MapBuffer);\r
+          FreePool (MapBuffer);\r
         }\r
 \r
         if (MapBuffer2 != NULL) {\r
@@ -1059,7 +1059,7 @@ Returns:
             MapValue2 = (UINT8) *MapBuffer2;\r
           }\r
 \r
-          gBS->FreePool (MapBuffer2);\r
+          FreePool (MapBuffer2);\r
         }\r
       }\r
 \r
@@ -1083,9 +1083,9 @@ Returns:
       //\r
       case EFI_IFR_EQ_VAR_VAL_OP:\r
         UnicodeValueToString (\r
-          VariableName, \r
-          FALSE, \r
-          (UINTN) Iterator->QuestionId1, \r
+          VariableName,\r
+          FALSE,\r
+          (UINTN) Iterator->QuestionId1,\r
           (sizeof (VariableName) / sizeof (VariableName[0])) - 1\r
           );\r
 \r
@@ -1205,7 +1205,7 @@ Returns:
             MapValue = (UINT8) *MapBuffer;\r
           }\r
 \r
-          gBS->FreePool (MapBuffer);\r
+          FreePool (MapBuffer);\r
         }\r
 \r
         if (MapBuffer2 != NULL) {\r
@@ -1215,7 +1215,7 @@ Returns:
             MapValue2 = (UINT8) *MapBuffer2;\r
           }\r
 \r
-          gBS->FreePool (MapBuffer2);\r
+          FreePool (MapBuffer2);\r
         }\r
       }\r
 \r
@@ -1231,9 +1231,9 @@ Returns:
       //\r
       case EFI_IFR_EQ_VAR_VAL_OP:\r
         UnicodeValueToString (\r
-          VariableName, \r
-          FALSE, \r
-          (UINTN) Iterator->QuestionId1, \r
+          VariableName,\r
+          FALSE,\r
+          (UINTN) Iterator->QuestionId1,\r
           (sizeof (VariableName) / sizeof (VariableName[0])) - 1\r
           );\r
 \r
@@ -1295,7 +1295,7 @@ Returns:
         PushBool (&StackPtr, Operator);\r
       }\r
       break;\r
-    \r
+\r
     case EFI_IFR_TRUE_OP:\r
       //\r
       // To check whether Ifr is legacy. Once every boolean expression.\r